|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
URL - value passing
hello,
i have a script where the same url page is emailed to 3 different people. the e-mail works fine.i have stored the email addresses of these ppl in $first, $second, $third. what i am doing is appending $first at the end of my url address to pass its value to my next page for example: www.abc.com/xyz.php?id=$id&$first however i am unsuccessful in passing $first because i tested it and it does not echo in my second page, however the id does. is there another way to do it thanks |
|
#2
|
|||
|
|||
|
RE: URL - value passing
try it like this - www.abc.com/xyz.php?id=$id&first=$first
you could also insert a hidden field on your 2nd page like, <input type="hidden" name="first" value="$first"> |
|
#3
|
|||
|
|||
|
RE: URL - value passing
i could not get it to work notepad.
$first, etc. do not exists in my database. they are variables that i am creating in the script |
|
#4
|
|||
|
|||
|
RE: URL - value passing
|
|
#5
|
|||
|
|||
|
RE: URL - value passing
i suppose it could possibly be a register_globals problem?
|
|
#6
|
|||
|
|||
|
RE: URL - value passing
If it is a register_globals() problem, you will need to access the variable using either $_POST['first'] or $_GET['first'] depending on which method you use.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > URL - value passing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|