[PHP] Scripting events with php

2002-01-06 Thread Puck

My problem is that I want to use events in my forms but I do not know how to
use php as a script for an event.  Say I wanted to do something as simple as
(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.

A more sophicisticated problem i had, was i wanted to print out multiple
repeats of a form based upon user input.  I have a user database, where
during the initial profile setup, they can specificy potentially large
amount of interests that they have.  I would like for them to be able to
say: I have 5 interests, click a button then 5 textboxes popup.

dmp



-- 
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]




RE: [PHP] Scripting events with php

2002-01-06 Thread Jason Murray

 My problem is that I want to use events in my forms but I do not know how
to
 use php as a script for an event.  Say I wanted to do something as simple
as
 (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
reason).

You want to do this with JavaScript, not PHP.

Jason

-- 
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]