if($row['country'] === "United States" && $row['zip'] === NULL){
echo "<form name='s3804form' action='petitions/s3804.php' method='post'><div class='sbutton' onclick='document.s3804form.submit()'>Sign it</div></form>";
} else {
echo "<form name='s3804form' action='petitions/s3804.php' method='post'><div class='sbutton' onclick='document.s3804form.submit()'>Sign it</div></form>";
}
For some reason the first button <div class='sbutton' onclick='document.s3804form.submit()'> isn't submitting the form, but the second one submits it without any issues, despite it being the exact same code that's being echoed out. Does anyone have a clue what's going on here?
This post has been edited by CodeVillain: 28 December 2010 - 08:08 PM

New Topic/Question
Reply



MultiQuote





|