By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,954 Members | 1,248 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,954 IT Pros & Developers. It's quick & easy.

Can someone please confirm tthis

P: n/a
Ike
Can someone ple4ase confirm my understanding of this line of html/javascript
code below?If, when the submit button is pressed, the javascript function
checkdate() returns true, the form's action parameter will execute,
otherwise, it will not. Is this a correctunderstanding on my part? Thanks,
Ike<form name="upcards" onSubmit="return
checkdate(this.mydate)"action="/upcards.php?leadid=&upskey=200"
method="POST">
Oct 9 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a


On Oct 9, 5:47 pm, "Ike" <r...@hotmail.comwrote:
Can someone ple4ase confirm my understanding of this line of html/javascript
code below?If, when the submit button is pressed, the javascript function
checkdate() returns true, the form's action parameter will execute,
otherwise, it will not. Is this a correctunderstanding on my part? Thanks,
Ike<form name="upcards" onSubmit="return
checkdate(this.mydate)"action="/upcards.php?leadid=&upskey=200"
method="POST">
yes

Oct 9 '06 #2

P: n/a
Lee
Ike said:
>
Can someone ple4ase confirm my understanding of this line of html/javascript
code below?If, when the submit button is pressed, the javascript function
checkdate() returns true, the form's action parameter will execute,
otherwise, it will not. Is this a correctunderstanding on my part? Thanks,
Ike<form name="upcards" onSubmit="return
checkdate(this.mydate)"action="/upcards.php?leadid=&upskey=200"
method="POST">
That's the general idea, but it's subtly different:
If checkdate() returns false, the form will not be submitted,
otherwise (if it returns nothing at all, or anything other than false)
it will be submitted.
--

Oct 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.