View Full Version : If this input, then this action?

07-03-2002, 09:40 AM
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.


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

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 :D

07-08-2002, 01:07 AM
Damn you're good...

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

Thanks again :D