Forums
This topic is locked
PHP Multi page forms and submitting to database
23 May 2006 14:47:19 Gaz B posted:
Hi, im pleading for some assistance, i've been trying to do a multi-page form which then inserts into a MySQL database (i have used the Dreamweaver insert behaviour). I have used hidden fields to take values from one form to another using the following code:<input type="hidden" name="name" value="<?php echo $name;?>" />
This works for me using Internet Explorer which submits data from all fields to the database, but doesn't work using Mozilla Firefox.
Has anyone got any ideas, as i really need to get this working. Is the hidden field code incorrect for using Firefox??
Many thanks for help in advance
Gaz
Replies
Replied 23 May 2006 16:43:45
23 May 2006 16:43:45 Roddy Dairion replied:
This looks fine. How many forms to you have on the same page? Also be aware that some conflicts may arise when you have too many forms on 1 page.
Replied 23 May 2006 18:08:42
23 May 2006 18:08:42 Gaz B replied:
Hello Roddy
Thanks for your reply, I only have 5 pages, each with 1 form on each. I'm totally confused.
Hidden fields don't need to relate to anything in head tags do they (i'm clutching at straws).
Gaz
Thanks for your reply, I only have 5 pages, each with 1 form on each. I'm totally confused.
Hidden fields don't need to relate to anything in head tags do they (i'm clutching at straws).
Gaz
Replied 23 May 2006 18:50:54
23 May 2006 18:50:54 Roddy Dairion replied:
Ok lets not get confused.
1. What are you trying to achieve?
2. Why are you using hidden fields for?
3. Where is the code you currently have?
1. What are you trying to achieve?
2. Why are you using hidden fields for?
3. Where is the code you currently have?
Replied 24 May 2006 13:13:07
24 May 2006 13:13:07 Gaz B replied:
Hi
Right, I have a multipage questionnaire that users will complete. There are 4 pages each with 1 form on each. The 4th page has a submit button that submits the responses to a MySQL Database using Dreamweaver 8 Insert Form behaviour.
On page 1 - I have the user enter Name, that with the use of hidden field is carried over to page 2, user completes page 2 and with use of hidden fields carry values from page 1 and 2 to page 3 and so on, values from pages 1, 2 and 3 carry onto page 4 before being submitted.
The only way I can get the code for you to view would be to copy and paste to a message on this forum, wasn't sure if you allowed that.
Thank you for your continued support.
Gaz
Right, I have a multipage questionnaire that users will complete. There are 4 pages each with 1 form on each. The 4th page has a submit button that submits the responses to a MySQL Database using Dreamweaver 8 Insert Form behaviour.
On page 1 - I have the user enter Name, that with the use of hidden field is carried over to page 2, user completes page 2 and with use of hidden fields carry values from page 1 and 2 to page 3 and so on, values from pages 1, 2 and 3 carry onto page 4 before being submitted.
The only way I can get the code for you to view would be to copy and paste to a message on this forum, wasn't sure if you allowed that.
Thank you for your continued support.
Gaz
Replied 24 May 2006 13:30:35
24 May 2006 13:30:35 Roddy Dairion replied:
Send the code for each page to
Replied 24 May 2006 15:06:28
24 May 2006 15:06:28 Roddy Dairion replied:
I've emailed it back to you. I haven't tested it. Hope it will work.
Replied 06 Jun 2006 13:12:19
06 Jun 2006 13:12:19 Gaz B replied:
Hi all
Just wanted to say that with the continued help and support which I received from Roddy, we managed to get this working.
Thanks once again Roddy.
Gaz
Just wanted to say that with the continued help and support which I received from Roddy, we managed to get this working.
Thanks once again Roddy.
Gaz