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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
boon4376
Forum Newbie
Posts: 19
Joined: Sun Oct 01, 2006 9:55 pm

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

Post 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>
 
 
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

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

Post 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.
boon4376
Forum Newbie
Posts: 19
Joined: Sun Oct 01, 2006 9:55 pm

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

Post 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:
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

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

Post 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.
Post Reply