patco Posted August 30, 2008 Share Posted August 30, 2008 When I enter my details in my site and go to the profile, i can't do anything because it says "the field is not valid" http://xtremebux.my32.net/ Thank you in addition Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted August 30, 2008 Share Posted August 30, 2008 must see code. Quote Link to comment Share on other sites More sharing options...
patco Posted August 31, 2008 Author Share Posted August 31, 2008 must see code. what file? do u have skype or sth to contact Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 31, 2008 Share Posted August 31, 2008 "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? Quote Link to comment Share on other sites More sharing options...
patco Posted August 31, 2008 Author Share Posted August 31, 2008 "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 Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted August 31, 2008 Share Posted August 31, 2008 Talk to your friend. If he wrote it, he should be able to tell you what's wrong. Ken Quote Link to comment Share on other sites More sharing options...
patco Posted August 31, 2008 Author Share Posted August 31, 2008 Ok but can i understand what is the error , for example to place or die("MySQL Error!"); ..any idea? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted August 31, 2008 Share Posted August 31, 2008 We can't help you, unless you post the code. Ken Quote Link to comment Share on other sites More sharing options...
patco Posted August 31, 2008 Author Share Posted August 31, 2008 <?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 Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted August 31, 2008 Share Posted August 31, 2008 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 .... Quote Link to comment Share on other sites More sharing options...
patco Posted August 31, 2008 Author Share Posted August 31, 2008 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'); ?> Quote Link to comment Share on other sites More sharing options...
patco Posted September 3, 2008 Author Share Posted September 3, 2008 So can somebody help the error is: Warning: Cannot modify header information - headers already sent by. mhm Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 3, 2008 Share Posted September 3, 2008 You would need to post the actual error message to get help with it. The line number it is occurring on and where it is referring to the output being started determines what is causing the problem. Quote Link to comment Share on other sites More sharing options...
patco Posted September 4, 2008 Author Share Posted September 4, 2008 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); Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 4, 2008 Share Posted September 4, 2008 Yes but the output at line 15 in config.php is what is causing the problem - output started at /home/patco/public_html/config.php:15 Quote Link to comment Share on other sites More sharing options...
revraz Posted September 4, 2008 Share Posted September 4, 2008 Stickies are your friend http://www.phpfreaks.com/forums/index.php/topic,37442.0.html Quote Link to comment Share on other sites More sharing options...
patco Posted September 4, 2008 Author Share Posted September 4, 2008 can you tell me in what file (config.php)? do i have to place the session start in the beginning? Quote Link to comment Share on other sites More sharing options...
patco Posted September 5, 2008 Author Share Posted September 5, 2008 Yes but the output at line 15 in config.php is what is causing the problem - output started at /home/patco/public_html/config.php:15 Yes but in config.php there is no line 15 ??? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted September 5, 2008 Share Posted September 5, 2008 Is there a blank line anywhere after the closing "?>" in config.php. This will cause output to be generated, also. Ken Quote Link to comment Share on other sites More sharing options...
revraz Posted September 5, 2008 Share Posted September 5, 2008 Every file that uses sessions. can you tell me in what file (config.php)? do i have to place the session start in the beginning? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.