onClick action and PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Does anyone know if I can run a function when the link is click by writing  
something similar to that bellow ?

<a href="" target="_blank" onClick="<?  add_product_category();  ?>" >add  

This line doesn't do what I want ....

What I want is to click the link and to open a new window which will have a  
form to add a Category.  

Re: onClick action and PHP

Quoted text here. Click to load it

PHP is server side, meaning that all the work is done before it even arrives  
to your browser.

To do what you want you need to add some code that is client side,  
(JavaScript, .NET etc...)


Re: onClick action and PHP

Try with

<a href="link to the site where you have the form"> target="_blank">Add


Re: onClick action and PHP

I just wanted to use a function that creates the form and is already in a  
file with all my functions. but At the moment I will create a page just for  
this Form.

Thanks anyways !  

Site Timeline