Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 07-12-2011, 01:48 PM   #1
Join Date: Mar 2010
Posts: 2
Default *Form Question with my php page*

Hi all! I have a form on my main page and I want to have the customer fill out a couple of the form items and then based on their selection be sent to the appropriate full form with the 2-3 choices already selected pre-filled out on the subsequent form.

I have seen it done - and I don't think it should be too complicated. Can someone give me a hint as what I should be looking to do to get started?
ILoveKnowledge is offline   Reply With Quote
Old 07-13-2011, 07:54 AM   #2
edbr's Avatar
Join Date: Aug 2005
Location: Bali
Posts: 11,204

you could pass the first form as POST variables and then in your second

<input name="form1-name" type="text" value=" <?php echo POST_['name']; ?>"/>
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 07-14-2011, 03:48 PM   #3
davidj's Avatar
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256

why not just use a multi step form which new form elements will be generated based on previous input.

You will have to study conditional statements in PHP to build your dynamic form

It would be nice to use some AJAX to handle the dynamics
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote

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

Forum Jump

All times are GMT. The time now is 05:33 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com