Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > redirect and post a value

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-08, 09:03
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 337
redirect and post a value

I want to know if is there a way when I redirect form a one php file to another php to pass a "Post" value from the one to the other.
Dimis
Reply With Quote
  #2 (permalink)  
Old 11-29-08, 22:54
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 706
No, you cannot carry a POST value from one page to another page. If you include() the second php file in the first file, then yes, you can pass the value. Failing that, you'll need to use sessions.
Reply With Quote
  #3 (permalink)  
Old 11-30-08, 04:58
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 5,444
if you include the variables you want to pass between scripts in the same manner as if they came from a web call then you can. whether GET or POST is the appropriate form I dunno
__________________
Warning
May! contain traces of NUT. people with NUT allergies should not pay attention to any of the above
Reply With Quote
  #4 (permalink)  
Old 11-30-08, 05:40
Frunkie Frunkie is offline
Gives Bad Advice
 
Join Date: Mar 2007
Location: 010101010110100
Posts: 706
Hey Healdem, your right, he can pass the vars also using the GET method. I haven't used GET in a while and prefer sessions so it slipped my mind to even mention it. Thanks for the reminder.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On