Jump to content

GET method


condor

Recommended Posts

Hi,

 

The IF statement below redirects the user to next.php if "entry" is not in my database.  I thought I'd try the GET method to define "entry" once the user is on next.php.

 

However, I get a 404 error.  Am I missing something?

 

Thanks

 

$anymatches=mysql_num_rows($result);
if ($anymatches == 0)
{

$_GET['entry'] = (isset($_POST['entry'])) ? $_POST['entry'] : $_GET['entry'];
$_GET['entry'] = strtolower($_GET['entry']);

header("Location:next.php&entry={$_GET['entry']}");
exit;
   
}

Link to comment
https://forums.phpfreaks.com/topic/160990-get-method/
Share on other sites

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.