FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to validate using post, then post to form_tools?
#1
No-one else seems to have a problem with this so I'm wondering why I haven't worked it out.

I have a form that worked OK with the post
<form action="http://trotters.co.uk/Scripts/form_tools/process.php" method="post">

I then went through the javascript validation tutorial, but this also shows a post to
<form action="" method="post" onsubmit="return rsv.validate(this, rules)">

If I have 2 post statements on the same form, it only goes to the first one, so I can get it to either validate, or send to form_tools, but not both.

Forgive me for my apparent stupidity, but what am I missing?
Reply
#2
I've been away and come back and now of course I realise that you don't post the form twice, you just add the onsubmit into the form tag!

<form action="http://yoursite.com/Scripts/form_tools/process.php" method="post" onsubmit="return rsv.validate(this, rules)">

I didn't get much sleep last night so my addled brain didn't comprehend the tutorial!
Reply
#3
Haha no, not at all. If it doesn't make sense, chances are the tutorial isn't clear enough. Smile

Thanks for the post.

- Ben
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)