Question : Send login information using javascript

I am trying to create a javascript function which will send someones login information to their email address.  The information is held in fields, xFullName, xUsername, xPassword and xEmail.  I need to get the javascript to send to the xEmail address with a subject line and then a body which reads something like:-

Dear [xFullName],

Please find below your login credentials for the site.  Please log into www.sample.com and then enter you username and password as below.  Once logged in you are able to change your password to something more memorable (it must be more than 6 characters in length).

Your username is: [xUsername]
Your password is: [xPassword]

Many Thanks

Is this at all possible?

Answer : Send login information using javascript

You can use jQuery http://jquery.com

Although I am not an ASP coder at all, You can access the variables as post variables on the asp page. Does that help?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
        
        function validate_field(){
                value = $("#textfield_id").val();
                if(value == ''){
                        alert("Please enter something in the field");
                        return false;
                }
                $.post("your_php_page.asp", { value: ""+value+"", another_variable: "testing" },
                        function(data){
                        //data is the output of your_php_page.php after it runs
                alert("Here is the data returned: " + data);
                        //you could also write the data on the page too
                        $("#response").html(data);
                });
        }

        
</script>
<div id="response"></div>
<input type="text" name="texfiled_name" id="texfield_id"> <input type="button" onClick="validate_field()" value="Check Field">
Random Solutions  
 
programming4us programming4us