Reply
Very weird problem in the URL
Old 07-07-2004, 09:05 PM Very weird problem in the URL
Skilled Talker

Posts: 55
i just switched servers, and before everything worked out just fine...but now i have pages like...

profile.php?id=2

but it's treating it as if it's not picking up the $id after the ?...although it used to on our other server...so i was thinking my settings arent right...but i dont know where to look to try to fix the problem...any help?
xFrozenxSoulsx is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-07-2004, 09:58 PM
Republikin's Avatar
Super Moderator

Posts: 3,191
What type of server did you switch from and too? Are you sure that there is not an error in your code that could prevent the GET variable from being recognized properly?
Republikin is offline
Reply With Quote
View Public Profile
 
Old 07-07-2004, 10:03 PM
Skilled Talker

Posts: 55
well...both were fedora/linux, but the old one we were using cpanel/whm, on this one it's plesk...so things are a bit different, i cant even find the .htaccess file...but what file could i try to find that might be what's wrong, cause i really doubt it has anything to do with the code since it used to work on our other server and now on this one it doesnt...
xFrozenxSoulsx is offline
Reply With Quote
View Public Profile
 
Old 07-07-2004, 10:09 PM
Republikin's Avatar
Super Moderator

Posts: 3,191
How were things transfered to this new server?
Republikin is offline
Reply With Quote
View Public Profile
 
Old 07-07-2004, 10:33 PM
Skilled Talker

Posts: 55
manually...just uploaded the pages and databases manually through ftp...

nevermind i fixed it, i had to put in this now..

$id = $HTTP_GET_VARS["id"];

so now ive gotta go through a bunch of pages to edit them so they can do this...isnt their an easier way so that it'll just use GET automatically?

Last edited by xFrozenxSoulsx : 07-07-2004 at 11:04 PM.
xFrozenxSoulsx is offline
Reply With Quote
View Public Profile
 
Old 07-08-2004, 05:00 AM
doubleD's Avatar
Novice Talker

Posts: 5
i'm not sure but couldn't that be from PHP setings, the diference between the way versions 3.0 and 4.0 handle global variables?
doubleD is offline
Reply With Quote
View Public Profile
 
Old 07-08-2004, 06:38 PM
lothop's Avatar
Extreme Talker

Posts: 229
Hey, I'm wondering how this actually works?

Like, I'm interested in just having the one page, then when u click a link, it loads the new webpage into like, an include. So its like a template sorta thing.

Is it like, $id = $HTTP_GET_VARS["id"]; is the id of the webpage. So , for example members.php?id=38

You would have $HTTP_GET_VARS["38"]; and that gets the page and places it into where you want it? like and include?

But then when you click the link, what does it do then?

Lothop
lothop is offline
Reply With Quote
View Public Profile
 
Old 07-10-2004, 10:56 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Be aware that the method you are using for retrieving globals is deprecated. Try using

PHP Code:
$id $_GET[id]; 
$_POST is the superglobal array used for retrieving posted values.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Reply     « Reply to Very weird problem in the URL
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14788 seconds with 12 queries