sabian1982
02-06-2006, 10:39 AM
What im looking to do is create a varied mail form on one page using php. What i mean by this is that i want to put a radio button list or drop down menu which has a number of different options (for example: 'general' (default), 'complaint' and 'add link'
The General form (which is displayed by default) has 3 input boxes (name, email, comment). When the drop down menu or radio button is changed to (for example) 'add link' the form changes to display 4 input boxes with different names/inputs (name, email, url, comments).
I'm really no good at php so could someone suggest help me sort this out? its simply so i dont have to have seperate pages for each individual form and dont have to put 2 or 3 different forms on the one page (hence making the page length rather long). Im very limited when it comes to programming however i can gather that the scripting would some how use an if statement to see what dropdown option has been selected... other than that i haven't a clue.
For finished working forum would then go on http://www.dietdebate.co.uk/contactus.php
Help!!!
The General form (which is displayed by default) has 3 input boxes (name, email, comment). When the drop down menu or radio button is changed to (for example) 'add link' the form changes to display 4 input boxes with different names/inputs (name, email, url, comments).
I'm really no good at php so could someone suggest help me sort this out? its simply so i dont have to have seperate pages for each individual form and dont have to put 2 or 3 different forms on the one page (hence making the page length rather long). Im very limited when it comes to programming however i can gather that the scripting would some how use an if statement to see what dropdown option has been selected... other than that i haven't a clue.
For finished working forum would then go on http://www.dietdebate.co.uk/contactus.php
Help!!!
