Click to See Complete Forum and Search --> : Urgently in need of code!
ramses357
08-29-2005, 11:26 PM
Does anyone know of any php code that can take the responses to a multiple-choice webform and either
A) Place the actual values into a paragraph on the resulting page (after submission), or
B) Place a pre-determined block of text (per response) on the resulting page based on what is entered into the webform.
NogDog
08-30-2005, 03:45 AM
1. Read the values from the form via the $_POST array. (http://us3.php.net/manual/en/language.variables.external.php)
2. Use if (http://www.php.net/manual/en/language.control-structures.php#control-structures.if) / else (http://www.php.net/manual/en/control-structures.else.php) and/or switch (http://www.php.net/manual/en/control-structures.switch.php) blocks to print the desired output based on the $_POST values received.
ramses357
08-30-2005, 06:30 PM
1. Read the values from the form via the $_POST array. (http://us3.php.net/manual/en/language.variables.external.php)
2. Use if (http://www.php.net/manual/en/language.control-structures.php#control-structures.if) / else (http://www.php.net/manual/en/control-structures.else.php) and/or switch (http://www.php.net/manual/en/control-structures.switch.php) blocks to print the desired output based on the $_POST values received.
I'm not a php expert....are there any scripts that I can cut and paste that do this...or that just need mild adjustments (primarily the variables themselves).