Forum Moderators: open
<body OnLoad="document.addbookmark_form.submit();">
<form name="addbookmark_form" action="bookmarks.php" method="post">
<input type="hidden" name="_submitted" value="1"><input type="hidden" name="action" value="add"><input type="hidden" name="uid" value="WHATEVER">
</form>
It was taken and edited from a social networking site (something like MySpace) and the code above would automatically add my profile into the viewer's bookmark list! But, whenever the code is executed, my profile would then be redirected to the site BOOKMARKS.PHP and obviously, would show the viewer's bookmark list!
What I wanna know is, how can I make the form submitting process be done in the background without letting the viewers know that my profile had been submitted into their bookmarks list?
And, I had even tried adding TARGET="_BLANK" after the METHOD="POST" but, my profile would show up and a new window would open (BOOKMARKS.PHP). That is quite annoying though!..
Please help me to solve this problem!
Thanx in advance! :)
[edited by: jokomamamita at 4:37 am (utc) on July 10, 2006]
Why would you want to bookmark to your site, without the users consent? Don't you realise that this irritates users, immensly.