Page 1 of 1

Form not submitting in Safari 4, fine in everything else,!

Posted: Wed Jul 15, 2009 8:03 pm
by boon4376
This form simply wont submit in safari, it will in everything else.. I hit the submit button and it wont to anything, it shows no signs of life!

I created another form below it to see if it was just that particular form, and i cant get either to submit in safari, again, they submit fine in FF and IE.
Whats wrong here?

Code: Select all

<form name="updaterecord" action="performupdate.php" method="GET">
 
<input type="hidden" name="RID" value="$RID">
 
<table border="0" cellspacing="2" cellpadding="2"></tr>
 
<tr>
  <td class="studentInfo" align="right"><b>Student ID: </b></td>
  <td class="studentInfo"><input type="text" name="newSID" value="$SID" readonly></td>
</tr>
<tr>
  <td class="studentInfo" align="right"><b>SSN: </b></td>
  <td class="studentInfo"><input type="text" name="newSSN" value="$SSN"></td>
</tr>
 
<tr>
  <td class="studentInfo" align="right"><b>Name: </b></td>
  <td class="studentInfo"><input type="text" name="newstudent_name" value="$student_name"></td>
</tr>
 
<tr>
  <td class="studentInfo" align="right"><b>Date Of Birth: </b></td>
  <td class="studentInfo"><input type="text" name="newDOB" value="$DOB"></td>
  <td>(YYYY-MM-DD)</td>
</tr>
 
<tr>
  <td class="studentInfo" align="right"><b>Parent's Name: </b></td>
  <td class="studentInfo"><input type="text" name="newparent_name" value="$parent_name"></td>
</tr>
 
<tr>
  <td class="studentInfo" align="right"><b>Zip Code: </b></td>
  <td class="studentInfo"><input type="text" name="newzipCode" value="$zipCode"></td>
</tr>
 
<tr>
  <td> </td>
  <td align="right"><input type="submit" value="Update Record"></td>
</tr>
 
</table>
 
</form>
<br><Br>
test form: <br>
 
<form name="test form" action="performupdate.php" method="GET">
<input type="text" name="TEST">
<input type="submit" value="TesT Submit">
</form>
 
 

Re: Form not submitting in Safari 4, fine in everything else,!

Posted: Wed Jul 15, 2009 8:10 pm
by JAB Creations
Did you validate the (X)HTML with the W3C Validator?

This thread belongs in the clientside forum as it's not related to PHP.

Re: Form not submitting in Safari 4, fine in everything else,!

Posted: Wed Jul 15, 2009 8:28 pm
by boon4376
JAB Creations wrote:Did you validate the (X)HTML with the W3C Validator?

This thread belongs in the clientside forum as it's not related to PHP.
* way over my head...

*googling several things now

Edit: The validator turns out to be very useful, thanks.. I just had a </tr> with no opening <tr> for some reason. :oops:

Re: Form not submitting in Safari 4, fine in everything else,!

Posted: Thu Jul 16, 2009 2:27 am
by JAB Creations
At least for local development I highly recommend serving your XHTML as application/xhtml+xml instead of text/html. If your XML is broken like it was then if you're using Firefox (or at least Opera or Safari) for testing by default (and only test IE after everything works as desired in the other browsers) then the page will break and you'll see an XML error...but you'll see it right in front of your face rather then having to guess or manually validate the page. It also forces you to a higher standard of learning higher quality code.