473,385 Members | 1,325 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,385 software developers and data experts.

recovering parameters passed with URL on the receiving PHP end

aa
If I pass parameters to a PHP script in URL like

..php?a=aa&b=bb
how do I recover them on the receiving PHP end?
I looked at the list of PHP Variables using phpinfo() and found nothing
suitable
Jul 17 '05 #1
3 2009
I noticed that Message-ID:
<41***********************@ptn-nntp-reader02.plus.net> from aa contained
the following:
If I pass parameters to a PHP script in URL like

.php?a=aa&b=bb
how do I recover them on the receiving PHP end?
I looked at the list of PHP Variables using phpinfo() and found nothing
suitable


aa will be in the superglobal variable $_GET['a']

bb will be in the superglobal variable $_GET['b']
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2
Geoff Berrow wrote:
aa will be in the superglobal variable $_GET['a']

bb will be in the superglobal variable $_GET['b']


And the entire query string will be in:

$_SERVER['QUERY_STRING']
JW

Jul 17 '05 #3
aa wrote:
If I pass parameters to a PHP script in URL like

.php?a=aa&b=bb
how do I recover them on the receiving PHP end?
I looked at the list of PHP Variables using phpinfo() and found nothing
suitable


Request parameters will only show in output if parameters are present
when you use phpinfo. If you did, then look again. They *are* there.

/Bent
Jul 17 '05 #4

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

Similar topics

5
by: Danny De Koster | last post by:
Hi all, I'm really a newbie. How can I trap (read in my program) the parameters which where giving at the launch of the my program? thanks for any tips Danny
1
by: John Miles | last post by:
Hi -- This is a bit of an implementation-specific problem, but I'd like to post it here to see if there's a general answer within the auspices of the language. I'm developing a high(er)-level...
3
by: Peter | last post by:
Has anyone seen this before? I start SQL*Plus, and login by typing sqlplus Quantum/Password@BPrd I type: select '&1' from dual; it responds
5
by: Andy | last post by:
Hi Could someone clarify for me the method parameter passing concept? As I understand it, if you pass a variable without the "ref" syntax then it gets passed as a copy. If you pass a...
0
by: lastusernameleft | last post by:
im creating a proof of concept in .net passing stored procedure parameters to an Access database as the back end, using ADO. the stored procedure, in this case a parameterized query, has a virtual...
2
by: Samba | last post by:
Hi, Mine is a very basic doubt ... (1) If we are using a static field/object, then the field/object is shared across all the places in the entire application as it is stored only at one...
4
by: DraguVaso | last post by:
Hi, I have application A giving 1 string containing some parameter to application B. I guess it would be 'nice' if I made that parameter-string in XML-format. In my application B I need a way...
1
by: craigkenisston | last post by:
I have a grid attached to an objectdatasource from which just one field is editable. For the update method I have a method with two parameters, the key of the record and the column to be updated....
3
by: danbraund | last post by:
Hi everyone, I'm a long time C coder, who is coding his final year project in C++ to run under the MIT click routing system. Being fairly new to the OO side of the language, my problem is this: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.