Submit a form using hyperlink not 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Submit a form using hyperlink not button??

Post by Chris Corbyn »

Hi,

Does anyone know how you can use a hyperlink to send all the form data instead of using a submit button?

Basically I wanted to use an image as the submit button but I also wanted the cursor to switch to the classic hyperlink pointer on mouseover.

Thanks :-)
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

You can use an image as your submit button, that's just basic HTML. I don't have the code handy, but this is not PHP.

Sending forms over POST variables is much more efficient than clogging up your address bar.
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Post by Bill H »

Code: Select all

<input type=image src="images/ab_add.gif">
Post Reply