PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 10th, 2002, 09:31 PM
alamsie alamsie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 alamsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old September 10th, 2002, 09:50 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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">

Reply With Quote
  #3  
Old September 10th, 2002, 10:09 PM
alamsie alamsie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 alamsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old September 10th, 2002, 10:16 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: URL - value passing

are you defining it before passing? this should work..
php Code:
Original - php Code
  1.  
  2. <?php
  3.  
  4. $id = "2";
  5. $bean = "crock";
  6.  
  7. echo "<a href="anotherpage.php?id=$id&bean=$bean">click</a>";
  8.  
  9. ?>

Reply With Quote
  #5  
Old September 10th, 2002, 10:40 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: URL - value passing

i suppose it could possibly be a register_globals problem?

Reply With Quote
  #6  
Old September 11th, 2002, 03:21 PM
Nimco Nimco is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 132 Nimco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to Nimco
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > URL - value passing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway