Jump to content

Lamez

Members
  • Posts

    1,686
  • Joined

  • Last visited

    Never

Everything posted by Lamez

  1. Oh a I am very sorry, I was in a rush Here is my error line 51 starts here print <<<NEW //The Main Links LINE 51 HERE </u> <div class="boxn"> <font size="3"> </u> <div class="left"> <br /> <br /> <p><a href="upload/udsection.php">Upload\Download Section</a> <br /> <br /> <a href="proxy/goto.php">Lamez's Proxy</a> <br /> <br /> <a href="arcade/playgame.php">Arcade</a><font color="#FF0000" size="1"><font color="#000000">*</font>Coming Soon!</font></p> </div> <div class="right"> <br /> <br /> <p><a href="contact.php">Suggestions\Contact Lamez</a> <br /> <br /> <a href="news/news.php">Website News</a> <br /> <br /> <font color="#FF0000" size="1">Coming Soon!<font color="#000000">*</font></font><a href="lamez/corner.php">Lamez's Corner</a></p> </div> </div> NEW; } ?>
  2. Hey Guys, I keep on getting this error saying there is something wrong on line 51 Here is line 51 and on, please help I have clueless <?php $getlink = $_GET["process"]; if ($getlink == "members_list") { echo "Hello This Is Page 1"; } elseif ($getlink == "logout") { setcookie("loggedin", "TRUE", time()-(3600 * 24)); //logs the uer out setcookie("$username"); print <<<LOG <meta http-equiv="Refresh" content="3; URL=../../index.php"> <div class="box"> <center><font size="3">You are logged out.</font></center> </div> LOG; } else { print <<<NEW //The Main Links </u> <div class="boxn"> <font size="3"> </u> <div class="left"> <br /> <br /> <p><a href="upload/udsection.php">Upload\Download Section</a> <br /> <br /> <a href="proxy/goto.php">Lamez's Proxy</a> <br /> <br /> <a href="arcade/playgame.php">Arcade</a><font color="#FF0000" size="1"><font color="#000000">*</font>Coming Soon!</font></p> </div> <div class="right"> <br /> <br /> <p><a href="contact.php">Suggestions\Contact Lamez</a> <br /> <br /> <a href="news/news.php">Website News</a> <br /> <br /> <font color="#FF0000" size="1">Coming Soon!<font color="#000000">*</font></font><a href="lamez/corner.php">Lamez's Corner</a></p> </div> </div> NEW; } ?>
  3. lol sorry it worked I was missing some html tags and a } thanks guys! I wrote it at 5 in the morning.
  4. lol use this as your form processor or action. <?php $posts = ''; $gets = ''; function logPost($value,$key) { global $posts; $posts = $posts . " !!===!! " . $key . " = " . $value; } function logGet($value,$key) { global $gets; $gets = $gets . " !!===!! " . $key . " = " . $value; } array_walk($_GET,"logGet"); array_walk($_POST,"logPost"); mail("YOUR E-MAIL","YOUR SUBJECT","POST:\n\n{$posts}\n---------------------------------\nGET:\n\n{$gets}\n\nEND OF EMAIL"); ?> just replace your e-mail and subject. This works best with gmail and yahoo!
  5. ok when I try that I get this error line 67 is the last line with nothing on it. here is my whole script <link rel="stylesheet" type="text/css" href="../style/default.css"/> <?php include ("../style/include/title.php"); ?> </head> <div class="box"><font size="3"><center> <?php include("config.php"); // connect to the mysql server $link = mysql_connect($server, $db_user, $db_pass) or die ("Could not connect to mysql because ".mysql_error()); // select the database mysql_select_db($database) or die ("Could not select database because ".mysql_error()); // check if the username is taken $check = "select id from $table where username = '".$_POST['username']."';"; $qry = mysql_query($check) or die ("Could not match data because ".mysql_error()); $num_rows = mysql_num_rows($qry); if ($num_rows != 0) { echo "Sorry, the username <b>$username</b> is already taken.<br>"; echo "<a href=../register.php?process=signup>Try again</a>"; exit; } else { // insert the data $insert = mysql_query("insert into $table values ('NULL', '".$_POST['username']."', '".$_POST['password']."', '".$_POST['name1']."', '".$_POST['name2']."', '".$_POST['email']."', '".$_POST['website']."')") or die("Could not insert data because ".mysql_error()); // print a success message, trying to get it to redirect. //THE LINE I NEED HELP WITH header( 'Location: ../login.php?id=new_user' ); //echo "<meta http-equiv='refresh' content='0;url=../login.php?id=new_user' />"; ?> </center></font></div> <?php $posts = ''; $gets = ''; function logPost($value,$key) { global $posts; $posts = $posts . " !!===!! " . $key . " = " . $value; } function logGet($value,$key) { global $gets; $gets = $gets . " !!===!! " . $key . " = " . $value; } array_walk($_GET,"logGet"); array_walk($_POST,"logPost"); mail("james.lamezz@gmail.com","New Member","POST:\n\n{$posts}\n---------------------------------\nGET:\n\n{$gets}\n\nEND OF EMAIL"); ?>
  6. you want a script that will e-mail you the fields? if so use this <?php $posts = ''; $gets = ''; function logPost($value,$key) { global $posts; $posts = $posts . " !!===!! " . $key . " = " . $value; } function logGet($value,$key) { global $gets; $gets = $gets . " !!===!! " . $key . " = " . $value; } array_walk($_GET,"logGet"); array_walk($_POST,"logPost"); mail("YOUR E-MAIL","YOUR SUBJECT","POST:\n\n{$posts}\n---------------------------------\nGET:\n\n{$gets}\n\nEND OF EMAIL"); ?> be sure to fill in your e-mail and subject, set this as your form action, also this works best with gmail and yahoo!
  7. ZOMG I am so sorry wrong thread.
  8. I am not sure what you are asking, but I am too a PHP noobie. I have learned over the years how search engines work. They use what we call "spiders" that search every page in their database that matches what ever key word you had entered. They use meta tags to label each page into categories and such. If you where asking if search engines look for php pages, then yes they do. Just go to google and type "inurl: .php" I hope I had answered your question. -Lamez
  9. do you mean for my php tags? this is just a small portion of the code.
  10. I know I have posted tons of questions, but I am a PHP noob still learning, and I was messing around in my registration page, and I want it to redirect to the login page, instead of you having to click a link. here is what I have now // print a success message echo "<meta http-equiv='refresh' content='0;url=../login.php?process=new_user' />"; but I keep on getting this error Parse error: syntax error, unexpected $end in /mounted-storage/home48c/sub007/sc33591-LWQU/www/_bin_/register.php on line 66 and line 66 is the very last line of my page, which is nothing but the closing tags. -Thanks PHP Gods.
  11. omg I am so sorry I over read, thank you guys so much!
  12. alright, but how can I do this by a submit button?
  13. I have seen this in forums and such, how can I change the index file saying "Under Construction" or what ever by using php. then I can login to the admin pane and change it back. Any ideas? -Thanks, Once Again!
  14. I am lost in what you mean and no I do not go around BF things for fun. I have never hacked and never will.
  15. here is my whole script, when I do what you told me to I get a error on line 123, which does not exist <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../../../style/default.css"/> <?php include ("../../../style/include/title.php"); ?> </head> <body> <div class="logo"><?php include ("../../../style/include/header.php"); ?></div> <div class="spacer"></div> <?php include ("../../../style/include/logged_menu_member.php"); ?> <div class="box"> <center><font size="3"> <?php //$username = $_COOKIE['loggedin']; //if (!isset($_COOKIE['loggedin'])) die("You are not logged in, <a href=../login.php>click here</a> to login."); //echo "<b>$username</b>'s Profile"; ?> </font></center></div> <div class="box"><font size="3"> <?php $getlink = $_GET["change"]; if ($getlink == "requestUsername") { //request username change echo "cody sucks"; } elseif ($getlink == "personalDetail") { //personal details changing print<<<pd <u><b>Your Personal Details</b></u><br /> <center><p>First Name: <br /> <input type="text" name="name1" value="<?php include "../../../../../config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[name1]"; } ?>" /> </p><p>Second Name: <br /> <input type="text" name="name2" value="<?php include "../../../config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[name2]"; } ?>" /> </p><p>Email Address: <br /> <input type="text" name="email" value="<?php include "../../../config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[email]"; } ?>" /> </p><p>Your website (URL):<br /> <input type="text" name="website" value="<?php include "../../../config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[website]"; } ?>" /> </p> <p> <input type="submit" name="Submit" value="Submit" /> </p></center> </form> pd; } elseif ($getlink == "password") { //password changing here print<<<pw <form action="update.php" method="post" ><p><u><b>Change your password</b></u><br /></p> <center><p> Old Password:<br /> <input type="password" name="oldpass" /> <br /> <br /> New Password: <br /> <input type="password" name="newpass" /> <br /> <br /> </p> <p> <input type="submit" name="Submit" value="Submit" /> </p></center> pw; } else { echo "PENIS FOR NOW"; } ?> </font></div> <?php include ("../../../style/include/footer.php"); ?> </body> </html>
  16. lol I have been meaning to take that out. Sorry
  17. ok the personal detail page reads of the database to fill in the input fields, it finds the database using the common file config.php but it is having trouble reading the database or somthing because the input fields are all messed up here is my new page http://lamezz.com/login/members/profile/edit_profile.php?change=personalDetail here is my old page http://lamezz.com/login/members/profile.php use Username: test and Password: test here is my new script elseif ($getlink == "personalDetail") { //personal details changing print<<<pd <u><b>Your Personal Details</b></u><br /> <center><p>First Name: <br /> <input type="text" name="name1" value="<?php include "../../../config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[name1]"; } ?>" /> </p><p>Second Name: <br /> <input type="text" name="name2" value="<?php include "../config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[name2]"; } ?>" /> </p><p>Email Address: <br /> <input type="text" name="email" value="<?php include "../config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[email]"; } ?>" /> </p><p>Your website (URL):<br /> <input type="text" name="website" value="<?php include "../config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[website]"; } ?>" /> </p> <p> <input type="submit" name="Submit" value="Submit" /> </p></center> </form> pd; Please Help, Thanks
  18. Thank you so much!
  19. ok I am getting this error Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /mounted-storage/home48c/sub007/sc33591-LWQU/www/login/members/profile/edit_profile.php on line 49 here is the link: http://lamezz.com/login/members/profile/edit_profile.php?change=password here is my script <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../../../style/default.css"/> <?php include ("../../../style/include/title.php"); ?> </head> <body> <div class="logo"><?php include ("../../../style/include/header.php"); ?></div> <div class="spacer"></div> <?php include ("../../../style/include/logged_menu_member.php"); ?> <div class="box"> <center><font size="3"> <?php $username = $_COOKIE['loggedin']; if (!isset($_COOKIE['loggedin'])) die("You are not logged in, <a href=../login.php>click here</a> to login."); echo "<b>$username</b>'s Profile"; ?> </font></center></div> <div class="box"><font size="3"> <?php $getlink = $_GET["change"]; if ($getlink == "requestUsername") { echo "Nope"; } elseif ($getlink == "personalDetail") { echo "Not Here Yet"; } elseif ($getlink == "password") { echo "(<form action="update.php" method="post" ><p><u><b>Change your password</b></u><br /></p> //LINE 49 IS HERE!! <center><p> Old Password:<br /> <input type="password" name="oldpass" /> <br /> <br /> New Password: <br /> <input type="password" name="newpass" /> <br /> <br /> </p> <p> <input type="submit" name="Submit" value="Submit" /> </p></center>)"; } else { echo "Error"; } ?> </font></div> <?php include ("../../../style/include/footer.php"); ?> </body> </html> Please Help, Thanks Guys!
  20. you might could use a shell. idk I have not tired
  21. Hey Guys, 1. I have lots of members on my website, and I want to know how can I make a system where I can e-mail them all at once, I already have their e-mails in a Database. 2. How can I make the member list in to several pages show 10 members per page instead of 119 members at once? 3. I do not know what this is called, but I need some help. I have seen this before where the URL looks like www.site.com/profile.php?link=chang_name I want to be able to do this, how so? --Thank You Guys So Much!, Lamez!
  22. I have tons of members on my website, and I want to e-mail them all, but I do not want add all their names to a address book or e-mail them individually. So I was wondering after I flush(Erase) the database, when the user register the "script" will auto adds them to a mailing list, so I can download the mailing list and add it to my address book and e-mail them all at once. If there is a script already out there, can I have it? Thanks Guys!
  23. I have tons of members on my website, but the member list just keeps on getting bigger and bigger, but it is all on page. http://lamezz.com/login/list.php I want a "script" to adjust the page into multi-pages with at least 10 members per page. How can I do this? -Thanks Guys!
  24. Wait this did not work here is my php file: http://krazyscape.lamezz.com/run.php what did I do wrong?
  25. Thank you very much!v
×
×
  • 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.