macromedia.dreamweaver.appdev
[Top] [All Lists]

Submitting form with 'jump menu' and PHP?

Subject: Submitting form with 'jump menu' and PHP?
From: "Murray *ACE*" <forums@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 25 Jul 2008 09:11:46 -0400
Newsgroups: macromedia.dreamweaver.appdev


I have a form that can reveal one of two question sets, depending on the setting of a drop-down list, e.g.,

<select>
   <option>Set 1</option>
   <option>Set 2</option>
</select>

Up to this stage in the development of this page, I have solved this requirement by using an onchange event in the <select> tag to submit the form to itself. The PHP code in the head of the page evaluates the set selected, and then writes the page containing the 'selected' fields (either set1 or set2).

But now, I also need to submit this form's data to the processing page! So, there are two competing functions here -

1.  Deciding which field set to display
2. Processing the filled in fields by submitting the form to a second process page

How can I get these two together on the same form?

Or should I just use two separate form pages, and a javascript jump menu?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================



<Prev in Thread] Current Thread [Next in Thread>
  • Submitting form with 'jump menu' and PHP?, Murray *ACE* <=