Re: PHP and GET/POST

From: Date: Mon, 08 Mar 2004 23:38:05 +0000
Subject: Re: PHP and GET/POST
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-179838@lists.php.net to get a copy of this message
How should you do it?, i mean i have 3 pages with some forms on two of em First page = some general information to fill in Second page = more deep information and last page to confirm and store in the database. All pages i got is in one single php file to be able to move between them, eg if they dident fill in the correct info on the first page i can just redirect them to then first page function. Step is just the name of a variable, maby it was a bad name? What methods is there to do this? sessions? regards Patrick "Chris Shiflett" <shiflett@php.net> skrev i meddelandet news:20040308232257.65298.qmail@web14302.mail.yahoo.com... > --- Patrik Fomin <pafo@pafo.net> wrote: > > i got a page that i devided up into 3 diffrent pages, > > to call i use <form method="post"><input type="hidden" > > name="step" > > value="1"> > > or 2-3, but i found out that you can just write the url: > > mypage.php?step=1 to get to step one, is there anyway to get rid of > > that possibility > > Yes, you can use $_POST['step']. However, this is just as easy to spoof, > so you're not really eliminating the problem, just a symptom. Having the > client identify what step it is on seems fundamentally flawed to me. > > Hope that helps. > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming mid-2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/

« previous php.general (#179838) next »