Cheryl Lander
asked on
basic php form question
I need some help with the following code.
the current code makes the "frontpage.php" appear if the checkbox "frontpage" is checked. This works fine
if(isset($frontpage)) {include ('includes/frontpage.php') ;}
but How do I do a similar example if I want a value to be shown from another file if the checkbox is checked.
-------------------------- ---------- ---------- --------
config file
$information = "This is the information I need";
-------------------------- ---------- ---------- --------
Form
<input name="frontpage" type="checkbox" value="frontpage">
-------------------------- ---------- ---------- --------
process page.
if(isset($frontpage)) echo" $information";
the current code makes the "frontpage.php" appear if the checkbox "frontpage" is checked. This works fine
if(isset($frontpage)) {include ('includes/frontpage.php')
but How do I do a similar example if I want a value to be shown from another file if the checkbox is checked.
--------------------------
config file
$information = "This is the information I need";
--------------------------
Form
<input name="frontpage" type="checkbox" value="frontpage">
--------------------------
process page.
if(isset($frontpage)) echo" $information";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Nice. What other problem you are facing?
ASKER
IM trying to resolve it now.
ASKER
Im opening up another questions about the same code