Jump to content

ghgarcia

Members
  • Posts

    53
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://lvbash.com/phpfootball

Profile Information

  • Gender
    Not Telling
  • Location
    Florida

ghgarcia's Achievements

Member

Member (2/5)

0

Reputation

  1. Really appreciate the help that did it. You guys are great. George
  2. Here is a copy of my login script: <? session_start(); session_register("user"); session_register("uname"); $subtitle="Login"; ob_start(); require("header.php"); //Get any form data. $football->WhoOnlineDelete; $username=$_POST['username']; $password=$_POST['password']; if ($_POST) { //Make sure cookies are enabled. // if ($_COOKIE["football"]=="") // { // $football->ErrorMessage("You must use a browser that supports cookies and<br> have them enabled in order to access this site."); // } // else // { //Check input. if ($username=="") { $football->ErrorMessage("Please enter a username."); } elseif ($password=="") { $football->ErrorMessage("Please enter your password."); } else { //Verify the password and redirect to default page if correct. $sql="select * from ".$football->prefix."users where user = '".$username."'"; $rs = $football->dbQuery($sql,$football->database); $row = mysql_fetch_object($rs); $rows = mysql_num_rows($rs); if($rows == 0) { $football->ErrorMessage("User '".$username."' not found."); } elseif (md5($password) != $row->password) { $football->ErrorMessage("Incorrect password, please reenter."); } else { $user=$row->user; if ($row->name =="") { $uname=$row->user; } else { $uname=$row->name; } header("Location: index.php"); } } } //} else { //Set test cookie. setcookie("football","peanutbutter",0,"/",$football->domain,0); } ?> <form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post"> <table class="main" cellpadding="0" cellspacing="0"> <tr> <th align="left">User Login</th> </tr> <tr> <td> <div class="freeForm"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td><strong>Username:</strong></td> <td><input name="username" value="" size="12" /></td> </tr> <tr> <td><strong>Password:</strong></td> <td><input name="password" type="password" value="" size="12" /></td> </tr> </table> <p>Enter your username and password and press 'Login'.</p> </div> </td></tr> </table> <p><input class="button" type="submit" value="Login" /> <input class="button" type="reset" value="Clear" onclick="this.form.elements['username'].selectedIndex = 0; this.form.elements['password'].value = ''; return false;" /></p> </form> <?php require("footer.php"); ?> Thanks, G
  3. Thanks for the suggestion I made the changes and still no joy. Is there something I could check that might give me a clue. Again I really appreciate the help. George
  4. Hi, I have an login script the collects user name and password also if they are present it executes my index application. Within the index application it requires a protection program that checks to see if the user name is present in the variables and if not it calls the login application. The protection application looks like the following: session_start(); session_register("user"); //Buffer output in case of redirection. ob_start(); //If not logged in, redirect to the login page. if ($_SESSION['user']=="") { header("Location: login.php"); } The login app uses a form to collect the user and password. This process works perfectly in PHP4 and in most cases with PHP5 however there are some cases that for some reason the session values are not available after the login application. The login app uses: $username=$_POST['username']; $password=$_POST['password']; to read the values. Any help would be greatly appreciated. George
  5. That did the trick thanks. Really appreciate the help. George
  6. My include statement is the following: include ("emailpicks.php?week=$week&user=$user"); The error that I get is: Warning: main(emailpicks.php?week=5&user=ghgarcia) [function.main]: failed to open stream: No such file or directory in /usr/local/4admin/apache/vhosts/lvbash.com/httpdocs/football/entry.php on line 168 The php app emailpicks.php does exist not sure what this error means. Thanks, George
  7. I have a need to call another php application from within another php application and pass it parameters with a value returned. I have attempted to use include but to no avail. Any help would be greatly appreciated. Thanks, George
  8. That's one of the problems I get no errors at all which is strange. If I had an error I could react. Thanks, George
  9. Yes it's part of the mail class. Thanks
  10. I must have something wrong with my code I load my normal variables for my application with a class of football. I then load another php file which loads the other class i.e. require ("mail.inc.php"); // get SMTP information $mail = new MyMailer; The application mail.inc.php does the following: require("class.phpmailer.php"); class MyMailer extends PHPMailer { When I attempt to use any variables i.e. echo $mail->time; nothing is shown. Thanks for your help
  11. Is it possible to have multiple class function within the same application. I have a need to use my current class functions and an additional one to send SMTP emails (PHPMailer) Any help would be greatly appreciated. George
  12. I'm looking for a way to create a popup help window when a field within a form receives focus. I've been able to create a popup on a mouseover to get information but I'd like to now create a help on field focus. Any help would be greatly appreciated. Thanks, George
  13. Not really sure what you mean about cross site scripting. I assume that this has to do with security if that is the case any advice would be greatly appreciated. This was my first attempt at a full blown application so I would like to make it as secure as possible. Thanks, G
  14. I developed a NFL php football pool using PHP and MySql. I'd like to have it tested for any possible problems. You can log in as a user using test and the id and test as the password. You may also register to create your own. If you'd like to test the admin functions login is admin for the id and george for the password (note I will reset the database every night) so feel free to make any changes for testing. There are some functions that will not work until the season starts such as current status and auto update scores/spread. The site is at http://phpfootball.net/footballtest A copy of the software can be made available if requested. Thanks, George
  15. I'm looking for a PHP/MySql Golf tournament application for an event to support my charity. I'm looking for tournament and silent auction applications to support the event. Any help would be greatly appreciated. You can view our site at www.ebanusa.org. Thanks for the help.
×
×
  • 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.