»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 01-22-2004, 04:47 PM   #1 (permalink)
Registered User
 
rh71's Avatar
 
Join Date: Oct 2001
Location: LI | NY
Posts: 1,212
rh71 is on a distinguished road
Send a message via ICQ to rh71 Send a message via AIM to rh71
PHP form help

How do I create a PHP form that exists across multiple pages like http://www.shop4t1.com/ has (right side). Obviously the values don't get submitted until the entire form on the next page is complete. How do I get it to retain the values when clicking on to step 2 and submit everything (to an email address) after ?

I'm a total newbie at PHP, but I managed to do a simple 1-page form value submission to an email address.

Any links, guides, tips, or hints are appreciated.

__________________
:: [url]http://www.rh71.com[/url] :: (high bandwidth preferable)
rh71 is offline   Reply With Quote
Old 01-22-2004, 05:59 PM   #2 (permalink)
Registered User
 
Technoed's Avatar
 
Join Date: Sep 2003
Location: Yorkshire, England
Posts: 68
Technoed is on a distinguished road
Use sessions.

With sessions you can pass data on to multiple pages easily.

PHP Sessions
Technoed is offline   Reply With Quote
Old 01-22-2004, 06:01 PM   #3 (permalink)
Registered User
 
Technoed's Avatar
 
Join Date: Sep 2003
Location: Yorkshire, England
Posts: 68
Technoed is on a distinguished road
Re: PHP form help

Quote:
Originally posted by rh71
How do I create a PHP form that exists across multiple pages like http://www.shop4t1.com/ has (right side). Obviously the values don't get submitted until the entire form on the next page is complete. How do I get it to retain the values when clicking on to step 2 and submit everything (to an email address) after ?
By the way, you could also pass the values into an hidden HTML input tag.

Code:
<input type="hidden" value="<?php echo $value_to_be_passed; ?>" name="value_name" />
Technoed is offline   Reply With Quote
Old 01-22-2004, 06:11 PM   #4 (permalink)
Registered User
 
rh71's Avatar
 
Join Date: Oct 2001
Location: LI | NY
Posts: 1,212
rh71 is on a distinguished road
Send a message via ICQ to rh71 Send a message via AIM to rh71
Thank you. Both of these options look like they will do the trick... if there are any other solutions, feel free. Learning PHP as I go, so it's not like I'm band-aiding stuff here and there.
__________________
:: [url]http://www.rh71.com[/url] :: (high bandwidth preferable)
rh71 is offline   Reply With Quote
Old 01-22-2004, 06:18 PM   #5 (permalink)
Registered User
 
Technoed's Avatar
 
Join Date: Sep 2003
Location: Yorkshire, England
Posts: 68
Technoed is on a distinguished road
I suggest you go to this link for your complete guide to PHP resources and books.
Technoed is offline   Reply With Quote
Old 01-24-2004, 08:25 PM   #6 (permalink)
Registered User
 
rh71's Avatar
 
Join Date: Oct 2001
Location: LI | NY
Posts: 1,212
rh71 is on a distinguished road
Send a message via ICQ to rh71 Send a message via AIM to rh71
nvm.
__________________
:: [url]http://www.rh71.com[/url] :: (high bandwidth preferable)

Last edited by rh71; 01-24-2004 at 08:30 PM.
rh71 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:49 AM.