zebulon Posted August 6, 2004 Share Posted August 6, 2004 Hi gang, I have a question I hope someone can help me with? I need to pass two fields from one html page with a form to another page. I am asumming this is not real difficult but I have never done it before. I have seen some javascript examples, but would like to ensure that this will work for all users. After some PHP research today I have seen that you can use session but understand that this uses cookies and may not be enabled on all machines? I am thinking I may be able to use the redirect but can't find the correct syntax. My question what is the simplest way to send two fields from one form to another html page without using cookies or java? here is the page I am working on http://www.bookinitontheweb.com/couponsignup.htm here is the 2nd html page I would like the user_name and email to show up on. http://www.bookinitontheweb.com/coupon.htm Quote Link to comment Share on other sites More sharing options...
stevesh Posted August 6, 2004 Share Posted August 6, 2004 I'd use Phorm (phorm.com) set as info only (see the docs) and set your second page as the acknowledgement page. Very simple. Steve Quote Link to comment Share on other sites More sharing options...
Frylock Posted August 6, 2004 Share Posted August 6, 2004 Yeah, it just depends on exactly what you want to do with the submitted info. If you only want to show it on the page right after they submitted the form, then there is no need for sessions (cookies). (The data will be in PHP's $_POST array that the page the form is sent to can use to print it out.) That Phorm script can do that for you. Only if you want to use that info for more than just that (on other pages) will you need something like sessions (which btw don't nessasarily have to use cookies to work). Quote Link to comment Share on other sites More sharing options...
zebulon Posted August 7, 2004 Author Share Posted August 7, 2004 thanks for the info guys, all I want to do is use the fields to populate a coupon on the 2nd html with a name and email address entered from the form and let users print the 2nd page. Can I do this using the script from Total Choice? It looks like the phorm would replace the form processing script I got from Total Choice is that correct? can the $redirect statement pass parameters? thanks Lynn 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.