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
    New Coder
    Join Date
    Aug 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Header() problems

    Is it possible to have two header("Location:whatever.php"); specified? The reason why I ask is I want to have somebody file out a form then have that sent to one address, but I want the user to be sent to another address. The first form will be where somebody will enter their mobile number. This will be sent to a remote url then the user will receive an sms with a pin number. This pin will be entered into the next form. But because the first form information is sent to a remote url I don't have any control over it, but I need the information to be sent to it and then the user continue on the next form.
    Thanks

  • #2
    Super Moderator JohnDubya's Avatar
    Join Date
    Nov 2006
    Location
    Missouri
    Posts
    634
    Thanks
    12
    Thanked 18 Times in 18 Posts
    Try something like this:

    http://php.dzone.com/news/execute-ht...t-using-php-cu

    Use CURL to process the request to the remote server, then continue on with whatever else you need to do with the mobile number.

  • #3
    New Coder
    Join Date
    Aug 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks, Can I still use cURL if the form method is get instead of post?
    Last edited by thehappyappy; 07-25-2008 at 05:31 PM.


  •  

    Posting Permissions

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