Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-26-2004, 03:19 PM   PM User | #1
qazs
Regular Coder

 
Join Date: Jul 2003
Location: Singapore
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
qazs is an unknown quantity at this point
Question Using header to submit form

Why is it that when I user header:location, it does not submit a form
even though there's a form on the page.
For example, A has a form in it.
I use 'header(location:A.php)' and when I use print_r($_POST), I get nothing.
qazs is offline   Reply With Quote
Old 12-26-2004, 03:46 PM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
header doesn't pass POST variables. I don't get what you're trying to do as once your form is submitted, the variables are created on the next page you go to, so why the need for header? If you need to keep the variables for around the site, then stick them into a session or something
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 12-26-2004, 04:50 PM   PM User | #3
qazs
Regular Coder

 
Join Date: Jul 2003
Location: Singapore
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
qazs is an unknown quantity at this point
ok. no problem.
qazs is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:59 AM.


Advertisement
Log in to turn off these ads.