Jump to content

Link not working in IE


petenaylor

Recommended Posts

Hi all

 

I have a page which has the following link on it:

 

<a href="view-listings.php?live&id=<?php echo $showlistings['id'] ?>" title="Click here to make this listing live"><img src="../images/not-live.gif" width="20" title="Click here to make this listing live" alt="Click here to make this listing live" /></a>

 

Which runs this part of the script:

 

if (isset($_GET['live'])) {

$liveid = $_GET['id'];

mysql_query("UPDATE `listings` SET live = 1 WHERE id = '".$liveid."'");

header ("Location: view-listings.php");

}

 

Which works great on Safari but it says "Page cannot be displayed" on a PC running Internet Explorer 8?

 

Please help!

 

Pete

Link to comment
https://forums.phpfreaks.com/topic/230597-link-not-working-in-ie/
Share on other sites

The query string should be like ?name1=value1&name2=value2 etc. so try this:

 

href="view-listings.php?live=1&id=<?php echo $showlistings['id']; ?>"

 

Who says that? Even if it were technically incorrect, I very much doubt that would trip up a web browser.

 

If you remove the header() call, does the error still show?

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.