Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GET Command 2

Status
Not open for further replies.

overyde

Programmer
May 27, 2003
226
ZA
Can the get command only be used with a form?

Reality is built on a foundation of dreams.
 
nope this will work to:
using javascript:
location.href='hello.php?id=1'

in hello.php u can use $_GET[id] and it will give u 1....

Known is handfull, Unknown is worldfull
 
it also works with window.open:
window.open('hello.php?id=1',.......)

Known is handfull, Unknown is worldfull
 
Any URL can have GET parameters attached.
The spectrum of methods that contain URL parameters also includes hyperlinks.

Inside PHP:
You can always assemble headers within your PHP to send GET data to another script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top