|
Author |
Message |
domuk
WebHelper
![WebHelper WebHelper](images/rank_2.gif)
Joined: 15 Jan 2004
Posts: 91
|
Posted:
Sat Jun 12, 2004 4:27 pm (19 years, 10 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Hi, I am looking for a tutorial, but I am not sure what to search for.
What I want to do is understand how to pass variables to a php script via a link sent to someone in an email.
I am trying to write an email validation script and I think this is a possible way to do it.
An example of this taken from this phpbb is:
http://www.4webhelp.net/forums/posting.php?mode=newtopic&f=5
I am not sure what is happening after the “?” I assume that the data after is assessed by the php script “posting.php”.
If I wanted to pass a variable $age=2 and $sex=”m” to the script would I use:
http://www.4webhelp.net/forums/posting.php?$age=2&$sex=m
or am I totally wrong?
I need help with this.
Thanks,
Dom. |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by domuk Find all posts by domuk](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
Daniel
Team Member
![](images/rank_6.gif)
![](http://www.4webhelp.net/forums/images/daniel_avatar.php)
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat Jun 12, 2004 5:41 pm (19 years, 10 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Hi Dom,
The name of a variable does not include "$": when used, the $ sign is to identify the name which follows as a variable name.
To set $age = 2, simply call up the URL "script.php?age=2".
To set $age = 2 and $sex = "m" call up the URL "script.php?age=2&sex=m". |
________________________________
![Image Image](http://www.4webhelp.net/images/daniel_sig.gif) |
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by Daniel Find all posts by Daniel](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
domuk
WebHelper
![WebHelper WebHelper](images/rank_2.gif)
Joined: 15 Jan 2004
Posts: 91
|
Posted:
Fri Jul 02, 2004 3:02 pm (19 years, 10 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
thanks Daniel.. ![Wink](/forums/images/smilies/icon_wink.gif) |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by domuk Find all posts by domuk](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.115239 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |