<SCRIPT>
function InsertRecord()
{
var email = document.getElementById('inputEmail').value;
var password = document.getElementById('inputPassword').value;
var user_name = document.getElementById('inputName').value;
var mobile = document.getElementById('inputNumber').value;
var country = document.write(geoip_country_name());
var ip = ip;
var cprno = document.getElementById('inputName').value;
if (email.length != 0 || password.length !=0 || user_name.length !=0|| mobile.length !=0 || country.length !=0 || ip.length !=0|| cprno.length !=0 )
{
var connection = new ActiveXObject("ADODB.Connection") ;
var connectionstring="http://ift.tt/1HJs8dT";
connection.Open(connectionstring);
var rs = new ActiveXObject("ADODB.Recordset");
rs.Open("INSERT INTO user ('" + email + "','" + password + "','" + user_name + "','" + mobile + "' '" + country + "','" + ip + "','" + cprno + "')", connection);
, connection);
rs..commit();
alert("Insert Record Successfuly");
rs.close;
connection.close;
}
else
{
alert("Please Enter The Details");
}
}
</SCRIPT>
I am working with registration page in html. I want to get the input fields and post them into database(i have a link in the database where to post)using ****JAVASCRIPT**** only NOT any others
Aucun commentaire:
Enregistrer un commentaire