Hello billthecat,
I tried that code but I only revieve the email to my email address not the user and the email shows up like this:
First Name Entered:
Last Name Entered:
Email Entered:
Invitation Code:
Without the info.
I am also using PHP in the head of the HTML index page like this:
[php]function signup_step_1(){
// alert(‘content div’);
// alert(request_content_id);
var myTextField1 = document.getElementById(‘fname’).value;
var myTextField2 = document.getElementById(‘lname’).value;
var myTextField3 = document.getElementById(‘email’).value;
var myTextField4 = document.getElementById(‘email1’).value;
//alert(myTextField);
var divid = “div_layers”;
var random_value = Math.round(Math.random()*1000000);
url = ‘form-sender-vip.php?random=’+random_value+’&fname=’+myTextField1+’&lname=’+myTextField2+’&email=’+myTextField3+’&email1=’+myTextField4+’&blank=0’;
//alert(url);
// The XMLHttpRequest object
var xmlHttp;
try{
xmlHttp=new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari
}
catch (e){
try{
xmlHttp=new ActiveXObject(“Msxml2.XMLHTTP”); // Internet Explorer
}
catch (e){
try{
xmlHttp=new ActiveXObject(“Microsoft.XMLHTTP”);
}
catch (e){
alert(“Your browser does not support AJAX.”);
return false;
}
}
}
// Timestamp for preventing IE caching the GET request
fetch_unix_timestamp = function()
{
return parseInt(new Date().getTime().toString().substring(0, 10))
}
var timestamp = fetch_unix_timestamp();
var nocacheurl = url+"?t="+timestamp;
// The code…
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4){
//alert(xmlHttp.responseText);
alert('Thank you for joining us! Be sure to check your email for a membership confirmation and for information on our daily prize giveaway. As a member you now have access to special offers in your area as well as access to event invitations. Thank you again for joining us and goodluck in our drawing! ');
//document.getElementById(‘main_reg_form’).innerHTML=xmlHttp.responseText;
//document.getElementById(‘email_1’).value = ‘’;
//document.getElementById(‘f_name’).value = ‘’;
//document.getElementById(‘l_name’).value = ‘’;
//setTimeout(‘refreshdiv()’,seconds*1000);
}
}
xmlHttp.open(“POST”,nocacheurl,true);
xmlHttp.send(null);
}[/php]
Then the HTML page is linked to another HTML page that has the form like this:
[php]
PRELAUNCH REGISTRATION
<br />
|
|
First Name:
|
</td></tr>
<tr><td>
<label for="lname"><p>Last Name:</p></label></td><td>
<input class="required dFormInput" type="text" id="lname" name="title[]" value="" />
</td></tr><tr><td>
<label for="email"><p>Email Address:</p></label></td><td>
<input class="required dFormInput" type="text" id="email" name="title[]" value="" />
</td></tr><tr><td>
<label for="email"><p>Invitation Code:</p></label></td><td>
<input class="required dFormInput" type="text" id="email1" name="title[]" value="" />
</td></tr><tr><td colspan=2 align=right>
<img src="buttonsubmit.png" onmouseover="this.src='buttonsubmit2.png'" onmouseout="this.src='buttonsubmit.png'"onclick="signup_step_1();">
</td></tr></table>[/php]
|