Jump to content

sippy

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Everything posted by sippy

  1. thanks for the help, I will learn or hire for sure but you didn't take the url out in your earlier post, it's still there, right after the Apache/1.3.33 Server at can you delete it still?
  2. hey, I found a file with the same name but 'OLD' appended to the name, this may offer some clues: <?php #login page include('sqlConn.php'); include('functions.php'); if(isset($_POST['submit'])){ $username = $_POST['userName']; $password = md5($_POST['passWord']); #check username and password in DB $query = "SELECT * FROM users WHERE userName='$username' AND password='$password'"; $results = $db->query($query); if($results->num_rows == 1){ #successful login processed $cookieString = encrptText($username); setcookie('loginCookie', $cookieString, time()+3600); $status = 'Welcome<br />'; $links = '<a href="createVendorPage.php" target="mainFrame">Create Vendor</a> <br /><br /> <a href="manageVendor.php" target="mainFrame">Manage Vendor</a> <br /><br /> <a href="sponsoredLink.php" target="mainFrame">Sponsored Links</a> <br /><br /> <a href="manageCategories.php" target="mainFrame">Manage Categories</a> <br /><br /> <a href="createUser.php" target="mainFrame">Create User</a> <br /><br /> <a href="logout.php" target="mainFrame">Logout</a> <br /><br />'; $status .= $links; } else { #unsuccessful login attempt $status = "Invalid User Name or Password"; } } ?> <!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=UTF-8" /> <title>Admin Links</title> </head> <body>
  3. curtis, yes, I did post the same code and the updated version. what do you think i ought to try next? and do you mind deleting the url in your post, I'd rather not have it here?
  4. yes, I am loading the page without submitting anything. what is the code below?
  5. thanks curtis, I tried it again and got a different error: Not Found The requested URL /<br /><b>Notice</b>: Undefined variable: sidebar in <b>/html/admin.php</b> on line <b>39</b><br /> was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.33 Server at Port 80
  6. yeah, I got nothing. I have no idea what php/server installation I have. First, I don't think I have any php loaded onto my local machine. Obviously the server must have php on it. I downloaded all the files from the server and am using that in dreamweaver. the programmer who did this is now gone and I am stuck trying to figure the whole thing out. And nothing comes with dreamweaver.
  7. yes, I have Windows. I searched and didn't find it,
  8. ok, keep in mind I am a dummy and totally new to php, I tried to find a php.ini file but had no luck. I have no development env, I just have dreamweaver with a ton of php files that make up this big app, so near with me. and thanks for trying. I did add it to the top of my script and here's the output now: Fatal error: Call to undefined function set_ini() in /home/content/p/a/r/parent411/html/admin.php on line 2
  9. gevans, thanks, i tried it but still the page shows up blank curtis, where do you think the logs would be? i ftp'd to the server and looked and there are no logs files.
  10. I am totally new to php (and this forum) but used to code in java a while ago. I have an app I am trying to figure out and the first thing is a simple username/password login page that I can't get the two text fields to show up when I browse to the php page. It used to work so I am not sure what is going on. Below is all the code that makes up this login php page. But, if you upload this to a web server and try to browse to it, the page appears blank. No text fields show up but should. Is there something in the functions.php file I should be looking at or something? Can someone help me with this please? <?php #login page include('sqlConn.php'); include('functions.php'); if(isset($_POST['submit'])){ $username = $_POST['userName']; $password = md5($_POST['passWord']); #check username and password in DB $query = "SELECT * FROM users WHERE userName='$username' AND password='$password' LIMIT 1"; $results = $db->query($query); if($results->num_rows == 1){ #successful login processed $cookieString = encryptText($username); setcookie('loginCookie', $cookieString, time()+21600); #$status = 'Welcome<br />'; $sidebar = 'links.php'; } else { #unsuccessful login attempt $sidebar = 'baduser.html'; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Admin Console</title> </head> <frameset cols="200,*" frameborder="no" border="0" framespacing="0"> <frame src="<? echo $sidebar; ?>" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" /> <frame src="about:blank" name="mainFrame" id="mainFrame" title="mainFrame" /> </frameset> <noframes><body> <? echo $status; ?> </body> </noframes></html>
×
×
  • 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.