Retreiving a value from a link

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
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Retreiving a value from a link

Post by PastorHank »

I have a html page with several links in it. I want to use the info from the link to launch a php script that hits one of my tables in my database. (without using a 'submit') button, where can I find some info on how to accomplish that task? I've googled, but not sure of phrasing of the question (because I haven't gotten anything that I can use...)

TIA
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

if your trying to submit your forum, maybe use an onClick event to set some of the fields depending on the link and then submit it with javascript
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Code: Select all

<anytag onclick="document.forms[0].submit()">Submit</anytag>
Post Reply