home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

PHP form help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2117
Discussions: 200,948, Posts: 2,379,414, Members: 246,310
Old January 22nd, 2004, 07:47 PM   Digg it!   #1 (permalink)
Ultimate Member
 
rh71's Avatar
 
Join Date: Oct 2001
Location: LI | NY
Posts: 1,250
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.
__________________
rh71.com
rh71 is offline   Reply With Quote
Old January 22nd, 2004, 08:59 PM     #2 (permalink)
Member
 
Technoed's Avatar
 
Join Date: Sep 2003
Location: Yorkshire, England
Posts: 96
Use sessions.

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

PHP Sessions
Technoed is offline   Reply With Quote
Old January 22nd, 2004, 09:01 PM     #3 (permalink)
Member
 
Technoed's Avatar
 
Join Date: Sep 2003
Location: Yorkshire, England
Posts: 96
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 January 22nd, 2004, 09:11 PM     #4 (permalink)
Ultimate Member
 
rh71's Avatar
 
Join Date: Oct 2001
Location: LI | NY
Posts: 1,250
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.
rh71 is offline   Reply With Quote
Old January 22nd, 2004, 09:18 PM     #5 (permalink)
Member
 
Technoed's Avatar
 
Join Date: Sep 2003
Location: Yorkshire, England
Posts: 96
I suggest you go to this link for your complete guide to PHP resources and books.
Technoed is offline   Reply With Quote
Old January 24th, 2004, 11:25 PM     #6 (permalink)
Ultimate Member
 
rh71's Avatar
 
Join Date: Oct 2001
Location: LI | NY
Posts: 1,250
Send a message via ICQ to rh71 Send a message via AIM to rh71
nvm.

Last edited by rh71 : January 24th, 2004 at 11:30 PM.
rh71 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (175)
Is It Just Me? (2940)
Wireless Televisions. (12)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Foreign voltage (10)
Recent Discussions
Multiple Restarts Required at Boot (1)
For Sale BFG GTX285 OC2 with 10 year .. (3)
Point and Shoot Camera Suggestions. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Graphics Card Upgrade Question (3)
Laptop with wireless problem. (2)
Internet Lost (1)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)


All times are GMT -4. The time now is 10:20 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28