Web Analytics Made Easy -
StatCounter If this input, then this action? - CodingForum

Announcement

Collapse
No announcement yet.

If this input, then this action?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #2
    Damn you're good...

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

    Thanks again
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

    Comment

    Working...
    X