July 17th, 2013, 04:48 AM
How to put some value from link to the other script when user clicks a link...
I have something like this:
"<a href="update.php"><?php echo $r; ?></a>"
and I want to know how to pass a $r to update.php
when user clicks on link..?
I don't know where to put onclick event
July 17th, 2013, 05:31 AM
a link to do an update? An onclick handler? OK, stop right there. I think you've missed some HTML basics. In HTML, changing data is done with forms. You can learn about forms here:
July 17th, 2013, 05:44 AM
I know this, mybe I wasn't clean in asking what I want.
July 17th, 2013, 06:08 AM
OK, I think you'll have to be more specific. Are you talking about Ajax? Do you want the data to be sent without directing the browser to that page? What do you do with this data?
In any case, you will need a form. If you use Ajax, you parse this form instead of submitting it.
July 17th, 2013, 06:13 AM
Originally Posted by Jacques1