making queries
| From: | Christian Sandfeld | Date: | Wed, 27 Jun 2001 09:19:51 +0000 |
| Subject: | making queries | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-9856@lists.php.net to get a copy of this message | ||
Yes, it's possible. What you do is write the var names and values after the
page name as follows:
<a href="mylink.php?foo=bar&bar=foo">click my link</a>
This would call a script called mylink.php, initializing two vars, namely
$foo (containing the value 'bar') and $bar (containing the value 'foo').
So, to pass info to a script using a link, call the script with a ? followed
by varname=varvalue, and if you need to pass more info to the script,
seperate the vars with a &
/Christian
-----Original Message-----
From: Andrew Aitken [mailto:Andrew@thescorpion.co.uk]
Sent: 26. juni 2001 20:56
To: php-db@lists.php.net
Subject: [PHP-DB] making queries
This is just a quick question.
I'd like to no if it's possiable to make a normal link supply infromation to
a page of PHP very much like a form and if so how? Thankyou for any help at
all
Andrew Aitken
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net