Jump to content

$_GET problem in PHP5


mcmuney

Recommended Posts

The $_GET function is basically not working. Where it would normally pull the $sci_id, it now shows (sci_id=blank). I'm having the same issue with other lines with $_GET, I assumed it had something to do with PHP5, because it works with PHP4.4.

Link to comment
Share on other sites

Hmm.. was $sci_id set before you used it in that line?  If it was not set anywhere, then you had register_globals on in php4, but off in php5.  You can fix that by switching it on in php.ini, or by using $_GET['sci_id'] instead of $sci_id, giving you

 

$sci_id = $_GET['sci_id'];
$mail->mailParam["sci_id"]=$_GET[$sci_id];

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.