mcmuney Posted January 26, 2011 Share Posted January 26, 2011 I've tried both of these methods, but neither are working. The if statement fails every time. if(isset($_POST['submit'])){ if(isset($submit)){ This is the form: <form id="form1" name="form1" method="post" action="join.php"> <label><span> <input name="email" type="text" class="keywords" id="textfield" maxlength="50" value="Join my mailing list..." onclick="make_blank();" /> </span> <input name="submit" type="image" src="images/search.gif" class="button" onclick="return checkmail(this.form.email);"/> </label> </form> Link to comment https://forums.phpfreaks.com/topic/225708-isset-on-form-submission-not-working/ Share on other sites More sharing options...
harristweed Posted January 26, 2011 Share Posted January 26, 2011 Possibly because submit does not have a value. Try: <input name="submit" type="image" value="submit" src="images/search.gif" class="button" onclick="return checkmail(this.form.email);"/> Link to comment https://forums.phpfreaks.com/topic/225708-isset-on-form-submission-not-working/#findComment-1165380 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.