Forum Moderators: open

Message Too Old, No Replies

Auto-Form-Submit with the OnLoad feature .HELP!

Submitting form in the background without changing the current page!

         

jokomamamita

4:36 am on Jul 10, 2006 (gmt 0)

10+ Year Member



Greetings!
Let's say I have this code :


<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]

kaled

11:08 am on Jul 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In what way will this benefit users?

Kaled.

texmex

8:52 pm on Jul 10, 2006 (gmt 0)

10+ Year Member



I may just tumble across your site one day. Or worse still, hundreds of other sites that have used the same techniques (based on the info given on this thread). For this reason alone, I won't tell you.

Why would you want to bookmark to your site, without the users consent? Don't you realise that this irritates users, immensly.

Klipklouter2

9:26 am on Jul 16, 2006 (gmt 0)

10+ Year Member



Easy... You get AJAX...

or rather the library prototype.js