Since PHP lives on the server and is not interpreted by the browser, you
Specifically, in this case, what you need to do is something like this:
The best thing that you can do in this situation is to have PHP generate
With the example you have below, the source code of your page will show this:
<input type="button" value="text" onclick=testing, testin 123>
which probably isn't what you want.
At 06:39 PM 1/6/2002, Puck wrote:
>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.
Richard S. Crawford
AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford
MSN: [EMAIL PROTECTED]
"It is only with the heart that we see rightly; what is essential is
invisible to the eye." --Antoine de Saint Exupéry
"Push the button, Max!"
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]