Jump to content

isset on form submission not working!


mcmuney

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.