denoteone Posted May 26, 2009 Share Posted May 26, 2009 I have a form that submits data to a script. But when I put in a <textarea></textarea> in the form the submit button does not work in Fire Fox? I have made many pages with forms before. Has any one ran into this issue before? Could it be a doctype issue? <form action="<?=$_SERVER['PHP_SELF']?>" method=POST> Comments: <textarea rows="5" cols="35" name="contact_comments"></textarea> </form> Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/ Share on other sites More sharing options...
Ken2k7 Posted May 26, 2009 Share Posted May 26, 2009 Where's your submit button? It should work. Is the submit button not submitting the form or do you get no POST data? Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/#findComment-842414 Share on other sites More sharing options...
corbin Posted May 26, 2009 Share Posted May 26, 2009 Assuming SERVER['PHP_SELF'] doesn't contain any "s, the only error I see if method=POST should be method="POST" Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/#findComment-842416 Share on other sites More sharing options...
denoteone Posted May 26, 2009 Author Share Posted May 26, 2009 in I.E. it works and submits data. But in F.F. when I rollover the button it doesn't even give me the option to click. Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/#findComment-842418 Share on other sites More sharing options...
Ken2k7 Posted May 26, 2009 Share Posted May 26, 2009 Can you post more of your form? Everything looks right thus far. Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/#findComment-842421 Share on other sites More sharing options...
PFMaBiSmAd Posted May 26, 2009 Share Posted May 26, 2009 How about posting all of your form so that we can actually help you with it. And don't use short open php tags <?= (ever.) Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/#findComment-842423 Share on other sites More sharing options...
denoteone Posted May 26, 2009 Author Share Posted May 26, 2009 <?PHP ini_set("display_errors","2"); ERROR_REPORTING(E_ALL); //this conditional will send the email after the submit if(isset($_POST["B1"])) { $name = $_POST['contact_name']; $company = $_POST['contact_company']; $email = $_POST['contact_email']; $phone = $_POST['contact_phone']; $comments = $_POST['contact_comments']; $my_message = ' Please contact '.$name.' here is there info:'.$email.' '.$company.' '.$phone.' here are the comments '.$comments.' '; $subject = 'SuperLumin Contact Request'; $headers = "From: ".$email."\r\n"; $headers .= "Reply-To: you3@email.com\r\n"; $headers .= "CC: you2@email.com\r\n"; $headers .= "Content-type: text/html\r\n"; mail('you@email.com',$subject,$my_message,$headers); ?> <html> <head> </head> <body> <b>Thank You!</b> <META HTTP-EQUIV = 'Refresh' Content = '2; URL = index.html'> </body> </html> <?PHP }else{ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Contact Request</title> </head> <body> <form action="<?=$_SERVER['PHP_SELF']?>" method="POST"> <table style="font:bold 12px Verdana, Arial, Helvetica, sans-serif; margin:0px auto; margin-top:20px;" width="80%" border="0" align="center" cellspacing="10"> <tr> <td align="right" width="40%">*Full Name:</td> <td width="60%"><input type="text" name="contact_name" size="40" /></td> </tr> <tr> <td align="right" width="40%">*Company:</td> <td width="60%"><input type="text" name="contact_company" size="40" /></td> </tr> <tr> <td align="right" width="40%">*Email:</td> <td width="60%"><input type="text" name="contact_email" size="40" /></td> </tr> <tr> <td align="right" width="40%">Phone:</td> <td width="60%"><input type="text" name="contact_phone" size="40" /></td> </tr> <tr> <td align="right">Comments:</td> <td><textarea rows="5" cols="35" name="contact_comments"></textarea></td> </tr> <tr> <td align="right"><a href="test.html">tester</a></td> <td><input type="submit" value="Submit" border="0" name="B1"> <input type="reset" value="Reset" name="reset"> </td> </tr> </table> </form> </body> </html> <?php } ?> Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/#findComment-842428 Share on other sites More sharing options...
PFMaBiSmAd Posted May 26, 2009 Share Posted May 26, 2009 Your form does submit in FF for me. It does however have 14 Errors, 2 warning(s) when checked at http://validator.w3.org that you should fix. Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/#findComment-842440 Share on other sites More sharing options...
denoteone Posted May 26, 2009 Author Share Posted May 26, 2009 There was an issue somewhere in the rest of my content in the HTML. Thanks everyone. I will use the Validation before posting for now on. Quote Link to comment https://forums.phpfreaks.com/topic/159716-solved-form-submit-issues/#findComment-842454 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.