5
« on: April 14, 2011, 09:09:18 AM »
David I am looking to remove some fields to make the form smoother
for customers and just have firstname, lastname, email.
but what I can tell from the signup.html file you need to have all the
above as well as the username field in order for the signup process
to work properly.
David here's another thing I notice with the signup page if you look
at the source online a live site it is pulling 2 sets of header and html close tags...
<!-- Start Header Code -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Creative Fountain & PayNotifier Pro Membership - </TITLE>
<meta name="description" content="Creative Fountain & PayNotifier Pro Membership">
<meta name="keywords" content="Creative, Fountain, PayNotifier Pro, Membership">
<link rel="stylesheet" type="text/css" href="common/main.css">
<link rel="stylesheet" type="text/css" href="common/style.css">
</HEAD>
<BODY BGCOLOR="#0c4469" >
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="border">
<TR>
<TD align="center">
</TD>
</TR>
<TR>
<TD valign="top">
<!-- End Header Code -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<script language="javascript1.2">
function formCheck(formobj){
if (formobj.termcheck.checked == false)
{
alert ('You must agree to the Terms Of Use.');
return false;
}
// Enter name of mandatory fields
var fieldRequired = Array("firstname","lastname","username","password","email","termcheck");
// Enter field description to appear in the dialog box
var fieldDescription = Array("First Name","Last Name","User Name","Password","Email","TOS");
// dialog message
var alertMsg = "Please complete the following fields:\n";
var l_Msg = alertMsg.length;
for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];
if (obj){
if(obj.name == 'username')
{
uname = obj.value;
if(uname.substring(0,5).toUpperCase() == 'ADMIN' && uname.length==5)
{
alert("Username cannot be admin");
return false;
}
}
switch(obj.type){
case "checkbox":
break;
case "select-one":
if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
case "select-multiple":
if (obj.selectedIndex == -1){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
case "text":
case "textarea":
if (obj.value == "" || obj.value == null){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
default:
}
if (obj.type == undefined){
var blnchecked = false;
for (var j = 0; j < obj.length; j++){
if (obj[j].checked){
blnchecked = true;
}
}
if (!blnchecked){
alertMsg += " - " + fieldDescription[i] + "\n";
}
}
}
}
if (alertMsg.length == l_Msg){
return true;
}else{
alert(alertMsg);
return false;
}
}
</script>
<title></title>
</head>
<body>
<div align="center"><br>
<br>
<form name="login" method="post" action="signup.php"
enctype="multipart/form-data" onsubmit="return formCheck(login);"><input
name="rand" value="e2573b78bf0a386dba33a9c0a48e5962" type="hidden"> <input name="mrand"
value="" type="hidden"><input name="prodid" value="1"
type="hidden">
<table align="center" border="0" width="90%">
<tbody>
<tr>
<td class="titles" align="center"> Secure Payment Step 1 Of 2 </td>
</tr>
<tr>
<td class="logintext" align="center"><b> </b></td>
</tr>
<tr>
<td class="error" align="center"><b> Fill out the form below to begin the payment process.</b> </td>
</tr>
<tr>
<td class="tbtext" align="center"><a href="member/login.php?short=paynotifypro">Existing Members Click Here To Login And Purchase</a></td>
</tr>
</tbody>
</table>
<br>
<table align="center" border="0" cellpadding="2" cellspacing="0"
width="90%">
<tbody>
<tr>
<td class="logotext" align="left" width="18%"><b>FirstName:</b>
</td>
<td class="logotext" align="left" width="82%"><input
name="firstname" size="40" class="inputbox" type="text"></td>
</tr>
<tr>
<td class="logotext" align="left">LastName: </td>
<td class="logotext" align="left"><input name="lastname"
size="40" class="inputbox" type="text"></td>
</tr>
<tr>
<td class="logotext" align="left"><b>Primary Email:</b> </td>
<td class="logotext" align="left"><input name="email" size="40"
class="inputbox" type="text"></td>
</tr>
<tr>
<td class="logotext" align="left">UserName: </td>
<td class="logotext" align="left"><input name="username"
size="40" class="inputbox" type="text"></td>
</tr>
<tr>
<td class="logotext" align="left"><b>Password:</b> </td>
<td class="logotext" align="left"><input name="password"
size="40" class="inputbox" type="text"></td>
</tr>
<tr>
<td class="logotext" align="right"> </td>
<td class="logotext" align="left"> </td>
</tr>
<tr>
<td class="logotext" align="left"><b>Coupon Code:</b> </td>
<td class="logotext" align="left"><input name="coupon_code"
class="inputbox" id="coupon_code" size="40" type="text"></td>
</tr>
<tr>
<td colspan="2" class="logotext" align="left"> <input
class="inputbox" name="termcheck" value="termcheck" type="checkbox"> I
have read and understand the <a href="terms.php" target="_blank">Terms
Of Use</a>. </td>
</tr>
<tr>
<td colspan="2" class="logotext" align="left"> </td>
</tr>
<tr>
<td colspan="2" align="center"><input name="Submit"
value="Click Here Now For Instant VIP Access Now" class="inputbox"
type="submit"></td>
</tr>
</tbody>
</table>
</form>
</div>
<br>
<br>
</body>
</html>
<!-- Start Footer Code -->
</TD>
</TR>
<TR>
<TD class="tbtext">
<div align="center">
<a href="index.php">Home</a>
<a href="disclaimer.php">Disclaimer</a>
<a href="terms.php">Terms Of Use</a>
<a href="privacy.php">Privacy Policy</a>
<a href="contact.php">Contact Information</a>
</div>
</TD>
</TR>
<TR>
<TD class="tbtext"></TD>
</TR>
</TABLE>
<div align="center"><a href="http://simplememberpro.com/go/creativef" target=_blank>Powered by Simple Member Pro</a></div>
</div>
</BODY>
</HTML>
<!-- End Footer Code -->
I have no idea why it is doing this...