will_1990 Posted December 12, 2008 Share Posted December 12, 2008 in a form that resides in register.html i wish to not only send this to register2.php which insterts the information collected into a table l also wish to get the $email_address information and store it on a page that will come after the registration is complete. eg the email is sent to the insert form and also collected by customer_info.php and stored in a variable on that page called $email_addresss. is this possible? hugely ggreatful to anyone who can point me in the right direction Quote Link to comment Share on other sites More sharing options...
rtadams89 Posted December 12, 2008 Share Posted December 12, 2008 How did you solve this? Quote Link to comment Share on other sites More sharing options...
will_1990 Posted December 12, 2008 Author Share Posted December 12, 2008 i echoed the $email from the registration page i was using rather than use 2 actions, if you find out how to use 2 tell me as im interested... thanks Quote Link to comment Share on other sites More sharing options...
CroNiX Posted December 12, 2008 Share Posted December 12, 2008 i echoed the $email from the registration page i was using rather than use 2 actions, if you find out how to use 2 tell me as im interested... thanks You can't have 2 actions. You could use sessions to store the data. On the page that the form action points to just store the variable in a session variable and recall it on the other page where you need it. Quote Link to comment Share on other sites More sharing options...
dezkit Posted December 12, 2008 Share Posted December 12, 2008 <input type="submit" name="something" value="something"> <input type="submit" name="somethingelse" value="somethingelse"> $something = $_POST["something"]; $somethingelse = $_POST["somethingelse"]; if($something){ echo "something"; } if($somethingelse){ echo "somethingelse"; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.