Menu
I am trying to determine if an input is set to give one answer or if it is not set another answer. Here is my code:
[code=php]
if(!isset($_POST[‘url’]))
$website = 0;
else
$website = 1;
I have also tried these few way:
[code=php]
$url = $_POST[‘url’];
if(!isset($url))
$website = 0;
else
$website = 1;
[code=php]if(isset($_POST[‘url’]))
$website = 1;
else
$website = 0;
For some reason it always sets 1 but the output is this:
[code=html]<input name=’url’ value=” />
Any suggestions?