Menu
I have two variables in a PHP script and one needs to be choosen by the user. I have scrapped together the below but not sure what excatly to set as the if statement. How do I call what the radio button is and its value, and how do I set it in the if statement?
I would also like the script to print the form if there is no variable set at all. $input should be the entry of a textbox.
[code=php]
$source = file_get_contents($input);
$output = htmlspecialchars($source);
// what should I set this statement as?
if
//linewrap
echo nl2br($output);
else
//no linewrap
echo “<pre>n $output n</pre>”
}