Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

PHP 4 and parsing variables question?

Thread Tools
 
Search this Thread
 
Old 17 February 2003, 04:56 PM
  #1  
gregh
Scooby Regular
Thread Starter
 
gregh's Avatar
 
Join Date: Dec 1999
Posts: 3,360
Likes: 0
Received 0 Likes on 0 Posts
Post

Hi there,

I'm moving my website from a server running php3 to one running php4

This used to work in php3:

http://www.mysite.com/php/results.php?type=games


in that it would pass games as the variabe $type into the results.php script.

Now it doesn't appear to parse it at all.

Anyone know how to make this work in php4?

thanks!

greg
Old 17 February 2003, 06:30 PM
  #2  
Andrewza
Scooby Regular
 
Andrewza's Avatar
 
Join Date: Jan 2002
Posts: 667
Likes: 0
Received 0 Likes on 0 Posts
Post

get variables stop being global somewhere in PHP4, you should use $_GET["variable"]
Old 17 February 2003, 11:03 PM
  #3  
snowcrash
Scooby Regular
 
snowcrash's Avatar
 
Join Date: Mar 2002
Location: www.scoobyzone.co.uk
Posts: 2,082
Likes: 0
Received 0 Likes on 0 Posts
Post

http://www.php.net/manual/en/securit...terglobals.php
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM



Quick Reply: PHP 4 and parsing variables question?



All times are GMT +1. The time now is 03:36 PM.