Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


[Help] Mailer 1.1 Pro - Submitting to multiple forms filter_list
Author
Message
[Help] Mailer 1.1 Pro - Submitting to multiple forms #1
Hi,

Here it goes:

I have build an html+js page with the purpose of submiting to multiple forms all in one, the user just need to enter the details once.

The code is below and i need help with method="post" which opens in a new window and i would like to hide from the final user (The new window | All processed in the background, iframe will be great).

Code:
<html><head>
<link href="style.css" type=text/css rel=stylesheet>
</head>
<body>
<center>
<br><br>
<br><br>
<h1>Mailer 1.1 Pro</h1>
<br><br><br>
<script>
        sendit = function() {
            var firstname = escape(document.getElementById('firstname').value);
            if(firstname == "") {
                alert('Type the first name');
                return false;}
            var lastname = escape(document.getElementById('lastname').value);
            if(lastname == "") {
                alert('Type the last name');
                return false;}
            var address = escape(document.getElementById('address').value);
            if(address == "") {
                alert('Type the address');
                return false;}
            var postalcode = escape(document.getElementById('postalcode').value);
            if(postalcode == "") {
                alert('Type the postal code');
                return false;}
            var state = escape(document.getElementById('state').value);
            if(state == "") {
                alert('Type the a state if USA');
                return false;}
            var phone = escape(document.getElementById('phone').value);
            if(phone == "") {
                alert('Type a Phone number');
                return false;}
            var city = escape(document.getElementById('city').value);
            if(city == "") {
                alert('Type the city');
                return false;}
            var country = escape(document.getElementById('country').value);
            if(country == "") {
                alert('Select a country');
                return false;}
            var email = escape(document.getElementById('email').value);
            if(email == "") {
                alert('Type an email');
                return false;}

        document.write('<LINK href="style.css" type=text/css rel=stylesheet>');
        document.write('<center>');
        document.write('<br><br><h1>Free Mailer 1.1 Pro</h1>');
        document.write('<br><br><br>');
        document.write('<b>Wait a few seconds while submiting<br>then close this window.');
        document.write('<span class="color">');
        document.write('<form action="https://www.enforex.com/servletFormularios?id_formulario=42" method="post" name="General Application" target="_blank">');
        document.write('<input type="hidden" name="mbf709432" value="1">');
        document.write('<input type="hidden" name="ndsr69354" value="">');
        document.write('<input type="hidden" name="language" value="English">');
        document.write('<input name="firstname" type="hidden" value="'+firstname+'">');
        document.write('<input name="lastname" type="hidden" value="'+lastname+'">');
        document.write('<input name="address" type="hidden" value="'+address+'">');
        document.write('<input name="postalcode" type="hidden" value="'+postalcode+'">');
        document.write('<input name="state" type="hidden" value="'+state+'">');
        document.write('<input name="homephone" type="hidden" value="'+phone+'">');
        document.write('<input name="address2" type="hidden" value="">');
        document.write('<input name="city" type="hidden" value="'+city+'">');
        document.write('<input type="hidden" name="country" value="'+country+'">');
        document.write('<input maxlength="70" name="email" type="hidden" value="'+email+'">');
        document.write('<input type="hidden" name="message" value=""');
        document.write('<input name="terms_conditions" type="hidden" value="yes">');
        document.write('<input name="sendContactEmail" type="submit" id="button" value="Send request">');
        document.write('</form>');
        document.forms[0]["sendContactEmail"].click();
            }
        </script>
<center>
<table>
<form onsubmit="sendit()">
<tr><td>First Name:</td><td><input type="text" id="firstname"></td></tr>
<tr><td>Last Name:</td><td><input type="text" id="lastname"></td></tr>
<tr><td>Address:</td><td><input type="text" id="address"></td></tr>
<tr><td>Postal Code:</td><td><input type="text" id="postalcode"></td></tr>
<tr><td>City:</td><td><input type="text" id="city"></td></tr>
<tr><td>State/Province:</td><td><input type="text" id="state"></td></tr>
<tr><td>Country:</td><td>
<select id="country">
<option value="">Select the country</option>
<option value="AFGANISTAN">AFGHANISTAN</option>
<option value="ALBANIA">ALBANIA</option>
<option value="ZIMBABWE">ZIMBABWE</option>
</select></td></tr>
<tr><td>Email:</td><td><input type="text" id="email"></td></tr>
<tr><td>Phone:</td><td><input type="text" id="phone"></td></tr>
<tr><td></td><td><input type="button" value="Submit"></td></tr>
</table>
</form>
</center>
</body>
</html>

Reply







Users browsing this thread: 1 Guest(s)