goomba Jon
03-09-2005, 06:58 AM
is there any way to change the action field in a form on the fly based on a button pressed? if so how can this done?
<form>
<input type="submit" name="yahoo" value="yahoo" onclick=this.form.action.value='yahoo.com';this.form.submit();>
<input type="submit" name="google" value="google" onclick=this.form.action.value='google.com';this.form.submit();>
</form>
i am aware there that most people use form processing scripts, but doing this begins to cause alot of problems and doesnt follow the rules of the fusebox methodology i am using.
thanks!
<form>
<input type="submit" name="yahoo" value="yahoo" onclick=this.form.action.value='yahoo.com';this.form.submit();>
<input type="submit" name="google" value="google" onclick=this.form.action.value='google.com';this.form.submit();>
</form>
i am aware there that most people use form processing scripts, but doing this begins to cause alot of problems and doesnt follow the rules of the fusebox methodology i am using.
thanks!