Company name required - How to unrequire it?
07-27-2010, 10:39 AM
|
Company name required - How to unrequire it?
|
Posts: 218
|
On my web registration page "company" field is required. How do I un-require it?
Thanks. Here's the code:
Code:
<?php
error_reporting (0);
include_once ('classes/config.php');
include_once ('includes/reserved_names.php');
// define access for loading non display php files
define('access',true);
$ahah = 1;
$show_register = '';
$load_ajax = '';
$form_submitted = '';
$action = '';
$new_user_name = '';
$account_type = '';
$first_name = '';
$last_name = '';
$Company = '';
$Address_1 = '';
$Address_2 = '';
$City = '';
$State = '';
$email_address = '';
$email_address2 = '';
$user_name = '';
$password = '';
$confirm_password = '';
$country_list = '';
$dob_month = '';
$dob_day = '';
$dob_year = '';
$zip_code = '';
$birthday = '';
$error_message = '';
$checked = '';
$show_register = 1;
$load_ajax = 1;
$procede = true;
$action = mysql_real_escape_string( $_GET['action'] );
$new_user_name = mysql_real_escape_string( $_GET['new_user_name'] );
$site_name = mysql_real_escape_string($config['site_name']);
$form_submitted = mysql_real_escape_string( $_POST['form_submitted'] );
if ( $action == 'check_user' ) {
$new_user_name = trim(strtolower($new_user_name));
if ( $new_user_name == '' ) {
echo "<font color=\"#EE0000\" size=\"2\"><b>".$config['fill_all_fields']."</b></font>";
die();
}
if ( strlen($new_user_name) < 4 ) {
echo "<font color=\"#EE0000\" size=\"2\"><b>".$config['username_4_chars']."</b></font>";
die();
}
// check against reserved names e.g. -> admin etc... or adult words ban
if ( in_array( $new_user_name, $reserved_names ) ) {
echo "<font color=\"#EE0000\" size=\"2\"><b>".$config['username_not_allowed'] ."";
die();
}
$sql = "SELECT user_name FROM member_profile WHERE user_name = '$new_user_name'";
$query = @mysql_query($sql);
$count = @mysql_num_rows($query);
if ( $count > 0 ) {
echo "<font size=\"2\"><b>$new_user_name</b></font><font color=\"#EE0000\" size=\"2\"> <b>=> $lang_not_available</b></font>";
} else {
echo "<font size=\"2\"><b>$new_user_name</b></font><font color=\"#00DD00\" size=\"2\"> <b>=> $lang_available </b></font>";
}
@mysql_free_result($result);
@mysql_close();
die();
}
if ( $action == 'show_country' ) {
$country_fields_all = '';
$show_fields = '';
$country_list = file('includes/country.list');
foreach ( $country_list as $country_select )
{
$country_fields_all = $country_fields_all . $country_select;
}
$show_fields = '<div style="margin-left:30px; float:left;"><b>'.$lang_country.':</b></div>';
$show_fields .= '<div style="margin-left:95px; float:left;" id="country_list">';
$show_fields .= '<select class="FormSpecialInput_1" id="country_list" name="country_list" style="font-size: 9pt; width:128px; height:20px; font-weight:bold; color:#444444; letter-spacing: 1; border: 1px solid #DFDCDC; background-color: #FDFDFD">';
$show_fields .= $country_fields_all;
$show_fields .= '</select></div>';
echo $show_fields;
die();
}
if ( $procede == true ) {
$account_type = 'Standard';
$first_name = trim(mysql_real_escape_string( $_POST['first_name'] ));
$last_name = trim(mysql_real_escape_string( $_POST['last_name'] ));
$Company = trim(mysql_real_escape_string( $_POST['Company'] ));
$Address_1 = trim(mysql_real_escape_string( $_POST['Address_1'] ));
$Address_2 = trim(mysql_real_escape_string( $_POST['Address_2'] ));
$City = trim(mysql_real_escape_string( $_POST['City'] ));
$State = trim(mysql_real_escape_string( $_POST['State'] ));
$email_address = trim(mysql_real_escape_string( $_POST['email_address'] ));
$email_address2 = trim(mysql_real_escape_string( $_POST['email_address2'] ));
$user_name = trim(mysql_real_escape_string( $_POST['user_name'] ));
$password = trim(mysql_real_escape_string( $_POST['password'] ));
$confirm_password = trim(mysql_real_escape_string( $_POST['confirm_password'] ));
$country_list = trim(mysql_real_escape_string( $_POST['country_list'] ));
$dob_month = (int) mysql_real_escape_string( $_POST['dob_month'] );
$dob_day = (int) mysql_real_escape_string( $_POST['dob_day'] );
$dob_year = (int) mysql_real_escape_string( $_POST['dob_year'] );
$zip_code = (int) mysql_real_escape_string( $_POST['zip_code'] );
if ( $_POST['terms'] == 'yes' ) {
$checked = 'checked=\"checked\"';
$procede = true;
} else {
$procede = false;
$error_message = $config['agree_to_terms'];
}
// dDB birthday must be this format =>2008-09-17
$birthday = $dob_year .'-'. $dob_month .'-'. $dob_day;
foreach ($_POST as $key => $value) {
if (!isset($value) || ($value == '')) {
$display_key = @str_replace('_', ' ', $key);
if ( $display_key == 'zip code' && $value == '' ) {
$value = 'none';
} else if ($key != 'Address_2') {
$error_message = $error_message . ' - ' . $display_key . ' '.$lang_required.' ';
$procede = false;
}
} else {
if ( $key == 'email_address2' ) $key = 'email_address';
if ( $key !== 'email_address' && (!eregi("^[ _a-zA-Z0-9-].*$", $value)) ) {
$display_key = @str_replace('_', ' ', $key);
$error_message = $error_message . ' - ' . $display_key . ' '.$config['invalid_email_text'].' ';
$procede = false;
}
if ( $key == 'email_address' && !eregi("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-z]{2,3})$", $value) ) {
$display_key = @str_replace('_', ' ', $key);
$error_message = $error_message . ' - ' . $display_key . ' '.$config['invalid_email_format'].' ';
$procede = false;
}
if ( $key == 'user_name' ) {
// check against reserved names e.g. -> admin etc... or adult words ban
if ( in_array( $user_name, $reserved_names ) ) {
$display_key = @str_replace('_', ' ', $key);
$error_message = $error_message . ' ' .$config['username_not_allowed'] . ' !';
$procede = false;
}
}
}
}
}
// checking if emails match
if ( $procede == true ) {
if ( $email_address !== $email_address2 ) {
$error_message = ' '.$config['emails_do_not_match'];
$procede = false;
}
}
// checking if passwords match
if ( $procede == true ) {
if ($confirm_password !== $password) {
$error_message = ' '.$config['password_do_not_match'];
$procede = false;
}
}
// checking if username and email is unique
if ( $procede == true ) {
$sql = "SELECT user_name, email_address FROM member_profile";
$query = @mysql_query($sql);
while ($result = (@mysql_fetch_array($query))) {
if ( !empty($result['user_name']) || !empty($result['email_address']) ) {
// case insensitive login and registration
$reg_user_name = strtolower($user_name);
$db_user_name = strtolower($result['user_name']);
if ($db_user_name == $reg_user_name) {
$error_message = ' '.$config['username_is taken'];
$procede = false;
}
if ( $result['email_address'] == $email_address ) {
$error_message = $error_message . ' -'.$config['email_already_exists'];
$procede = false;
}
}
}
}
// if any errors display error message => [var.message_type] - [var.error_message]
if ($procede == false && $form_submitted == "yes") {
$message_type = $lang_error;
$blk_notification = 1;
$show_signup = 1;
$template = "themes/$user_theme/templates/main_1.htm";
$inner_template1 = "themes/$user_theme/templates/inner_signup_form.htm";
$TBS = new clsTinyButStrong;
$TBS->NoErr = true;
$TBS->LoadTemplate("$template");
$TBS->Render = TBS_OUTPUT;
$TBS->Show();
@mysql_close();
die();
}
// START => load page with form
if ( !isset($form_submitted) || ($form_submitted == '') ) {
$show_signup = 1;
$template = "themes/$user_theme/templates/main_1.htm";
$inner_template1 = "themes/$user_theme/templates/inner_signup_form.htm";
$TBS = new clsTinyButStrong;
$TBS->NoErr = true;
$TBS->LoadTemplate("$template");
$TBS->Render = TBS_OUTPUT;
$TBS->Show();
die();
}
// if no errors register user and load welcome page
if ($procede == true) {
$random_code = randomcode();
$password_email = $password;
$password = md5($password);
$passwordSalt = substr(md5(rand()), 0, 4);
if ( $zip_code > '' ) {
$country_list = 'USA';
}
// insert new user record
$sql = "INSERT into member_profile (email_address, user_name, password, passwordSalt, first_name, last_name, Company, Address_1, Address_2, City, State, zip_code, country, birthday, account_status, account_type, date_created, random_code)
VALUES ('$email_address', '$user_name', '$password', '$passwordSalt', '$first_name', '$last_name', '$Company', '$Address_1', '$Address_2', '$City', '$State', '$zip_code', '$country_list', '$birthday', 'new', 'standard', NOW(), '$random_code')";
@mysql_query($sql) or die($config['error_26']);//error
// get new user_id
$sql = "SELECT user_id, email_address, random_code FROM member_profile WHERE random_code = '$random_code' AND email_address = '$email_address'";
$query = @mysql_query($sql);
while ($result = @mysql_fetch_array($query)) {
$user_id = $result['user_id'];
}
// set new user default privacy settings
$sql = "INSERT INTO privacy (videocomments, profilecomments, privatemessage, friendsinvite, newsletter, user_id, publicfavorites, publicplaylists) VALUES ('yes', 'yes', 'yes', 'yes', 'yes', '$user_id', 'yes', 'yes')";
$query = @mysql_query($sql);
// Credits Mod by DD
// Update new user with default credits
$sql01 = "SELECT start FROM credit_config LIMIT 1";
$query1 = @mysql_query($sql01);
while ($result = @mysql_fetch_array($query1)) {
$startcredit = $result['start'];
}
$sql2 = "INSERT INTO credits (user_id, total_credits, pending_credits, last_purchase, total_purchases, name) VALUES ('$user_id', '$startcredit', '0', NOW(), '0', '$user_name')";
$query2 = @mysql_query($sql2) or DIE(mysql_error());
$sql02 = "INSERT INTO purchases (id, type, user_id, vid_id, date, name, uploader, uploaderID, title, amount, videoid, descr, promo) VALUES ('', 'adjustment', $user_id, 0, NOW(), '$user_name', 'none', 'none', 'none', '$startcredit', 'none', 'none', 'none')";
$query02 = mysql_query($sql02) or die(mysql_error());
// END CREDITS MOD
@mysql_close();
// send email
$email_template = 'email_templates/newmember.htm';
$subject = $config['email_welcome'];
$to = $email_address;
$from = $config['notifications_from_email'];
//send email template to TBS for rendering of variable inside
$template = $email_template;
$TBS = new clsTinyButStrong;
$TBS->NoErr = true;
$TBS->LoadTemplate("$template");
$TBS->tbs_show(TBS_NOTHING);
$message = $TBS->Source;
//load postage.php
define('access',true);
include ('includes/postage.php');
// show success
$notification_type = $config['notification_success'];
$message = $config['registration_success'];
$blk_notification = 0;
$template = "themes/$user_theme/templates/main_1.htm";
$inner_template1 = "themes/$user_theme/templates/inner_notification.htm";
$TBS = new clsTinyButStrong;
$TBS->NoErr = true;
$TBS->LoadTemplate("$template");
$TBS->Render = TBS_OUTPUT;
$TBS->Show();
@mysql_close();
die();
}
?>$TBS->Source;
//load postage.php
define('access',true);
include ('includes/postage.php');
// show success
$notification_type = $config['notification_success'];
$message = $config['registration_success'];
$blk_notification = 0;
$template = "themes/$user_theme/templates/main_1.htm";
$inner_template1 = "themes/$user_theme/templates/inner_notification.htm";
$TBS = new clsTinyButStrong;
$TBS->NoErr = true;
$TBS->LoadTemplate("$template");
$TBS->Render = TBS_OUTPUT;
$TBS->Show();
@mysql_close();
die();
}
?>
|
|
|
|
07-27-2010, 10:49 AM
|
Re: Company name required - How to unrequire it?
|
Posts: 1,618
Location: UK
|
I really dont think it is... Unless im being completely blind..
Hav eyou tried registering without the company?
What error does it say?
|
|
|
|
07-27-2010, 10:51 AM
|
Re: Company name required - How to unrequire it?
|
Posts: 116
|
i don't see anywhere in the code that requires company to contain data?
is there another file that this calls on?
__________________
Thanks
Evan
From ModDish - Please login or register to view this content. Registration is FREE
Last edited by ModDish; 07-27-2010 at 10:54 AM..
|
|
|
|
07-27-2010, 11:30 AM
|
Re: Company name required - How to unrequire it?
|
Posts: 218
|
Thanks SO much for looking at my post.
The error says: "error: Company required"
when nothing is entered into the company field.
(I've truncated some code unrelated to this question, in order to comply with webmaster-talk's posting limits)
Could you please take a look at this code below?
Any help will be appreciated.
Here is the html page code:
Code:
<!--Begin Right Column-->
<div id="column-right-3">
<!--<div class="signup-right">-->
<br />
<h1 style="border-bottom;"> [var.lang_register_today]!</h1>
<form action="join.php" method="post" name="capform" class="FormGeneric" onSubmit="return capCheck(this);">
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_first_name]:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="first_name" size="26" value="[var.first_name]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_last_name]:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="last_name" size="26" value="[var.last_name]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>Company Name:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="Company" size="26" value="[var.Company]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>Address 1:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="Address_1" size="26" value="[var.Address_1]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px;display:inline; float:left;">
<b>Address 2:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="Address_2" size="26" value="[var.Address_2]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>City:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="City" size="26" value="[var.City]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>State/Province:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="State" size="26" value="[var.State]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px;display:inline; float:left;">
<b>Zip Code/Mail Code:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="zip_code" size="22" maxlength="5" value="[var.zip_code]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_email_address]:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="email_address" size="26" value="[var.email_address]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_confirm_email]:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="email_address2" size="26" value="[var.email_address2]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px;display:inline; float:left;">
<b>[var.lang_date_birth]:</b>
</div>
<div style="margin-right:65px; float:right;">
<select class="FormSpecialInput_1" id="dob_month" name="dob_month" style="font-size: 9pt; width:60px; height:19px; font-weight:bold; letter-spacing: 1; border: 1px solid #DFDCDC";>
<option value="-1">[var.lang_month]</option>
<option value="01" >Jan</option>
</select>
/
<select class="FormSpecialInput_1" id="dob_day" name="dob_day" style="font-size: 9pt; width:58px; height:19px; font-weight:bold; color:#999999; letter-spacing: 1; border: 1px solid #DFDCDC;">
<option value="-1">[var.lang_day]</option>
</select>
<select class="FormSpecialInput_1" id="dob_year" name="dob_year" style="font-size: 9pt; width:58px; height:19px; font-weight:bold; color:#999999; letter-spacing: 1; >
<option value="-1">[var.lang_year]</option>
</select>
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px;display:inline; float:left;" id="show_country">
<a onclick="javascript:ahahscript.ahah('[var.base_url]/join.php?action=show_country', 'country_list', '', 'GET', '', this); disable_link('show_country'); return false;" style="cursor:pointer;"><font size="1"><span style="color: #000000;">[var.lang_not_from_us]</span></font></a>
</div>
<div style="margin-left:22px;display:inline; float:left;" id="country_list"></div>
</div>
<!--<div>-->
<!--<div style="margin-left:30px;display:inline; float:left;">-->
<!--<font size="1"><b>[var.lang_create_personal_address]!</b></font>-->
<!--</div>-->
<!--</div>-->
<!--<br />-->
<!--<br />-->
<!--<div>-->
<!--<div style="margin-left:30px;display:inline; float:left;">-->
<!--<b>[var.base_url]/members</b> -->
<!--</div>-->
<!--<div style="margin-left:1px;display:inline; float:left;" id="check_user">-->
<!--<b>[var.lang_your_username]</b>-->
<!--</div>-->
<!--</div>-->
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_user_name]:</b>
</div>
<div style="margin-right:60px;display:inline; float:right;">
<a onclick="javascript:ahahscript.ahah('[var.base_url]/join.php?action=check_user&new_user_name='+ document.capform.user_name.value, 'check_user', '', 'GET', '', this);"><img src="[var.base_url]/themes/[var.user_theme]/images/icons/check.jpg" border="0" width="16" height="16" alt="check username" title="Check Username Availablity" align="absmiddle" /></a>
<input type="text" name="user_name" size="20" value="[var.user_name]" maxlength="24" />
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_password]:</b>
</div>
<div style="margin-right:60px;display:inline; float:right;">
<input type="password" name="password" size="20" value="[var.password]" maxlength="12" />
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_confirm_password]:</b>
</div>
<div style="margin-right:60px; display:inline;float:right;">
<input type="password" name="confirm_password" size="20" value="[var.confirm_password]" maxlength="12" />
</div>
</div>
<div>
<div style="margin-left:30px;display:inline; float:left;">
<b>[var.lang_enter_security]:</b>
</div>
<div style="margin-right:60px; display:inline;float:right;">
<input type="text" value="" name="captext" size="20" maxlength="6" />
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;">
<a onclick="refresh_security_image(); return false;" style="cursor:pointer;"><span style="color: #000000;"><u>[var.lang_refresh_image]</u></span></a>
</div>
<div style="margin-right:60px;display:inline; float:right;">
<div id="security_image">
<img src="includes/captcha.php" border="0" id="verificiation_image" />
</div>
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;"><a href="page.php?page=18" target="_blank"><span style="color: #800000;"><u>Read These Terms</u> </span></a>
<b><span style="color: #000000;">Click Here</span><input type="radio" value="yes" name="terms" [var.checked] /><span style="color: #000000;">To Agree To The Terms</b></span>
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;">
<input type="submit" class="button-form" value="[var.lang_register_now]" name="registe_r" /><BR><BR>
</div>
<input type="hidden" name="form_submitted" value="yes">
</div>
</form>
<!--[onload;block=div;when [var.show_signup]=1;comm]-->
</div>
<script type="text/javascript">
<!--
function refresh_security_image() {
var new_url = new String("[var.base_url]/includes/captcha.php?width=132&height=36&charcators=");
new_url = new_url.substr(0, new_url.indexOf("width=") + 37);
// we need a random new url so this refreshes
var chr_str = "123456789";
for(var i=0; i < 6; i++)
new_url = new_url + chr_str.substr(Math.floor(Math.random() * 2), 1);
document.getElementById("verificiation_image").src = new_url;
}
-->
</script>
<!-- captch start -->
<script type="text/javascript" id="clientEventHandlersJS" language="javascript">
<!--
function capCheck(theForm) {
var xmlhttp;
var sReply;
DataToSend = "action=process&captext=" + escape(theForm.captext.value);
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
xmlhttp.open("POST",'includes/process.php',false);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send(DataToSend);
sReply = xmlhttp.responseText;
} else if (window.ActiveXObject) {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST",'includes/process.php',false);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send(DataToSend);
sReply = xmlhttp.responseText;
}
if (sReply == "good") {
return true;
} else if (sReply == "bad") {
alert("Security code not valid, please try again"); return false;
} else if (sReply == "") {
alert("You must enter the security code"); return false;
} else {
alert("Error"); return false;
}
}
-->
</script>
<!-- captch end -->
<!--<div class="signup-right" style="height: 48px;">-->
<center><h3><font color="#DD0000">[var.action_msg]</font></h3></center>
<!--[onload;block=div;when [var.show_action_msg]=1;comm]-->
<!--</div>-->
<!--<div class="signup-right1">-->
<div id="Signup">
<h2><img src="themes/[var.user_theme]/images/icons/lock3.jpg" border="0" height="48" width="48" alt="secure_login" style="padding-bottom: 28px; vertical-align: middle;" />
<!--[var.site_name]--> [var.lang_account_login]</h2>
<form name="login" action="login.php" method="post" class="FormGeneric">
<ul>
<li><span class="signup-lable">[var.lang_user_name]:</span><input type="text" name="user_name_login" size="12" /></li>
<li><span class="signup-lable">[var.lang_password]:</span><input type="password" name="password_login" size="12" /></li>
<li><!--<span class="signup-lable">[var.lang_how_long]:</span>-->
<input type="hidden" name="cookie_time" value="-1" /><!--<select name="cookie_time" class="login-field">-->
</li>
<li><input type="submit" value="[var.lang_login_now1]" class="button-form" /></li>
<li><input type="hidden" name="submitted" value="yes" /></li>
<li><input type="hidden" name="remember_me" value="remember_me" /></li>
</ul>
</form>
<form name="forgot" action="resendlogins.php" method="post" class="FormGeneric">
<ul>
<li><div class="signup-lable-new">[var.lang_send_new_pass]</div></li>
<li><span class="signup-lable">[var.lang_your_email]:</span></li>
<li><input type="text" name="email_address_lost" /></li>
<li><input type="submit" class="button-form" value="Resend" name="resen_d" /></li>
<li><input type="hidden" name="submitted" value="yes" /></li>
</ul>
</form>
<!--</div>-->
<!--[onload;block=div;when [var.show_login]=1;comm]-->
</div>
</div><!-- end height container -->
</div><!-- end right column -->
|
|
|
|
07-29-2010, 08:16 PM
|
Re: Company name required - How to unrequire it?
|
Posts: 116
|
Quote:
Originally Posted by chrisj
Thanks SO much for looking at my post.
The error says: "error: Company required"
when nothing is entered into the company field.
(I've truncated some code unrelated to this question, in order to comply with webmaster-talk's posting limits)
Could you please take a look at this code below?
Any help will be appreciated.
Here is the html page code:
Code:
<!--Begin Right Column-->
<div id="column-right-3">
<!--<div class="signup-right">-->
<br />
<h1 style="border-bottom;"> [var.lang_register_today]!</h1>
<form action="join.php" method="post" name="capform" class="FormGeneric" onSubmit="return capCheck(this);">
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_first_name]:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="first_name" size="26" value="[var.first_name]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_last_name]:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="last_name" size="26" value="[var.last_name]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>Company Name:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="Company" size="26" value="[var.Company]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>Address 1:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="Address_1" size="26" value="[var.Address_1]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px;display:inline; float:left;">
<b>Address 2:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="Address_2" size="26" value="[var.Address_2]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>City:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="City" size="26" value="[var.City]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>State/Province:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="State" size="26" value="[var.State]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px;display:inline; float:left;">
<b>Zip Code/Mail Code:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="zip_code" size="22" maxlength="5" value="[var.zip_code]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_email_address]:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="email_address" size="26" value="[var.email_address]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_confirm_email]:</b>
</div>
<div style="margin-right:65px; display:inline;float:right;">
<input type="text" name="email_address2" size="26" value="[var.email_address2]" />
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px;display:inline; float:left;">
<b>[var.lang_date_birth]:</b>
</div>
<div style="margin-right:65px; float:right;">
<select class="FormSpecialInput_1" id="dob_month" name="dob_month" style="font-size: 9pt; width:60px; height:19px; font-weight:bold; letter-spacing: 1; border: 1px solid #DFDCDC";>
<option value="-1">[var.lang_month]</option>
<option value="01" >Jan</option>
</select>
/
<select class="FormSpecialInput_1" id="dob_day" name="dob_day" style="font-size: 9pt; width:58px; height:19px; font-weight:bold; color:#999999; letter-spacing: 1; border: 1px solid #DFDCDC;">
<option value="-1">[var.lang_day]</option>
</select>
<select class="FormSpecialInput_1" id="dob_year" name="dob_year" style="font-size: 9pt; width:58px; height:19px; font-weight:bold; color:#999999; letter-spacing: 1; >
<option value="-1">[var.lang_year]</option>
</select>
</div>
</div>
<br />
<br />
<div>
<div style="margin-left:30px;display:inline; float:left;" id="show_country">
<a onclick="javascript:ahahscript.ahah('[var.base_url]/join.php?action=show_country', 'country_list', '', 'GET', '', this); disable_link('show_country'); return false;" style="cursor:pointer;"><font size="1"><span style="color: #000000;">[var.lang_not_from_us]</span></font></a>
</div>
<div style="margin-left:22px;display:inline; float:left;" id="country_list"></div>
</div>
<!--<div>-->
<!--<div style="margin-left:30px;display:inline; float:left;">-->
<!--<font size="1"><b>[var.lang_create_personal_address]!</b></font>-->
<!--</div>-->
<!--</div>-->
<!--<br />-->
<!--<br />-->
<!--<div>-->
<!--<div style="margin-left:30px;display:inline; float:left;">-->
<!--<b>[var.base_url]/members</b> -->
<!--</div>-->
<!--<div style="margin-left:1px;display:inline; float:left;" id="check_user">-->
<!--<b>[var.lang_your_username]</b>-->
<!--</div>-->
<!--</div>-->
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_user_name]:</b>
</div>
<div style="margin-right:60px;display:inline; float:right;">
<a onclick="javascript:ahahscript.ahah('[var.base_url]/join.php?action=check_user&new_user_name='+ document.capform.user_name.value, 'check_user', '', 'GET', '', this);"><img src="[var.base_url]/themes/[var.user_theme]/images/icons/check.jpg" border="0" width="16" height="16" alt="check username" title="Check Username Availablity" align="absmiddle" /></a>
<input type="text" name="user_name" size="20" value="[var.user_name]" maxlength="24" />
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_password]:</b>
</div>
<div style="margin-right:60px;display:inline; float:right;">
<input type="password" name="password" size="20" value="[var.password]" maxlength="12" />
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;">
<b>[var.lang_confirm_password]:</b>
</div>
<div style="margin-right:60px; display:inline;float:right;">
<input type="password" name="confirm_password" size="20" value="[var.confirm_password]" maxlength="12" />
</div>
</div>
<div>
<div style="margin-left:30px;display:inline; float:left;">
<b>[var.lang_enter_security]:</b>
</div>
<div style="margin-right:60px; display:inline;float:right;">
<input type="text" value="" name="captext" size="20" maxlength="6" />
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;">
<a onclick="refresh_security_image(); return false;" style="cursor:pointer;"><span style="color: #000000;"><u>[var.lang_refresh_image]</u></span></a>
</div>
<div style="margin-right:60px;display:inline; float:right;">
<div id="security_image">
<img src="includes/captcha.php" border="0" id="verificiation_image" />
</div>
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;"><a href="page.php?page=18" target="_blank"><span style="color: #800000;"><u>Read These Terms</u> </span></a>
<b><span style="color: #000000;">Click Here</span><input type="radio" value="yes" name="terms" [var.checked] /><span style="color: #000000;">To Agree To The Terms</b></span>
</div>
</div>
<div>
<div style="margin-left:30px; display:inline;float:left;">
<input type="submit" class="button-form" value="[var.lang_register_now]" name="registe_r" /><BR><BR>
</div>
<input type="hidden" name="form_submitted" value="yes">
</div>
</form>
<!--[onload;block=div;when [var.show_signup]=1;comm]-->
</div>
<script type="text/javascript">
<!--
function refresh_security_image() {
var new_url = new String("[var.base_url]/includes/captcha.php?width=132&height=36&charcators=");
new_url = new_url.substr(0, new_url.indexOf("width=") + 37);
// we need a random new url so this refreshes
var chr_str = "123456789";
for(var i=0; i < 6; i++)
new_url = new_url + chr_str.substr(Math.floor(Math.random() * 2), 1);
document.getElementById("verificiation_image").src = new_url;
}
-->
</script>
<!-- captch start -->
<script type="text/javascript" id="clientEventHandlersJS" language="javascript">
<!--
function capCheck(theForm) {
var xmlhttp;
var sReply;
DataToSend = "action=process&captext=" + escape(theForm.captext.value);
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
xmlhttp.open("POST",'includes/process.php',false);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send(DataToSend);
sReply = xmlhttp.responseText;
} else if (window.ActiveXObject) {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST",'includes/process.php',false);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send(DataToSend);
sReply = xmlhttp.responseText;
}
if (sReply == "good") {
return true;
} else if (sReply == "bad") {
alert("Security code not valid, please try again"); return false;
} else if (sReply == "") {
alert("You must enter the security code"); return false;
} else {
alert("Error"); return false;
}
}
-->
</script>
<!-- captch end -->
<!--<div class="signup-right" style="height: 48px;">-->
<center><h3><font color="#DD0000">[var.action_msg]</font></h3></center>
<!--[onload;block=div;when [var.show_action_msg]=1;comm]-->
<!--</div>-->
<!--<div class="signup-right1">-->
<div id="Signup">
<h2><img src="themes/[var.user_theme]/images/icons/lock3.jpg" border="0" height="48" width="48" alt="secure_login" style="padding-bottom: 28px; vertical-align: middle;" />
<!--[var.site_name]--> [var.lang_account_login]</h2>
<form name="login" action="login.php" method="post" class="FormGeneric">
<ul>
<li><span class="signup-lable">[var.lang_user_name]:</span><input type="text" name="user_name_login" size="12" /></li>
<li><span class="signup-lable">[var.lang_password]:</span><input type="password" name="password_login" size="12" /></li>
<li><!--<span class="signup-lable">[var.lang_how_long]:</span>-->
<input type="hidden" name="cookie_time" value="-1" /><!--<select name="cookie_time" class="login-field">-->
</li>
<li><input type="submit" value="[var.lang_login_now1]" class="button-form" /></li>
<li><input type="hidden" name="submitted" value="yes" /></li>
<li><input type="hidden" name="remember_me" value="remember_me" /></li>
</ul>
</form>
<form name="forgot" action="resendlogins.php" method="post" class="FormGeneric">
<ul>
<li><div class="signup-lable-new">[var.lang_send_new_pass]</div></li>
<li><span class="signup-lable">[var.lang_your_email]:</span></li>
<li><input type="text" name="email_address_lost" /></li>
<li><input type="submit" class="button-form" value="Resend" name="resen_d" /></li>
<li><input type="hidden" name="submitted" value="yes" /></li>
</ul>
</form>
<!--</div>-->
<!--[onload;block=div;when [var.show_login]=1;comm]-->
</div>
</div><!-- end height container -->
</div><!-- end right column -->
|
doesn't mention it there anywhere either , it may be in one of these files : captcha.php
process.php
__________________
Thanks
Evan
From ModDish - Please login or register to view this content. Registration is FREE
Last edited by ModDish; 07-29-2010 at 08:17 PM..
|
|
|
|
|
« Reply to Company name required - How to unrequire it?
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|