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 2 of 2
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts

    If this input, then this action?

    I was wondering if a person types in their email and it's of a certain type if the action could be changed. Problem is the forms name I think...dunno.

    Example

    <form name=myform method=post action=mail.php>
    <input type=text name=receiver value=Email Address>
    </form>

    Now, when the user types in yahoo.com on the end of his address, the form now changes to:

    <form name=myform method=post action=mail2.php>

    I'm thinking: If yahoo.com, then action=mail2.php, else=mail.php

    Dunno if this is possible. I'm using a bunch of js validation but am thinking of changing it to server-side if need be.

    An example would be great.

    Thanks

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Damn you're good...

    Sorry for the delay...Got sidetracked passing form variables into php stuff.

    Thanks again


  •  

    Posting Permissions

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