473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

conituation regarding register_globals

Hi guys, i have a small question regarding register_globals

I have managed to change the way my forms work so they will process
with register_globals turned off.

However i have one page which enables staff to "browse" by product,
which will list all products that begin with the letter they had
chosen.

On the return of this, i had previously used the results to form a
hyperlink to the product page, using the productcode as a reference
like this:

echo "<a href=product.php?product=" .$result['code']. ">" .
$result['name']. "</a>";

On the result page, i had it set out to check for form submission, and
if it wasnt, display the page searching for the product ( $product ),
if it couldnt find it return the page as item doesnt exist in the
database.

However, I am now unsure how to get the variables passed directly from
the link.
I have searched quite a lot over the last day, but not a lot of
information regarding non forms and register_globals. I am starting to
get the impression it may not be possible.

Hope someone tells me im wrong !!

Dave.

Aug 17 '07 #1
1 1494
On 17 Aug, 10:07, Dave <david.greenh...@praybourne.co.ukwrote:
Hi guys, i have a small question regarding register_globals

I have managed to change the way my forms work so they will process
with register_globals turned off.

However i have one page which enables staff to "browse" by product,
which will list all products that begin with the letter they had
chosen.

On the return of this, i had previously used the results to form a
hyperlink to the product page, using the productcode as a reference
like this:

echo "<a href=product.php?product=" .$result['code']. ">" .
$result['name']. "</a>";

On the result page, i had it set out to check for form submission, and
if it wasnt, display the page searching for the product ( $product ),
if it couldnt find it return the page as item doesnt exist in the
database.

However, I am now unsure how to get the variables passed directly from
the link.
I have searched quite a lot over the last day, but not a lot of
information regarding non forms and register_globals. I am starting to
get the impression it may not be possible.

Hope someone tells me im wrong !!

Dave.
Its always the way, decide to post to the groups, cause you cant find
the answer.... and then bang! its on the next bloomin page.

sorry
Dave.

Aug 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Frank | last post by:
Whats best : register_globals ON ? OR register_globals OFF ? I currently use: $_POST
10
by: John | last post by:
Hello. I am a newbie to PHP. I am over halfway through my first book that I'm learning with and have just created login pages etc. I just wondered, if I am running php/mysql/apache locally,...
6
by: wonder | last post by:
Hi, The CRM application said that need to add an option "REGISTER_GLOBALS=On" to the php.ini file, so I did what it told. But I still can't get rid off the following error: The PHP variable...
8
by: lian | last post by:
Hi all, I have installed a web-based software written in php which needs that i should turn "register_globals" from off to on in the php.ini. There are some comments for register_globals in...
3
by: Douglas Pollock | last post by:
I'm new to session id variables. I'm trying to write records containing the session id to a log file but the session id keeps disappearing. I'm using session_register() because the site has...
2
by: Phil Latio | last post by:
I am newish to PHP and wish to create an authentication system where a new user is required to validate/complete their sign-up by clicking a link in an email. I am probably capable of putting...
15
by: news | last post by:
You'd think it'd be easier to find the answer to this question. Did a search, and all I can find is people asking why something's not working and people replying it's because register_globals is...
6
by: peter | last post by:
Hi. I am just learning PHP. I'm taking over the website at work, which is coded in PHP. I am wondering about register_globals. They are on on the server we use. Is that a threat? I understand...
17
by: peter | last post by:
I just took over the website at work. I am still learning PHP. Register_globals are on and the script appears to be coded to take advantage of this. I know how to recode the script, but am unsure...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.