Link to home
Start Free TrialLog in
Avatar of Cheryl Lander
Cheryl LanderFlag for United States of America

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";
ASKER CERTIFIED SOLUTION
Avatar of CWS (haripriya)
CWS (haripriya)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cheryl Lander

ASKER

works great.

Im opening up another questions about the same code
Nice. What other problem you are facing?
IM trying to resolve it now.