> My problem is that I want to use events in my forms but I do not know how
> use php as a script for an event.  Say I wanted to do something as simple
> (within a form): <input type="button" value="Test" onclick= <?php print
> 'testing, testin 123';?>>
> Essentially, when a click this button in a form it prints out testing.

PHP is a server-side script language. It does not get sent to the browser,
and browsers don't understand how to execute PHP code (for that precise

You want to do this with JavaScript, not PHP.


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