the problem is, that i don t want to use a form. i just have a link to click in a table where row for row the content of the databse is shown.
i want to click on a link and the function should update the specified database entry.
<a href="....function (id, pub)">click here</a>
anything like this is possible?
c
matto wrote:
if you submit form data, "something" (a script, ...) is loaded.
if you wish to remain on the page the click came from, while changing its content or processing data by clicking, have the script reload itself.
I use this construction:
<?
if(isset($ok))
{
// process data, do something
// this will no be interpreted unless the user has clicked the submit button named "ok"
}
// ==== form (page display) starts here ====
?>
< h t m l >
<body>
<form action=<?=$PHP_SELF ?>>
...
<input type=submit name=ok value=" Ok ">
</form>
</body>
< /h t m l >
On clicking "ok" (submit), the page is reloaded but the script can react on the values posted.
I hope that's what you wanted to know.