Page 1 of 1

Call a function without submit button

Posted: Wed Aug 22, 2012 6:48 am
by macario1983
hi,

i want to know how can i pass value without using button submit...

For example using a little picture to insert, delete o update a register...

I want to know how can i do it...

thanks bro

Re: Call a function without submit button

Posted: Wed Aug 22, 2012 7:54 am
by social_experiment
Query strings.

Code: Select all

 <a href="page.php?id=1" ><img src="edit.jpg" /></a>

Re: Call a function without submit button

Posted: Wed Aug 22, 2012 12:56 pm
by requinix
For the record, you shouldn't be using links to do any significant action like adding or deleting stuff. That really does belong in a POSTed form.