View Single Post
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Passing data from forms from one page to another

 
0
  #7
Feb 17th, 2005
I would have put it in a function... but you can put it as an action if you want....such as
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <input type="button" value="hi" onClick="document.formname.submit();" />

or in a function.. because I like to test the form values with javascript BEFORE submitting it to the server-side.

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. function check_values()
  2. {
  3. if (document.formname.sometextbox.value == "") {
  4. alert("How About A Value in sometextbox buddy!?")
  5. return;
  6. } else {
  7. document.formname.submit();
  8. }
  9. }
Reply With Quote