Jump to content

ober

Staff Alumni
  • Posts

    5,327
  • Joined

  • Last visited

Everything posted by ober

  1. Unless I'm mistaken, you can see your own email address.  I can as well.  It's the general public that it is hidden from.
  2. whoa whoa whoa... you're really lost. You're sending out mail twice before you even verify the user's email address.  And what is all the "adminsingupmessage" crap? [code]         $subject = "Forgotten password";         $result = mysql_query("SELECT username, pass FROM users WHERE user_email = '" . $_REQUEST['submitted_email'] . "'";         if($result && mysql_num_rows($result) == 1)         {             $row = mysql_fetch_row($result);             $message = "Your username: " . $row['username'] . "<br>"Your password: " . $row['pass'];             mail($_REQUEST['submitted_email'],$subject,$message,"From: $adminemail");         } [/code] Try that
  3. [code]if(isset($_REQUEST['adduser'])) { $showform = 0; $passgood = 1; $err = ""; $ufname = trim(strip_tags($_POST['ufname'])); $ulname = trim(strip_tags($_POST['ulname']));     $email = trim(strip_tags($_POST['email']));     $user = trim(strip_tags($_POST['user'])); $pass = trim(strip_tags($_POST['pass'])); $pass2 = trim(strip_tags($_POST['pass2']));     $secure = strtoupper(trim(strip_tags($_POST['secure'])));     $match = $_SESSION['captcha']; // the code on the image if ($ufname == "") $err .= "Please provide your first name<br/>"; if ($ulname == "") $err .= "Please provide your last name<br/>";     if ($email == "") $err .= "Please provide your email address<br>";     if ($email != "" && !eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email))     $err.= $email. " is not a valid email address.<br/>";     if ($user == "") $err .= "Please provide a username<br/>";     if ($pass == "") $err .= "Please provide a password<br/>";     if ($pass2 == "") $err .= "Please confirm your password<br/>";     if ($secure == "") $err .= "No security code entered<br/>";     if (($secure != $match) && ($secure != "")) $err.= "Security code mismatch<br/>"; if(trim($pass) != trim($pass2)) { $err .= "Your password does not match the confirmation password!<br/>"; $passgood = 0; } if ($err == "") { $query = "SELECT uname FROM users WHERE uname = '" . $_REQUEST['user'] . "'"; $result = $ehandle->update_query($query);     if($result && mysql_num_rows($result) == 0)     {     $query = "INSERT INTO users (ufname, ulname, ulevel, ulog, uname, upass, uaction, utimeoffset, uemail, uenabled) VALUES ('$ufname', '$ulname', 1, 1, '$user', '$pass', '" . date("Y-m-d h:i:s A") . "', 0, '$email', 1)";     $result = $ehandle->update_query($query);         if($result)                 {                   // blah blah[/code] Then at the bottom where I have the form again: [code] if((isset($showform) && $showform == 1) || !isset($showform)) { if(!isset($passgood)) $passgood = 1; if ($err != "") {     echo "<strong>Form Error(s)</strong><br/>";     echo "<font color='#cc3300'>". nl2br($err). "</font><br/>"; } ?> <form action="index.php?req=signup" method="post"> <input type="hidden" name="adduser" value="1"> <table cellpadding="5" cellspacing="2"> <tr> <td>First Name:</td>           blah blah [/code]
  4. ober

    beta testers?

    I wonder if I can do the same for FPS games.  *evil grin*
  5. ober

    beta testers?

    I've tested a few patches for things, but never the entire game.  How do you get contacted for stuff like that?
  6. oh... well that's still pretty cool :)
  7. suuuhweeet.  Model?
  8. What's the counter on the porsche thing for?  Did you order one?
  9. I took pictures of my desk at work and I'll post them when I get a chance.  I also want to take pictures of my home office... we just repainted and I don't have anything on the walls yet though.
  10. Here's mine... I change my desktop about twice a week. [attachment deleted by admin]
  11. I'm going to change your title.  This is your first and only warning.  Do NOT use all caps in a thread title.
  12. No problem... now go do something more complicated so you can feel the power of AJAX!
  13. It's actually been around for a long time... but it's just now starting to catch on.  Google uses it a lot in GMail and other applications (google maps for instance) to refresh the page without reloading the page. There are plenty of places to use it: 1) Loading new parts of a form based on user selection 2) Grabbing the city/state from a zip code that was entered 3) automatically suggesting things when typing into a box for a search and the list goes on.  I mainly use it to refresh lists or items where a user can pick and choose their options.
  14. http://www.whproductions.com/phpfreaks/test.php You had a few issues... and trust me, it can be frustrating to get your first script to work, but you have to be absolutely meticulous. A few issues you had: 1) it's innerHTML, not innerHtml. 2) I don't know if your createObject function was working correctly or not, but I swapped it out for mine. 3) It's always a good idea to use form tags around inputs. Update code: test.php [code]<!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" /> <title>Untitled Document</title> <scrREMOVEMEipt language="javascript" type="text/javascript"> function createRequestObject() {     if (window.XMLHttpRequest) { // Mozilla, Safari, Opera...         var xmlhttp = new XMLHttpRequest();         if (xmlhttp.overrideMimeType) xmlhttp.overrideMimeType('text/xml');     } else if (window.ActiveXObject) { // IE         try {             var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");         } catch (e) {             try {                 var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");             } catch (e) {}         }     }     if (!xmlhttp) {         alert('Giving up :( Cannot create an XMLHTTP instance');         return false;     } return xmlhttp; } var http = createRequestObject(); function sendRequest() {     var field = document.getElementById('field').value; http.open('post', 'test2.php'); http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); http.send('field='+field); http.onreadystatechange = handleDetails; } function handleDetails() {     if (http.readyState == 4) {     var response = http.responseText; document.getElementById('test').innerHTML = response; } } </scREMOVEMEript> </head> <body> <div id="test">This is a test<br /></div> <form action=""> <input type="text" id="field" name="field"/><br /> <input type="button" value="Submit" onclick="sendRequest();" /> </form> </body> </html> [/code] test2.php [code]<?php $field = $_POST['field']; if (trim($field) == '') {     echo "the field is empty"; }else{   echo "the field  is $field"; }  ?>[/code] The IPS won't let me post with the script tags in there, so obviously you need to remove the words "REMOVEME" from that part of the code.
  15. Lose the second +. http.send('field='+field+); should be http.send('field='+field);
  16. OH WAIT... I think I know what the problem is.  You're calling "SendRequest".  Your function is "sendRequest".  It is case-sensative!
  17. In IE6, you can double click on the little yellow exclaimation point thing in the corner.  It will bring up the error message, but I warn you IE6 does a horrible job of telling you what went wrong.  You're better off using Opera or Firefox to debug your javascript.  I'd suggest Opera, because it's very descriptive. EDIT: if you give me a link, I can test it for you and let you know what I found.
  18. You're not actually running the "handleRequest" function. Have a look at one of my scripts: http://www.whproductions.com/v2/js/whprod.js
  19. I don't think your results were any different from anyone else's then.  We all got mixed results for the most part.
  20. I've heard recently that the new Google Checkout has been kind of a flop.  People are finding it hard to use and it doesn't work all the time.  It's not easy to integrate things like that on the scale they are trying to reach.  In fact, I think the product is still in Beta (most of Google's products are)... so I'd wait until this one graduates from Google Labs.  It's a nice idea, but from what I've heard, it hasn't been implemented very well.
  21. Actually, it's kind of the right forum.  Anything you see that is wrong with the actual workings of the site can be reported here.  I'm not completely sure why the code isn't listed as a download at the end of that script.  It could be that it was never included.  I will look into that if I get a chance, but one of our other admins may beat me to it. EDIT: And just FYI, we're currently working on the main site to fix things like this, so please check back in the future and things will hopefully be better!
  22. Umm... no.
  23. I've been using SmartFTP (I showed it to steelman) for a few years now.  It's rather full featured.
  24. I second the "no" motion... and FYI oldmanice... if you post nonsense like this in this board again, I will seriously consider action against your account.
  25. app dev PM with only 46 posts here?  Goddamn... I should be running Google then!  ;)
×
×
  • 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.