Jump to content

Internet Explorer Won't Post


signature16

Recommended Posts

I am trying to setup this script but for some reason Internet Explorer won't post the data.  When I submit the data, it is like I typed the URL to the actions pages in.  It doesn't do anything it is supposed to do.  On Firefox it works perfectly. 

 

Internet Explorer won't post the data when I click the "Submit" link...or when I hit enter on the keyboard.  I'm not sure whats wrong.

 

The Submit button is at the very bottom of the code part. 

 

Can somebody please help me? 

 

Thanks so much!

 

    <form method=POST action="<?php $_SERVER['PHP_SELF'];?>">
      <table border=0>
        <tr>
          <td colspan="6"><strong>General Information:</strong> </td>
        </tr>
        <tr>
          <td width="131">Name:</td>
          <td width="144"><input type=text name='storename' value='<? echo $storename; ?>' />
           </td>
          <td width="221" colspan="4" align=right valign="top"><a href="images/public-add/name.gif" rel="lightbox" title="Personal Name"><img alt="" src="images/help.gif"/></a>  </td>
        </tr>
        <tr>
          <td>Phone:</td>
          <td><input type="text" name='phone' value='<? echo $phone; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/phone.gif" rel="lightbox" title="Phone Number"><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <?php /*?><tr>
  <td>Website or Email:

  </td>
  
  <td><input type="text" name='url' value='<? 
if ($url == '')
{
echo "http://";
}
else
{
echo $url;
} ?>' />
<br />
<span style="font-size:8pt;">
  <br />If you adding an email please add:  mailto: in front of it.<br />
  E.G.   mailto:[email protected]
</span>
</td>
  <td colspan="4" align=right valign="top">
    <a href="images/public-add/name.gif" rel="lightbox" title="Your Personal or Clinic Name will be linked to this email."><img alt="" src="images/help.gif"/></a>
  </td>
</tr>
<?php */?>
        <tr>
          <td>Hours:</td>
          <td>
	  
	  <input type="text" name='hours' value="<? echo $hours; ?>" />
</td>
          <td colspan="4" align="right" valign="top"><a href="images/public-add/hours.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
	        <tr>
          <td>Email:</td>
          <td>
	  
	  <input type="text" name="emailConfirm" value="<? echo $emailConfirm; ?>" />

        </tr>







        <tr>
          <td colspan="6"><br /><strong>Address:</strong></td>
        </tr>
        <tr>
          <td>Street Address:</td>
          <td><input type=text name='street' value='<?php echo $address; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/street-address.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <tr>
          <td>City</td>
          <td><input type=text name='city' value='<?php echo $city; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/city-state-zip.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <tr>
          <td>State:</td>
          <td><input type=text name='state' value='<? echo $state; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/city-state-zip.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <tr>
          <td>Zip Code: </td>
          <td><input type=text name='zip' value='<? echo $zip; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/city-state-zip.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <tr>
          <td>Country:</td>
          <td><? echo show_country_codes(); ?></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/city-state-zip.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a></td>
        </tr>
        
        <tr>
          <td> </td>
          <td>

	  <input type="image" src="images/submit.gif" style="width:104px; height:24px; margin-top:15px;" name="submit" value="Submit Location" />
</td>
          <td colspan="4"></td>
        </tr>
      </table>
    </form>

Link to comment
https://forums.phpfreaks.com/topic/38838-internet-explorer-wont-post/
Share on other sites

o just looknig at the code I see

 

 <?php <tr>

 

wtf?

 

just remove the

 

<?php  and it should work

 

 

tested  it stilll doesn't print submit button but it loads more of the page now..

General Information:  
Name:     
Phone:    
Website or Email:   

If you adding an email please add: mailto: in front of it.
E.G. mailto:[email protected]    
Hours:     
Email:   

Address: 
Street Address:    
City    
State:    
Zip Code:     
Country: 
Fatal error: Call to undefined function: show_country_codes() in C:\www\aa.php on line 88

Cuz look

 

<?php <tr>

 <td>Website or Email:

 

 </td>

 

 <td><input type="text" name='url' value='<?

if ($url == '')

 

 

you see  you started a <?php    but you never put anything in it or even closed it than you start a new php with a shorttag  <?    whats the point of that?

I removed that weird <?php <tr> thing.  I think it was just a mistake with me trying to comment stuff out.

 

Here is the updated code, which still doesn't work.

 


<form method="POST" action="<?php $_SERVER['PHP_SELF'] ?>">
      <table border=0>
        <tr>
          <td colspan="6"><strong>General Information:</strong> </td>
        </tr>
        <tr>
          <td width="131">Name:</td>
          <td width="144"><input type=text name='storename' value='<? echo $storename; ?>' />
           </td>
          <td width="221" colspan="4" align=right valign="top"><a href="images/public-add/name.gif" rel="lightbox" title="Personal Name"><img alt="" src="images/help.gif"/></a>  </td>
        </tr>
        <tr>
          <td>Phone:</td>
          <td><input type="text" name='phone' value='<? echo $phone; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/phone.gif" rel="lightbox" title="Phone Number"><img alt="" src="images/help.gif"/></a> </td>
        </tr>

        <tr>
          <td>Hours:</td>
          <td>
	  
	  <input type="text" name='hours' value="<? echo $hours; ?>" />
</td>
          <td colspan="4" align="right" valign="top"><a href="images/public-add/hours.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
	        <tr>
          <td>Email:</td>
          <td>
	  
	  <input type="text" name="emailConfirm" value="<? echo $emailConfirm; ?>" />

        </tr>







        <tr>
          <td colspan="6"><br /><strong>Address:</strong></td>
        </tr>
        <tr>
          <td>Street Address:</td>
          <td><input type=text name='street' value='<?php echo $address; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/street-address.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <tr>
          <td>City</td>
          <td><input type=text name='city' value='<?php echo $city; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/city-state-zip.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <tr>
          <td>State:</td>
          <td><input type=text name='state' value='<? echo $state; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/city-state-zip.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <tr>
          <td>Zip Code: </td>
          <td><input type=text name='zip' value='<? echo $zip; ?>' /></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/city-state-zip.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a> </td>
        </tr>
        <tr>
          <td>Country:</td>
          <td><? echo show_country_codes(); ?></td>
          <td colspan="4" align=right valign="top"><a href="images/public-add/city-state-zip.gif" rel="lightbox" title=""><img alt="" src="images/help.gif"/></a></td>
        </tr>
        
        <tr>
          <td> </td>
          <td>

	  <input type="image" src="images/submit.gif" style="width:104px; height:24px; margin-top:15px;" name="submit" value="Submit Location" /></td>
          <td colspan="4"></td>
        </tr>
      </table>
    </form>

 

thanks so much for the help so far everybody.

O I see what you want to do  No idea why  but you want after a user refreshes the page his posted data stays there

 

just replace

 

<? echo $emailConfirm; ?>

<? echo $phone; ?>

<? echo $storename; ?>

 

etc... the left overs to..

 

<? echo $_POST['storename']; ?>

 

just for testing see if it posts  you should see the same data after you submit the page after it refreshes

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.