Call a function without submit button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
macario1983
Forum Newbie
Posts: 6
Joined: Fri Aug 17, 2012 5:22 pm

Call a function without submit button

Post 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
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Call a function without submit button

Post by social_experiment »

Query strings.

Code: Select all

 <a href="page.php?id=1" ><img src="edit.jpg" /></a>
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Call a function without submit button

Post 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.
Post Reply