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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.