Jump to content

what is that error - "the field is not valid"


patco

Recommended Posts

"the field is not valid" is not a useful error mesage of any sort.  It's impossible for anyone to tell you waht's wrong, let alone how it might be fixed.

 

Did you write ALL the code or is this a packaged script you customized?

Link to comment
Share on other sites

"the field is not valid" is not a useful error mesage of any sort.  It's impossible for anyone to tell you waht's wrong, let alone how it might be fixed.

 

Did you write ALL the code or is this a packaged script you customized?

 

no a friend gived it to me :( it's sth like a present

Link to comment
Share on other sites

<?php include ('header.php'); 

?>


<h3>Join Now and Get Paid to Visit Websites!</h3>

<p><img class="img-left" src="images/users.png" width="48" height="48" alt="Image" />
At <? include('sitename.php'); ?>, you get paid to click on ads and visit websites. The process is easy! You simply click a link and view a website for a few seconds to earn money. You don't need any skills. This is because all you need to do is visit the sites we provide you with. <span class="highlight">You can earn even more by referring friends.</span> Payment requests can be made every day and are processed through PayPal. The minimum payout is $<? require ('config.php');
							$sql = "SELECT * FROM tb_config WHERE item='payment' and howmany='1'";
							$result = mysql_query($sql);        
							$row = mysql_fetch_array($result); echo $row["price"];
							mysql_close($con); ?></p>

<p align="right"><?php echo "<a href=\"register.php?r=".$elref."\">";?>Join Now!</a></p>

<h3>Advertise Here</h3>

<p><img class="img-left" src="images/money.gif" width="48" height="48" alt="Image" />

Setting up and displaying your link for <? include('sitename.php'); ?> members to visit is fast and simple. We charge $<? 
							require ('config.php');
							$sql = "SELECT * FROM tb_config WHERE item='hits' and howmany='1000'";
							$result = mysql_query($sql);        
							$row = mysql_fetch_array($result); echo $row["price"]; mysql_close($con);?> 
							per <? require ('config.php');
						 	$sql = "SELECT * FROM tb_config WHERE item='hits' and howmany='1000'";
							$result = mysql_query($sql);        
							$row = mysql_fetch_array($result);echo $row["howmany"]; mysql_close($con);?> 
							member visits and each visit will last at least 20 seconds. 
							Outside visits are unlimited and included within the price.
							We will review your website and will have it active within 24 hours. You don’t need an account to order advertising at <?php include ('sitename.php');?>, you simply need to complete the form then pay the fee. If you would like a large package then please feel free to contact us. We will review your website within just a few hours or less. But will NOT accept illegal or adult material neither the use of frame breakers.</p>
<p align="right"><?php echo "<a href=\"advertise.php?r=".$elref."\">";?>Read More...</a></p>


<?					require ('config.php');
				$sqlzdu = "SELECT * FROM tb_config WHERE item='referalclick' and howmany='1'";
				$resultzdu = mysql_query($sqlzdu);        
				$myrowzdu = mysql_fetch_array($resultzdu);
				$elprecioref=$myrowzdu["price"];

				$sqlzduz = "SELECT * FROM tb_config WHERE item='click' and howmany='1'";
				$resultzduz = mysql_query($sqlzduz);        
				$myrowzduz = mysql_fetch_array($resultzduz);
				$elprecioa=$myrowzduz["price"];

				$elprecio=$elprecioa*10;
				$cien=$elprecioref*100*10;
				$daily=$elprecio+$cien;
				$monthly=$daily*30;
				$yearly=$monthly*12;
				mysql_close($con);

			?>

<p> </p>
<blockquote><h4>How much can I earn?</h4>

If you click 10 ads a day, you refer 100 members who click 10 ads a day, you could earn up to $<?php echo $monthly?> monthly, that means $<?php echo $yearly ?> yearly. With more referrals or ads the earning potential is endless.</blockquote>





<?php include ('footer.php'); ?>

 

That is index.php

Link to comment
Share on other sites

The code we would need to see is the code of the page you are on when you receive that error message.

 

I will guess it is your login.php page after you enter your username/password/securitycode, you get a minimal formated page starting with the following -

 

The Field a is not Valid

 

Login

Register

....

 

 

Link to comment
Share on other sites

Ok excuse me i am new in this:

 

<? 
session_start();
?><? include('header.php'); ?>

<h3>Edit Your Profile</h3>
<br>
<?



// incluimos archivos necesarios

require('config.php');

if (isset($_POST["password"])) {


if( strtolower($_POST['code'])!= strtolower($_SESSION['texto'])){ 
echo "SECURITY CODE ERROR... ";include('footer.php'); exit();
}

// Declaramos las variables
$password = $_POST["password"];
$cpassword = $_POST["cpassword"];
$email = $_POST["email"];
$pemail = $_POST["pemail"];
$country = $_POST["country"];


// comprobamos que no haya campos en blanco

if($password==NULL|$cpassword==NULL|$email==NULL|$pemail==NULL|$country==NULL) {
echo "All Fields Are Required.";
}else{


// sanitizamos las variables

$password = uc($password);
$cpassword = uc($cpassword);
$email = limpiar($email);
$pemail = limpiar($pemail);
$country = limpiar($country);


// limitamos el numero de caracteres

$password=limitatexto($password,15);
$cpassword=limitatexto($cpassword,15);
$email=limitatexto($email,100);
$pemail=limitatexto($pemail,100);
$country=limitatexto($country,15);


// comprobamos que tengan un minimo de caracteres

minimopass($password);


// їCoinciden las contraseсas?
if($password!=$cpassword) {
echo "Password do not Match";
}else{





// Comprobamos que sea un email valido
ValidaMail($email);


// Comprobamos que sea un email valido
ValidaMail($pemail);


// Comprobamos que no se haya creado otra cuenta desde la misma ip

$laip = getRealIP();










$trok=uc($_COOKIE["usNick"]);

// Si todo parece correcto procedemos con la inserccion

$queryb = "UPDATE tb_users SET password='$password', ip='$laip', email='$email', pemail='$pemail', country='$country' WHERE username='$trok'";
mysql_query($queryb) or die(mysql_error());

echo "...";

?>
<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=logoutp.php">
<?

}


}

// En caso de no haber sido enviado los datos mostramos el formulario

}else{

$uzer=uc($_COOKIE["usNick"]);
$pazz=uc($_COOKIE["usPass"]);

$sql = "SELECT * FROM tb_users WHERE username='$uzer'";
$result = mysql_query($sql);        
$row = mysql_fetch_array($result);

if ($pazz != $row["password"]){ exit(); }


?>


<div align="center"><div id="form">
<fieldset><legend> All Fields Required </legend>



<form action="profile.php" method="POST">

<table width="400" border="0" align="center">
  <tr>
    <td width="150" align="left"><p><label>Password</label></label></p></td>
    <td width="250" align="left"><input type="password" size="25" maxlength="15" name="password" value="<? echo $row["password"]; ?>" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Password</label></p></td>
    <td width="250" align="left"><input type="password" size="25" maxlength="15" name="cpassword" value="<? echo $row["password"]; ?>" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Email Address</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="email" value="<? echo $row["email"]; ?>" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>PayPal E-mail</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="pemail" value="<? echo $row["pemail"]; ?>" class="field" value="" tabindex="1" /></td>
  </tr>
<tr>
    <td width="150" align="left"><p><label>Country</label></p></td>
<td width="250" align="left"><input type="text" size="25" maxlength="100" name="country" autocomplete="off" class="field" value="<? echo $row["country"]; ?>" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Security Code </label></p></td>
    <td width="250" align="left"><input type='text' size='3' maxlength='3' name='code' autocomplete="off" class="securitycode" value="" tabindex="3" /></td>
  </tr>
  <tr>
    <td width="150" align="left"> </td>
    <td width="250" align="left"><img src="image.php?<?php echo $res; ?>" /></td>
  </tr>

  <tr>
    <td width="150" align="left"> </td>
    <td width="250" align="right"><input type="submit" value="Enter" class="submit" tabindex="4" />
</td>
  </tr>
</table>
</form>
</fieldset>
</div></div>

<?
}
mysql_close($con);
?>








	<!--footer starts here-->
<? include('footer.php'); ?>

Link to comment
Share on other sites

The errors:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/patco/public_html/config.php:15)
in /home/patco/public_html/login.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /home/patco/public_html/config.php:15)
in /home/patco/public_html/login.php on line 46

 

in login.php the lines 45 and 46 are:

 

setcookie("usNick",$nicke,time()+7776000);
setcookie("usPass",$passe,time()+7776000);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.