Re: creating a confirm page

From: Date: Sun, 21 Mar 2004 20:43:55 +0000
Subject: Re: creating a confirm page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181094@lists.php.net to get a copy of this message
Andy B wrote:
hi was needing to know how to create a confirm page. I have a form that needs to be submitted to a confirm page before it is dropped into a mysql db. was not sure how to do this without losing the content of the form variables... Hi. Well, you have several solutions for that.
or u use sessions and u register every single variable as a session variable ( $_SESSION['variable'] ), or using forms, from one page to another and pass the contents, then, recover every one with $_POST['variable_name'] or $_GET['variable_name'], depending on wich method u've used. cheers... there are several other ways: in the same page, using functions and conditional statements, etc.... remember: best way is how its above (using sessions or forms) , because will work in most php installations that dont have register_globals on. -- ----------------------------------------------------- .-'''''-. .' `. : : : : : _/| : Bruno Santos : =/_/ : brvds@netvisao.pt `._/ | .' ( / ,|...-' Pagina Pessoal \_/^\/||__ http://feiticeir0.no-ip.org _/~ ""~"` \_ __/ -'/ -._ \_\__ /jgs /-' \ \ \-.\ "Written very small on the back poket of a girl's jeans - 'If you can read this, you're WAY too close.'"

« previous php.general (#181094) next »