You can either check your text field with JavaScript before submitting your
form or
after on server-side with PHP. I prefer to use JavaScript because it saves a
and forth.

here an example of that :


For the printing function, check that :


Enjoy :-)

"Jack" <[EMAIL PROTECTED]> wrote in message
> Dear all
> I want to ask if i want to perform two task after the user had click a
> button,
> 1 is the task perform by PHP
> 2 is the task perform by JavaScript
> is it possible to do so?
> I'm actually fresh on JavaScript, before i would call the JavaScript, what
> should i do first or what should i set before though?
> Thx
> Jack

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to