Search found 2 matches

by Graham2107
Fri Jul 25, 2008 4:15 am
Forum: PHP - Code
Topic: Using php with <input>
Replies: 3
Views: 344

Re: Using php with <input>

Perhaps I didn't explain myself totally. <input name="user_input" value="0" etc. > if user_input equals "Fred" then include xyz.php and if user_input equals "Graham" then include abc.php This is, the form actually changes format, depending on what the user_inp...
by Graham2107
Fri Jul 25, 2008 3:24 am
Forum: PHP - Code
Topic: Using php with <input>
Replies: 3
Views: 344

Using php with <input>

I would like to use some php script in the body of a php document that changes the inclusion of a <div> or a <table> depending on the users input. For instance: <input name=user_input value="<?php echo $user ?>" etc. > if ($user == "Fred") {include ('Fred_Div.php');} if ($user ==...