PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
duhasteme
Forum Commoner
Posts: 25 Joined: Fri Jun 29, 2007 4:24 am
Contact:
Post
by duhasteme » Thu Nov 13, 2008 7:00 am
Hello, I have developed a PHP register page. However when i click on one of the text area to fill in the details, the form automatically resets itself. Can anyone help me out. Here is the code of that part.
Code: Select all
<tr>
<td width="25%">Web site URL</td>
<td height="10"><input name="url" type="text" class="textbox" id="url" size="45" alt="blank" emsg="please enter website url" value="<?=$_SESSION['url']?>"></td>
</tr>
aceconcepts
DevNet Resident
Posts: 1424 Joined: Mon Feb 06, 2006 11:26 am
Location: London
Post
by aceconcepts » Thu Nov 13, 2008 8:11 am
duhasteme wrote:
Code: Select all
<tr>
<td width="25%">Web site URL</td>
<td height="10"><input name="url" type="text" class="textbox" id="url" size="45" alt="blank" emsg="please enter website url" value="<?=$_SESSION['url']?>"></td>
</tr>
The value of your text field should read: value="<? echo $_SESSION['url']; ?>"
Do you have any javascript associated with your form?
duhasteme
Forum Commoner
Posts: 25 Joined: Fri Jun 29, 2007 4:24 am
Contact:
Post
by duhasteme » Thu Nov 13, 2008 8:35 am
Hello, Thanks for the reply. Unfortunately that didnt work. Yes there is some bit of Javascript.
Code: Select all
<script type="text/javascript">
function upperCase()
{
var x=document.getElementById("f_name").value
document.getElementById("f_name").value=x.toUpperCase()
var x=document.getElementById("l_name").value
document.getElementById("l_name").value=x.toUpperCase()
}
</script>
I will upload the file to my server and show you the page.
mmj
Forum Contributor
Posts: 118 Joined: Fri Oct 31, 2008 4:00 pm
Post
by mmj » Thu Nov 13, 2008 11:28 am
aceconcepts wrote: duhasteme wrote:
Code: Select all
<tr>
<td width="25%">Web site URL</td>
<td height="10"><input name="url" type="text" class="textbox" id="url" size="45" alt="blank" emsg="please enter website url" value="<?=$_SESSION['url']?>"></td>
</tr>
The value of your text field should read: value="<? echo $_SESSION['url']; ?>"
Do you have any javascript associated with your form?
That doesn't change much.
They both use php shorthand (not exactly recommended).
infolock
DevNet Resident
Posts: 1708 Joined: Wed Sep 25, 2002 7:47 pm
Post
by infolock » Thu Nov 13, 2008 11:37 am
How are you submitting the form? What aceconcepts is hinting at (i think) is are you calling a javascript function on submit? maybe try commenting out the javascript function and see if it works.
also, how do you know the form is resetting itself? That's usually a sign of it having completed, and the action file redirecting back to the form page, thus with an empty form.
Got any more information that can help us understand? Unfortunately there just isn't enough code here for us to truly get the whole picture =\
duhasteme
Forum Commoner
Posts: 25 Joined: Fri Jun 29, 2007 4:24 am
Contact:
Post
by duhasteme » Thu Nov 13, 2008 1:26 pm
Here is the link to the page. Notice when you toggle from the email field by pressing tab or shift + tab.
http://www.spootlight.com/register.php
And here is the entire code :
Code: Select all
<?
require_once('./includes/include.inc.php');
//protect_admin_page();
#print '<pre>'; print_r($_POST); print '</pre>';
if(is_post_back())
{
@extract($_POST);
$arr_sub_id = $_REQUEST['arr_sub_id'];
if(is_array($arr_sub_id))
{
$str_sub_id = implode(',', $arr_sub_id);
}
$sqldate ="select DATE_FORMAT(now(), '%b %d %Y') as dt";
$resdate =mysql_query($sqldate) or die(mysql_error());
$dt=mysql_fetch_array($resdate);
$row=$dt['dt'];
if($submit == 'Register')# Add
{
$comp='';
$_SESSION['comp_name']=$comp_name;
$_SESSION['short_description']=$short_description;
$_SESSION['con_person']=$con_person;
$_SESSION['address']=$address;
$_SESSION['phone']=$phone;
$_SESSION['mobile']=$mobile;
$_SESSION['email']=$email;
$_SESSION['url']=$url;
$_SESSION['f_name']=$f_name;
$_SESSION['l_name']=$l_name;
$_SESSION['username']=$username;
$_SESSION['password']=$password;
$_SESSION['repassword']=$repassword;
if($username !='' and $email!='')
{
$sql = "select * from quick_register where username = '$username' or email='$email'";
$res = mysql_query($sql) or die(db_error($sql));
//existing user name
if(mysql_num_rows($res)>0)
{
$_SESSION['msg'] = "This user name already exist Please choose another user name !";
header("location: register.php");
exit;
}
else if($username == $email)
{
if($password == $repassword)
{
$cat="select category from quick_category where cat_id='$cat_id'";
$sat="select state from quick_state where state_id='$state'";
$cit="select city from quick_city where city_id='$city'";
$sqluser = "insert into quick_register set cat_id ='".getsingleresult($cat)."',
sub_cat_id ='$sub_cat_id',
c_id ='$c_id',
state_id ='".getsingleresult($sat)."',
city_id ='".getsingleresult($cit)."',
comp_name ='$comp_name',
con_person='$con_person',
address='$address',
phone ='$phone',
mobile='$mobile',
email ='$email',
url='$url',
username='$username',
password='$password',
acc_type='$acc_type',
short_description='$short_description',
f_name='$f_name',
l_name='$l_name',
acc_id='$acc_id',
add_date= now()";
$resuser = mysql_query($sqluser) or die(mysql_error());
$inserted_id = mysql_insert_id();
$org_id =substr($row,0,1).''.substr($row,9,2).''.substr($row,4,2).''.$inserted_id;
$sql_up="update quick_register set org_id ='$org_id' where r_id ='$inserted_id'";
$res_up=mysql_query($sql_up) or die(mysql_error());
$_SESSION['USER_NAME'] = ucfirst($username);
if($acc_type =='free')
{
$email_to = $email. ",";
$sender=ADMIN_EMAIL;
$mail_body ='Thanks for registering with us. you provided following information.
your Email :'.$email.'
For activating your account please click this link.<br>
<u><a href="sign_in.php?active=yes&id='.$inserted_id.'" target="_blank">ACTIVATE</a></u><br>
Thanks
With Regard
---------------------------------
Team, quickfind.com
for any additional information, you may contact us at :
<a href=mailto:'.ADMIN_EMAIL.'>Contact Us</a>';
$sub = 'Activation Account.';
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers .= "To: ".$email_to."\r\n";
$headers .= "From: ".$sender."\r\n";
@mail($email_to, $sub, $mail_body, $headers);
}
if($acc_type =='paid')
{
$email_to = $email. ",";
$sender=ADMIN_EMAIL;
$mail_body ='Thanks for registering with us. you provided following information.
your Email :'.$email.'
Registration no. '.$org_id.'
You are selecting activation as paid member .so Please
send your check in behalf of below details
pay to : XXXXXX
acc no.:2222222
For activating your account please click this link.
<u><a href="sign_in.php?active=yes&id='.$inserted_id.'" target="_blank">ACTIVATE</a></u>
Thanks
With Regard
---------------------------------
Team, quickfind.com
for any additional information, you may contact us at :
<a href=mailto:'.ADMIN_EMAIL.'>Contact Us</a>';
$sub = 'Activation Account.';
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers .= "To: ".$email_to."\r\n";
$headers .= "From: ".$sender."\r\n";
@mail($email_to, $sub, $mail_body, $headers);
}
header("location: welcome.php");
exit;
}
else
{
$_SESSION['msg'] = "Please re-enter your password!";
$cat_id=$_GET['cat_id'];
$sub_cat_id=$_GET['sub_cat_id'];
$state_id=$_GET['state_id'];
$city_id=$_GET['city_id'];
header("location: register.php?cat_id=$cat_id&sub_cat_id=$sub_cat_id&state_id=$state_id&city_id=$city_id");
exit;
}
}
}
}
}
include("./includes/fvalidate.inc.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?=SITE_TITLE?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css" rel="stylesheet" type="text/css">
<script language="javascript">
function chk()
{
ob=document.form1;
ob.username.value = ob.email.value;
}
</script>
<script type="text/javascript">
function upperCase()
{
var x=document.getElementById("f_name").value
document.getElementById("f_name").value=x.toUpperCase()
var x=document.getElementById("l_name").value
document.getElementById("l_name").value=x.toUpperCase()
}
</script>
<style type="text/css">
<!--
.style1 {color: #FF6600;
font-weight: bold;
}
-->
</style>
</head>
<body >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="122" background="images/bg1.jpg"><? include("header.php")?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="172" valign="top" bgcolor="EBEBEB" style="border-right:solid 1px #7D8184; border-left:solid 1px #7D8184;"><? include("leftnav.php")?></td>
<td width="874" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EF7B00">
<tr>
<td height="5"><img src="images/spacerimage.gif" width="1" height="5"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="1" align="center"><img src="images/spacerimage.gif" width="1" height="1"></td>
</tr>
<tr>
<td align="center"><table width="98%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="3%" height="45" valign="top"><img src="images/business.gif" width="7" height="42"></td>
<td width="97%" align="left" valign="middle"><span class="text">Create<span class="welcomequick"> Account</span><br>
</span>Online Company Database Directory </td>
</tr>
<tr>
<td> </td>
<td align="left" valign="top" class="welcometext"><form name="form1" method="post" action="" <?=validate_form()?>>
<table width="98%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td height="10" colspan="2" align="center"><font color="#FF0000">
<?=$_SESSION['msg']?>
<? #=$_SESSION['msg']?>
</font></td>
</tr>
<tr>
<td colspan="2" class="boldblack">Company informiton</td>
</tr>
<tr>
<td width="25%">Choose Category</td>
<td height="10"><select name="cat_id" class="textbox" id="cat_id" alt="blank" emsg="please select category" onChange="window.location.href='?cat_id='+ this.options[this.selectedIndex].value;">
<option selected>Select Category</option>
<?
$sql = "select * from quick_category where 1 order by category";
$contResult = mysql_query($sql);
while ($row = mysql_fetch_array($contResult))
{
?>
<!--
<option value="<? #=$row['cat_id']?>"<? #if( $_GET['cat_id'] !='') {if($_GET['cat_id']==$row['cat_id']){?>selected<? #} } else {?><? #if($_GET['c_id']!=''){?>selected<? #} }?>>-->
<option value="<?=$row['cat_id']?>"<? if($row['cat_id']==$_GET['cat_id']) {?> selected<? }?>>
<?=ucfirst($row['category'])?>
</option>
<? }?>
</select></td>
</tr>
<tr>
<td>Choose Sub Category</td>
<td height="10"><select name="sub_cat_id" class="textbox" id="sub_cat_id" onChange="window.location.href='?cat_id=<?=$_GET['cat_id']?>&sub_cat_id='+ this.options[this.selectedIndex].value;" alt="blank" emsg="please select sub category">
<option selected>Select Sub Category</option>
<?
$sql = "select * from quick_subcategory where 1 and cat_id ='".$_GET['cat_id']."' order by subcategory";
$contResult = mysql_query($sql);
while ($row = mysql_fetch_array($contResult))
{
?>
<!-- <option value="<? #=$row['sub_cat_id']?>"<? #if( $_GET['sub_cat_id'] !='') {if($_GET['sub_cat_id']==$row['sub_cat_id']){?>selected<? #} } else {?><? #if($line['sub_cat_id']==$row['sub_cat_id']){?>selected<? #} }?>>dhkhfk</option> -->
<option value="<?=$row['subcategory']?>"<? if($_GET['sub_cat_id']==$row['subcategory']){?>selected<? }?>>
<?=ucfirst($row['subcategory'])?>
</option>
<? }?>
</select></td>
</tr>
<!--<tr>
<td>Choose Sub To Sub Category </td>
<td height="10">
<select name="sub_sub_id" class="textbox" id="sub_sub_id" onChange="window.location.href='?cat_id=<?=$_GET['cat_id']?>&sub_cat_id=<?=$_GET['sub_cat_id']?>&sub_sub_id='+ this.options[this.selectedIndex].value;">
<option selected>Select Sub TO Categary</option>
<?
$sql = "select * from quick_sub_sub_category where 1 and cat_id ='".$_GET['cat_id']."' and sub_cat_id ='".$_GET['sub_cat_id']."' order by sub_sub_category";
$contResult = mysql_query($sql);
while ($row = mysql_fetch_array($contResult))
{
?>
<option value="<?=$row['sub_sub_id']?>" <? if($_GET['sub_sub_id']==$row['sub_sub_id']){?> selected <? }?>>
<?=ucfirst($row['sub_sub_category'])?>
</option>
<? }?>
</select></td>
</tr>-->
<tr>
<td width="25%">choose country</td>
<td height="10"><select name="c_id" class="textbox" id="c_id" alt="blank" emsg="please select country" onChange="onChange=window.location.href='?cat_id=<?=$_GET['cat_id']?>&sub_cat_id=<?=$_GET['sub_cat_id']?>&sub_sub_id=<?=$_GET['sub_sub_id']?>&c_id='+ this.options[this.selectedIndex].value;">
<?
$sql = "select * from quick_country where 1 order by country";
$contResult = mysql_query($sql);
while ($row = mysql_fetch_array($contResult))
{
?>
<option value="<?=$row['country']?>" selected>
<?=ucfirst($row['country'])?>
</option>
<? }?>
<!--<option value="<? #=$row['c_id']?>"<? #if( $_GET['c_id'] !='') {if($_GET['c_id']==$row['c_id']){?>selected<? #} } else {?><? #Sif($line['c_id']==$row['c_id']){?>selected<? #} }?>>
<? #=ucfirst($row['country'])?>
</option>-->
</select></td>
</tr>
<tr>
<td height="23">Choose State</td>
<td><select name="state" class="textbox" alt="blank" emsg="please select state" id="state" onChange="onChange=window.location.href='?cat_id=<?=$_GET['cat_id']?>&sub_cat_id=<?=$_GET['sub_cat_id']?>&sub_sub_id=<?=$_GET['sub_sub_id']?>&state_id='+ this.options[this.selectedIndex].value;">
<!--&c_id=<? #=$_GET['c_id']?>-->
<option selected>Select State</option>
<?
$sql = "select * from quick_state where 1 or c_id ='".$_GET['c_id']."' order by state";
$contResult = mysql_query($sql);
while ($row = mysql_fetch_array($contResult))
{
?>
<option value="<?=$row['state_id']?>"<? if($_GET['state_id']==$row['state_id']){?> selected<? }?>>
<?=ucfirst($row['state'])?>
</option>
<? }?>
</select></td>
</tr>
<tr>
<td width="25%" height="23">choose City</td>
<td><select name="city" class="textbox" id="city" alt="blank" emsg="please select city" onChange="onChange=window.location.href='?cat_id=<?=$_GET['cat_id']?>&sub_cat_id=<?=$_GET['sub_cat_id']?>&sub_sub_id=<?=$_GET['sub_sub_id']?>&state_id=<?=$_GET['state_id']?>&city_id='+ this.options[this.selectedIndex].value;">
<option selected>select city</option>
<?
$sql = "select * from quick_city where 1 and state_id ='".$_GET['state_id']."' or c_id='".$_GET['c_id']."' order by city";
$contResult = mysql_query($sql);
while ($row = mysql_fetch_array($contResult))
{
?>
<option value="<?=$row['city_id']?>" <? if($_GET['city_id']==$row['city_id']){?> selected<? }?>>
<?=ucfirst($row['city'])?>
</option>
<? }?>
</select></td>
</tr>
<tr>
<td width="25%">Company Name</td>
<td><input name="comp_name" type="text" class="textbox" id="comp_name" size="45" alt="blank" emsg="please enter company name" value="<?=$_SESSION['comp_name']?>">
<? if($comp!=''){?>
<font color="#FF0000">**</font>
<? }?></td>
</tr>
<tr align="left">
<td height="23" align="left" valign="top">Short Description </td>
<td><textarea name="short_description" cols="45" rows="4" class="textbox" id="short_description"><?=$_SESSION['short_description']?>
</textarea>
<?php
/*$FCKvalue = $_SESSION['short_description'];
$oFCKeditor = new FCKeditor('short_description') ;
$oFCKeditor->BasePath = 'FCKeditor/';
$oFCKeditor->Value = $FCKvalue;
$oFCKeditor->Width = '100%' ;
$oFCKeditor->Height = '300' ;
$oFCKeditor->Create() ;*/
?></td>
</tr>
<tr align="left">
<td height="23" align="left" valign="top">Contact Person</td>
<td><input name="con_person" type="text" class="textbox" id="con_person" size="45" value="<?=$_SESSION['con_person']?>"></td>
</tr>
<tr align="left">
<td width="25%" height="36" align="left" valign="top"> Address</td>
<td><textarea name="address" cols="45" rows="4" class="textbox" id="address" alt="blank" emsg="Please Enter Address"><?=$_SESSION['address']?>
</textarea>
</td>
</tr>
<tr>
<td width="25%">Telephone No.</td>
<td height="15"><input name="phone" type="text" class="textbox" id="phone" size="45" value="<?=$_SESSION['phone']?>"></td>
</tr>
<tr>
<td>Mobile</td>
<td height="10"><input name="mobile" type="text" class="textbox" id="mobile" size="45" value="<?=$_SESSION['mobile']?>"></td>
</tr>
<tr>
<td width="25%"> E-mail</td>
<td height="10" nowrap class="button"><input name="email" type="text" class="textbox" id="email" size="45" alt="email" emsg="Please Enter E-mail" value="<?=$_SESSION['email']?>" onBlur="chk()">
<? if($_SESSION['username']!=$_SESSION['email']){?>
<font color="#FF0000">**</font>
<? }?>
Your username & E-mail must be same </td>
</tr>
<tr>
<td width="25%">Web site URL</td>
<td height="10"><input name="url" type="text" class="textbox" id="url" size="45" alt="blank" emsg="please enter website url" value="<? echo $_SESSION['url']; ?>"></td>
</tr>
<tr>
<td colspan="2" class="boldblack"> </td>
</tr>
<tr>
<td colspan="2" class="boldblack">User informiton</td>
</tr>
<tr>
<td width="25%">First Name</td>
<td><input name="f_name" type="text" class="textbox" id="f_name" size="45" alt="blank" emsg="Please Enter first name" value="<?=$_SESSION['f_name']?>" onBlur="upperCase()"></td>
</tr>
<tr>
<td width="25%">Last Name</td>
<td><input name="l_name" type="text" class="textbox" id="l_name" size="45" alt="blank" emsg="Please Enter last name" value="<?=$_SESSION['l_name']?>" onBlur="upperCase()"></td>
</tr>
<tr>
<td colspan="2" class="boldblack">Login informiton</td>
</tr>
<tr>
<td width="25%">User Name</td>
<td class="button"><input name="username" type="text" class="textbox" id="username" size="45" alt="email" emsg="Please Enter username" value="<?=$_SESSION['username']?>">
<? if($_SESSION['username']!=$_SESSION['email']){?>
<font color="#FF0000">**</font>
<? }?>
Your username & E-mail must be same</td>
</tr>
<tr>
<td width="25%">Password</td>
<td class="button"><input name="password" type="password" class="textbox" id="password" size="45" alt="blank" emsg="Please Enter Password" value="<?=$_SESSION['password']?>">
<? if($_SESSION['password']!=$_SESSION['repassword']){?>
<font color="#FF0000">**</font>
<? }?></td>
</tr>
<tr>
<td>Retype Password</td>
<td class="button"><input name="repassword" type="password" class="textbox" id="repassword" size="45" alt="blank" emsg="Please Enter Re-Password">
<? if($_SESSION['password']!=$_SESSION['repassword']){?>
<font color="#FF0000">**</font>
<? }?></td>
</tr>
<tr>
<td width="25%"> </td>
<td class="button"> </td>
</tr>
<tr>
<td> </td>
<td class="button"> </td>
</tr>
<tr>
<td class="boldblack">Account Type </td>
<td class="button"> </td>
</tr>
<tr>
<td>
<input name="acc_type" type="radio" value="free" checked>
<span class="button">Free</span></td>
<td class="button"> </td>
</tr>
<tr>
<td colspan="2"><fieldset>
<legend> <span class="button">
<input name="acc_type" type="radio" value="paid">
Paid </span> </legend>
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" >
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="0">
<?
$sql="select * from quick_acc_subscription";
$res=mysql_query($sql) or die(mysql_error());
$i=1;
while ($line_raw = mysql_fetch_array($res))
{
$line = ms_display_value($line_raw);
@extract($line);
?>
<tr >
<td width="15%" height="20" align="left"><?=ucfirst($line['acc_sub'])?></td>
<td width="10%" align="left"><?=$line['acc_sub_price']?>
$</td>
<td width="65%" align="left"><?=$line['acc_duration']?>
<?=$line['acc_du_mm']?>
<? if($sub_year != 0 and $sub_year !='')
{ ?>
<?='-'?>
<?=$line['sub_year']?>
<?=$line['sub_yy']?>
<? }?>
</td>
<td width="3%" align="center"><input name="acc_id" type="radio" value="<?=$acc_id?>"></td>
</tr>
<? $i++; }?>
</table></td>
</tr>
</table>
</fieldset></td>
</tr>
<!--<tr>
<td colspan="2"><fieldset>
<legend> <span class="button">
<input name="acc_type" type="radio" value="paid">
<strong>
Banner Subscription</strong></span> </legend>
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" >
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<?/*
$sql="select * from quick_subscription";
$res=mysql_query($sql) or die(mysql_error());
$i=1;
while ($line_raw = mysql_fetch_array($res))
{
$line = ms_display_value($line_raw);
@extract($line);*/
?>
<tr >
<td width="24%" height="20" align="left"><? #=$line['sub_title']?></td>
<td width="22%" align="left"><? #=$line['sub_price']?>$</td>
<td width="48%" align="left"><? #=$line['sub_month']?>
<? #=$line['sub_mm']?>
<? #if($sub_year != 0 and $sub_year !='')
#{ ?>
<? #='-'?>
<? #=$line['sub_year']?>
<? #=$line['sub_yy']?>
<? #}?> </td>
<td width="6%" align="center"><input name="sub_id" type="radio" value="<? #=$sub_id?>"></td>
</tr>
<? #$i++; }?>
</table></td>
</tr>
</table>
</fieldset></td>
</tr>-->
<!--<tr>
<td colspan="2"> </td>
</tr>
tr
<tr>
<td colspan="2" class="boldblack">Paid Subscription </td>
</tr>
<tr>
<td> </td>
<td class="button"> </td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2" align="center"> </td>
</tr>
<tr>
<td colspan="2" align="center">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<?
$sql="select * from quick_subscription";
$res=mysql_query($sql) or die(mysql_error());
$i=1;
while ($line_raw = mysql_fetch_array($res))
{
$line = ms_display_value($line_raw);
@extract($line);
?>
<tr >
<td align="center"><?=$i?></td>
<td align="center"><?=$line['sub_name']?></td>
<td align="center"><?=$line['sub_price']?></td>
<td align="center"><?=$line['sub_duration']?></td>
<td align="center"><input name="arr_sub_id[]" type="checkbox" id="arr_sub_id[]" value="<?=$sub_id?>"></td>
</tr>
<? $i++; }?>
</table> </td>
</tr>-->
<tr>
<td colspan="2" align="center"><span class="button">
<input type="submit" name="submit" value="Register" class="button">
</span></td>
</tr>
</table>
</form>
<p><br>
<br>
</p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table></td>
<td width="198" valign="top" bgcolor="EBEBEB" style="border-right:solid 1px #7D8184; border-left:solid 1px #7D8184;"><? include("rightnav.php")?></td>
</tr>
</table>
<? include("footer.php")?>
</body>
</html>
mmj
Forum Contributor
Posts: 118 Joined: Fri Oct 31, 2008 4:00 pm
Post
by mmj » Thu Nov 13, 2008 1:48 pm
Code: Select all
<script language="javascript">function chk(){ ob =document.frm.keyword2.value window.location.href='?key=' +ob;} </script>
You have it in some/most of the input's
onblur attribute.
infolock
DevNet Resident
Posts: 1708 Joined: Wed Sep 25, 2002 7:47 pm
Post
by infolock » Thu Nov 13, 2008 3:27 pm
Just adding to mmj, there is a javascript error also "validateForm is not defined. Source File:
http://www.spootlight.com/register.php? ... ity_id=229 "
So yes, what mmj is saying is true, it's the above function causing the problem. The fields I see it happening on are where you input the email address and the username..
aceconcepts
DevNet Resident
Posts: 1424 Joined: Mon Feb 06, 2006 11:26 am
Location: London
Post
by aceconcepts » Thu Nov 13, 2008 6:22 pm
@ infolock - that's exactly what i was hinting at