LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-25-2004, 03:02 PM   #1
maseby
Member
 
Registered: Oct 2003
Posts: 42

Rep: Reputation: 15
Guys ...PHP QUESTION


Guys i need to find some good php links that really explains howto send

variables with URL:s and extracting the information....for example as such:


/search.php?search_id=1814179254&start=50

what does this mean...HELP ME with good tutorial links
 
Old 05-25-2004, 03:09 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
They will be in $_GET

The value:
1814179254

Will be in the variable:
$_GET["search_id"]
 
Old 05-25-2004, 03:11 PM   #3
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
I wrote a CGI library for C++ that does what you want. If you want it, click the following link:

http://www.restorides.com/~nerd/libc...cgi-1.0.tar.gz

Its actually a whole library for anything you want to do in CGI.
 
Old 05-25-2004, 03:12 PM   #4
maseby
Member
 
Registered: Oct 2003
Posts: 42

Original Poster
Rep: Reputation: 15
tnx...i gathered this much...but i still need SOME LINKS THAT really explains this
 
Old 05-25-2004, 03:15 PM   #5
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
You need a HTML form, PHP is not needed to have such an URL.
You can use PHP to use the information in the URL.
See: http://www.php.net/manual/en/tutorial.forms.php for some (a little terse) information.
Use method="get" instead of method="post" as on that page.
then use $_GET['name'] instead of $_POST['name'] in PHP to use the info from the URL.

Last edited by Hko; 05-25-2004 at 03:18 PM.
 
Old 05-25-2004, 03:17 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Did you look at the php docs?
http://www.php.net/variables.predefined
http://www.php.net/variables.external
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
im almost there guys! ....but, yet another question??? matthewa Linux From Scratch 4 06-04-2005 02:04 AM
ok guys, im getting there..another question? matthewa Linux From Scratch 2 06-03-2005 06:32 PM
an easy question for you guys Bryanlee Linux - Newbie 3 05-16-2005 06:15 AM
question guys for those gurus golpemortal Linux - Wireless Networking 0 04-20-2005 11:52 PM
Here is a simple question for you guys patpawlowski Linux - Newbie 2 02-04-2004 01:50 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration