[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Method="Get" Method="Post" beveiliging..
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

Method="Get" Method="Post" beveiliging..

Je komt er niet helemaal uit bij het scripten? Übergoede functie geschreven? Alles met betrekking tot scripting, kun je hier terecht.

Method="Get" Method="Post" beveiliging..

Berichtdoor Bob » 18 jan 2006 20:41

Beste medepuzzelaars,

Let op:

Als je een <form></form> maakt met daarin method="post" weet ik dat die naar een pagina moet linken bijvoorbeeld:

<form method="post" action="admin.asp"></form>

Op de admin.asp pagina zorg je ervoor dat die checkt of de gebruiker is ingelogt, zoniet stuur je hem terug naar de login pagina (beveiliging dus)

maar hoe zit dit met een method="get" pagina ?

kun je daar ook beveiliging toepassen net zoals de post manier?


Ik hoor het graag!

Grtz,

Bob
Webdesignbureau: www.idea-creation.nl
Bob
wmpr
 
Berichten: 94
Geregistreerd: 15 jan 2006 13:41
Woonplaats: Goirle

Re: Method="Get" Method="Post" beveiligi

Berichtdoor Derk » 18 jan 2006 20:49

GET en POSt is bijna hetzelfde
GET is bijvoorbeelt dit: pagina.php?baalt=hoi&iets=ookhoi
bij POST zie je dit niet maar het is er wel.
POST is dus onzichtbaar en GET niet.
Als je GET in een form gebruikt zie je geen verschil. Dan komt hij namenlijk niet met een url als hierboven (volgens mij dan)
Maar in PHP moet je beiden verschillend aanroepen.

Als jij in PHP bijvoorbeeld iedere keer je linkjes maakr door middel van ?id=1 en je wilt dat ineens met een form doen, dan moet je speciaal daarvoor je hele script aanpassen omdat je iedere keer GET gebruikte in je PHP en niet POST. Dan kan je in je form dus GET gebruiken.

Even ter info:
in PHP moet je de GET data zo ophalen:
$_GET['naam']
en de POST data zo:
$_POST['naam']
Je ziet dat er verschil is.
Dan doen veel mensen dit:
<? include ('paginas/'$_GET['naam'].'.php'); ?>
Include is een pagina in een pagina stoppen...
Nu kan je ?naam=index doen en dan kom je op de index
Als je dat met een form wilt doen moet je dat dus helemaal veranderen.

Dat is zover ik weet het enige....
Als je met flash een form maakt kan je die 2 elementen ook kiezen.

Derk
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: Method="Get" Method="Post" beveiligi

Berichtdoor LinkinTED » 18 jan 2006 20:58

$_GET is bijvoorbeeld makkelijk bij een zoekmachine.

Als je dan zoekt op test ziet je URL er bijv. zo uit: jesite.nl/zoeken.php?zoekwoord=test.

Als je $_POST gebruikt zie je dat dus niet.
Slicer nodig? ( xHTML | CSS | Semantische opbouw | Div )
http://www.iSlice.nl/
Avatar gebruiker
LinkinTED
wmpr
 
Berichten: 131
Geregistreerd: 14 jan 2006 16:47

Re: Method="Get" Method="Post" beveiligi

Berichtdoor Bob » 18 jan 2006 21:08

Ja precies goeie uitleg heren..

maar bij de get methode, is de www.blaatjesite.nl/?1

is 1 dan ook een pagina die je apart moest maken?
Webdesignbureau: www.idea-creation.nl
Bob
wmpr
 
Berichten: 94
Geregistreerd: 15 jan 2006 13:41
Woonplaats: Goirle

Re: Method="Get" Method="Post" beveiligi

Berichtdoor LinkinTED » 18 jan 2006 21:15

Slicer nodig? ( xHTML | CSS | Semantische opbouw | Div )
http://www.iSlice.nl/
Avatar gebruiker
LinkinTED
wmpr
 
Berichten: 131
Geregistreerd: 14 jan 2006 16:47

Re: Method="Get" Method="Post" beveiligi

Berichtdoor Derk » 18 jan 2006 21:17

nee je snapt het geloof ik nog niet helemaal
Je geeft in de link eerst de variabel en dan de value
Dus: www.blaatjesite.nl?1=hoi
dan kan je doen volgens mijn voorbeeld:
<? include ('paginas/'$_GET['1'].'.php'); ?>
en dan opent hij de pagina paginas/hop.php
Die moet natuurlijk wel bestaan anders krijg je een dikke error.

edit: hij doet dan dus de variabel doorsturen naar het bestand index.php Wink

Derk
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: Method="Get" Method="Post" beveiligi

Berichtdoor Bob » 18 jan 2006 21:23

Webdesignbureau: www.idea-creation.nl
Bob
wmpr
 
Berichten: 94
Geregistreerd: 15 jan 2006 13:41
Woonplaats: Goirle

Re: Method="Get" Method="Post" beveiligi

Berichtdoor LinkinTED » 18 jan 2006 22:00

Let er op dat je alles wel goed beveiligd. Lees ook maar eens door.
Slicer nodig? ( xHTML | CSS | Semantische opbouw | Div )
http://www.iSlice.nl/
Avatar gebruiker
LinkinTED
wmpr
 
Berichten: 131
Geregistreerd: 14 jan 2006 16:47

Re: Method="Get" Method="Post" beveiligi

Berichtdoor Derk » 18 jan 2006 22:01

Als je aan beveiliging gaat denken dan is mijn scriptje het op 2 na meest onveilige dat ik kan bedenken.

Derk
Afbeelding
Avatar gebruiker
Derk
Beheerder
Beheerder
 
Berichten: 12634
Geregistreerd: 27 nov 2003 19:50
Woonplaats: Houten

Re: Method="Get" Method="Post" beveiligi

Berichtdoor Bob » 18 jan 2006 22:32

Webdesignbureau: www.idea-creation.nl
Bob
wmpr
 
Berichten: 94
Geregistreerd: 15 jan 2006 13:41
Woonplaats: Goirle


Keer terug naar PHP, ASP, SQL



cron