Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Location
    Singapore
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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

  • #3
    Regular Coder
    Join Date
    Jul 2003
    Location
    Singapore
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok. no problem.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •