A
angel_hugs86
Guest
Do you abide by the Terms and Conditions of this site?
Please click a button
button: Agree
button: Disagree
when you press the button agree the text "Please click a button "
will be replaced by"Thanks for registering"
then if you press the button disagree the text "Please click a button "
will be replaced by"ok Thanks anyway "
+++++++++++++++++++++++++++++
my PHP code is
<form name=1>
<input type= "submit" name= "yes" value=" I Agree">
<input type= "submit" name="no" value= " I Disagree">
</form>
<?php
if ($_GET ['1']== "yes")
$response = print("Thanks for agreering to the terms and conditions... Welcome to the site");
elseif($_GET['1'] == "no")
$response = print("Oh that's too bad, but thanks just the same....");
else
$response = print ("Please click a button...");
?>
++++++++++++++++++++++
the problem is when i click those button it will not display anything...
it just remain as it is default which is the " Please press the button " statement
are all my codes ok?
or there is still lacking..
can somebody help me.
Please click a button
button: Agree
button: Disagree
when you press the button agree the text "Please click a button "
will be replaced by"Thanks for registering"
then if you press the button disagree the text "Please click a button "
will be replaced by"ok Thanks anyway "
+++++++++++++++++++++++++++++
my PHP code is
<form name=1>
<input type= "submit" name= "yes" value=" I Agree">
<input type= "submit" name="no" value= " I Disagree">
</form>
<?php
if ($_GET ['1']== "yes")
$response = print("Thanks for agreering to the terms and conditions... Welcome to the site");
elseif($_GET['1'] == "no")
$response = print("Oh that's too bad, but thanks just the same....");
else
$response = print ("Please click a button...");
?>
++++++++++++++++++++++
the problem is when i click those button it will not display anything...
it just remain as it is default which is the " Please press the button " statement
are all my codes ok?
or there is still lacking..
can somebody help me.