Hi guys, i have a small question regarding register_global s
I have managed to change the way my forms work so they will process
with register_global s 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.ph p?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_global s. I am starting to
get the impression it may not be possible.
Hope someone tells me im wrong !!
Dave. 1 1526
On 17 Aug, 10:07, Dave <david.greenh.. .@praybourne.co .ukwrote:
Hi guys, i have a small question regarding register_global s
I have managed to change the way my forms work so they will process
with register_global s 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.ph p?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_global s. 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Frank |
last post by:
Whats best :
register_globals ON ?
OR
register_globals OFF ?
I currently use:
$_POST
|
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, should I be
okay to turn register_globals on without any security issues?
Thanks
|
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 "REGISTER_GLOBALS" is disabled (0). This is fatal.
Edit your php.ini and set REGISTER_GLOBALS to "On".
I changed the value "On" to "Yes", still getting the same error.
|
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 php.ini saying: "You
should do your best to write your scripts so that they do not require
register_globals to be on; Using form variables as globals can easily
lead to possible security problems, if the code is not very well thought
of."
|
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 register_globals = On (Hosted web
site Php Version 4.3.3).
If I work on my local Windows XP computer and I start up a browser window
the first printf statement
printf ("This is the SID = $szTmp01<br>"); results in:
This is the SID =
| |
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 something together where the user gets sent
a link with a set of values but I am sure it would require
"register_globals" set to ON.
How is this achieved with "register_globals" set to OFF?
|
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 off.
I found one person said: "The change is for the better since
register_global turned to on had some grim security implications." but
no mentioning of what those are!
I'm working on a server now, with a couple hundred PHP pages someone
has...
|
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 I may have to
recode if I turn them off, but is there a simple way to turn them off
and see if the code still works?
Thanks,
Peter
|
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 how
to turn them off when I am done. I have googled and came up with
placing
php_flag register_globals off
in the .htaccess file.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |