Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Thanked 0 Times in 0 Posts

    Posting form data to another form

    I'm not sure if this is easy to do or even possible, but I have a somewhat complex login page within a site, but I would like users to be able to access it (login) from the homepage with just their username & password.

    Is there a way I can pass the data input by the user from a form on the homepage so it inputs it into the the input fields on the actual form page and logs them in there?

  • #2
    Regular Coder
    Join Date
    Aug 2006
    Thanked 1 Time in 1 Post
    This isn't able to be done in the way that you are thinking. You can't post to two different forms at the same time without using curl or writing a function to do it.

    Depending on how the db is setup is setup you could set it up to authenticate on the same table and then write a function to login to set session and cookie data..etc.


    Posting Permissions

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