Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
Outputting $_GET variables
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
pbmods
replied
Jun 3 '07, 04:35 PM
Originally posted by
bencohen
thanks, so how do i print that information on screen to the user. I want to put it into a form
Easiest way to do it:
[code=html]
<input type="text" name="query" value="<?php echo $_GET['query']; ?>" />
[/code]
Leave a comment:
Post Comment
Cancel
bencohen
replied
Jun 3 '07, 03:19 PM
thanks, so how do i print that information on screen to the user. I want to put it into a form
Leave a comment:
Post Comment
Cancel
pbmods
replied
Jun 3 '07, 03:10 PM
Changed thread title to better match contents and to remove the annoying 'help' text (don't worry; we know why you're here).
Heya, bencohen. Welcome to TSDN!
You'll be wanting to use $_GET['query'].
PHP: Predefined Variables - Manual
http://www.php.net/manual/en/language.variables.predefined.php#language.variables.superglobals
Predefined Variables
Leave a comment:
Post Comment
Cancel
bencohen
started a topic
Outputting $_GET variables
Jun 3 '07, 03:04 PM
Outputting $_GET variables
I'm having a complete block on something simple:
User makes query i.e.
script.php?quer y=one
I want to use $query to the print "one"
Cant remember how to do that
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Leave a comment: