Jump to content

billperrotta

Member
  • Posts

    52
  • Joined

  • Last visited

Everything posted by billperrotta

  1. Now I'm semi up and running how would I create a form like this? I copied the fields from ripoff report.com. I want to be able to create a report with these options see below. It is a complaint form. This whole project has been for a friends consumer reports website. * File a Report Company or Individual Information Company or Individual Information Report Title and Category Report Title and Category Write your Report Write your Report Add Photos Add Photos Submit your Report Submit your Report Company or Individual you are reporting All the information in Step 1 is on the Company or Individual you are reporting. YOU ARE NOT reporting your personal information here. Name of Company or Individual you are reporting: - If you have more than one Company or Individual named in your report, or if the company goes by more than one name (AKA's), put the other names in the "Other Name's" box Name of Company or Individual: Aditional names (AKA's): (optional) Address of Company or Individual you are reporting: - You must enter either a physical street address and/or a web address. - You may enter both, BUT If the Company or Individual is on the Internet and only on-line based, or you don't have a physical address, you MUST enter their Web address Street Address: physical (street) address only, city and state go below Web Address: City, State, Zip Code, and Country of Company or Individual you are reporting: - Multiple cities can be entered for more than one location. - If the Company or Individual is on the Internet and only on-line based, and you have entered the Web address: the city, zip code, and country boxes can be left blank. Enter "Internet" in the State box. City: State/Province: Select Internet if online only. Zip Code: (optional) Country: Phone, FAX, and e-mail address of Company or Individual you are reporting: - This information is not required, but they are good tools for sympathetic Consumers to let the Company or Individual know how they feel about what they did to you and will only help your situation. - This information may also be helpful to other victims reading your Ripoff Report. - The more information you provide, the better. Fax: Phone: E-mail address: Ripoff Report * Home * File a Report * Consumer Resources * Search * Link to Ripoff Report * Privacy Policy * Terms of Service * FAQ * About Us * Contact Us * Why Ripoff Report will not release author information! * Thank You Emails! * Corporate Advocacy Program: How to repair your business reputation. * Ed Magedson - Ripoff Report Founder * Want to sue Ripoff Report? * Donate to our Legal Defense Copyright © 1998-2010, Ripoff Report. All rights reserved.
  2. Also to put a welcome banner is it "<p>Welcome to got a beef?</p>" ?
  3. Not to sound stupid but I am used to adding links with Kompozer. What is the tag to create the link? I just want to create a local html file ie "reportuploads.html" then create a link on the members.php page to it. <html>reportuploads.html<html> ? By the way the last changes work like charm. just need to know how to insert links to other web pages into members.php
  4. Don't want to be that detailed. just want to direct all users with an account, to a central page then I can redirect them to other pages to upload files or add posts.
  5. Thanks those small corrections are in valuable and it works. Now question? How to I insert an html link into members.php or login.php. So that if users that have user accounts I want to link them to another page that will allow them to upload files. I assume I will put all the other important links in index.htm. I plan on trying another tut I found later to create a php file uploader. One weird thing I found login.php stops users without accounts but members.php seems to welcome anyone.
  6. There is no row for any users I am trying to create, even though the db is telling me I am registered. I am lost, It would be nice if this just worked. I saw some downloadable free php scripts for logons. But not sure those include mysql. I will probably look for a downloadable script for file uploading. What do you suggest? I would like to get this working soon. May not be able to get over that rainbow because there are no instructions to create the mysql db for those.
  7. I corrected it moved the dollar sign down to line 8. The register.php appears again, but login.php still says username is incorrect all the time. The test file still says no users in database. here is login.php pasted below. <?php session_start(); include ('mysql.php'); if (isset ($_POST['submit'])) { $username = mysql_escape_string($_POST['username']); $password = mysql_escape_string(sha1 ($_POST['password'])); if (!empty ($username) && !empty ($password)) { $sql = mysql_query ("SELECT * FROM users WHERE username ='" . $username . "' AND user_password='" . $password . "' LIMIT 1"); if (mysql_num_rows ($sql) > 0) { $_SESSION['loggedin'] = true; $_SESSION['username'] = $username; echo 'you are now logged in!'; } else { echo 'your username and/or password is incorrect!'; } } } else { echo '<form action="login.php" method="post"> Username: <input type ="text" name="username" /><br /> Password: <input type="password" name="password" /><br /> <input type="submit" name="submit" value="login" /> </form>'; } ?>
  8. No good. Here is the error "Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /homepages/21/d176117763/htdocs/register.php on line 8" new register.php pasted below <?php include ('mysql.php'); if (isset ($_POST['submit'])) { $username = mysql_escape_string($_POST['username']); $ password = mysql_escape_string(sha1($_POST['password'])); if (!empty ($username) && !empty ($password)) { $sql = mysql_query("INSERT INTO users (username, user_password, user_regdate) Values ($username,$password,time()"); echo 'you are now registered!'; }else{ echo 'you must enter a username and a password!'; } }else{ echo '<form action="register.php" method="post"> Username: <input type="text" name="username" /><br /> Password: <input type="password" name="password" /><br /> <input type="submit" name="submit" value="Register" /> </form>'; } ?>
  9. Where is the change for the register.php can't remember. Can you give me a link?
  10. if I make the host uiserver I get unknown host uiserver. I tried that because the name uiserver is in my command prompt.
  11. got this when server name variable is gotabeef2.com " Could not connect to server ... Lost connection to MySQL server at 'reading initial communication packet', system error: 111"
  12. I changed it to my main oneandone customer id and password and go the same thing. Maybe I should change the server name to gotabeef2.com instead of the server name that the database is giving me?
  13. Could not connect to server ... Access denied for user 'xxxxx'@'xxxxxx' (using password: YES) I omitted the actual username and password. Those are my ssh/ftp password and username. Maybe I should try my main oneandone login password and user name?
  14. When i paste your php test file. getting this " Could not connect to server ... Unknown MySQL server host 'db319013537' (1)" Here is the file you told me to create pasted below, copied straight from an ssh session. maybe I'm doing something wrong see below. <?php // Database Variables $server = 'xx'; $user = 'xx'; $pass = 'xx'; $db = 'xx'; $table = 'users'; // Connect to Database $connection = mysql_connect($db, $user, $pass) or die ("Could not connect to server ... \n" . mysql_error ()); mysql_select_db($db) or die ("Could not connect to database ... \n" . mysql_error ()); ?> <style type="text/css"> td { border:1px solid #000; padding: 10px; } table { border-collapse: collapse; } </style> <?php $result = mysql_query("SELECT * from $table"); if (mysql_num_rows($result) > 0) { // display data in table echo "<table>"; while ($field=mysql_fetch_field($result)) { echo "<th style='text-align:left'>"; echo "$field->name"; echo "</th>"; } echo "</tr>"; while ($row = mysql_fetch_row($result)) { echo "<tr>"; for ($i=0; $i<mysql_num_fields($result); $i++) { echo "<td>"; echo "$row[$i]"; echo "</td>"; } echo "</tr>\n"; } echo "</tr>\n"; } echo "</table>"; } else { echo "nothing in table!"; } ?>
  15. Also here is my register.php below <?php include ('mysql.php'); if (isset ($_POST['submit'])) { $username = mysql_escape_string($_POST['username']); $password = mysql_escape_string(sha1($_POST['password'])); if (!empty ($username) && !empty ($password)) { $sql = mysql_query("INSERT INTO users (user_id, username, user_regdate) Values (0,$username,$password,time()"); echo 'you are now registered!'; }else{ echo 'you must enter a username and a password!'; } }else{ echo '<form action="register.php" method="post"> Username: <input type="text" name="username" /><br /> Password: <input type="password" name="password" /><br /> <input type="submit" name="submit" value="Register" /> </form>'; } ?>
  16. wish i could but it it's a friends web site. browse won't work. but if i edit and query i get see below
  17. the users names are not showing up see image The server name database name then table name. What should I check next?
  18. That worked. Brackets only on the session statement. Thanks.
  19. " I have no idea how to view the username through the sha1 function. All I know is that I can view the database through php myadmin on oneandone's website. It is a username not correct error. I also have no idea how to view usernames that have been added to the database" Suggestions are appreciated. I also have no idea how to view it from the linux command line either" The Database is in Mysql
  20. was usising hal0mods. will try a dictionary word see if that works. No good same difference. could a zero throw it off? yes username/password incorrect message. here is my login.php below <?php session_start(); include ('mysql.php'); if (isset ($_POST['submit'])) { $username = mysql_escape_string($_POST['username']); $password = mysql_escape_string(sha1 ($_POST['password'])); if (!empty ($username) && !empty ($password)) { $sql = mysql_query ("SELECT * FROM users WHERE username ='" . $username . "' AND user_password='" . $password . "' LIMIT 1"); if (mysql_num_rows ($sql) > 0) { $_SESSION['loggedin'] = true; $_SESSION['username'] = $username; echo 'you are now logged in!'; } else { echo 'your username and/or password is incorrect!'; } } } else { echo '<form action="login.php" method="post"> Username: <input type ="text" name="username" /><br /> Password: <input type="password" name="password" /><br /> <input type="submit" name="submit" value="login" /> </form>'; } ?>
  21. Changed logout.php to this, nothing changed got same error, see below. <?php Session_start(); if ($_SESSION['loggedin'] == true) { unset $_SESSION; session_destroy(); } echo 'you are now logged out'; ?>
  22. Please see this url My link not sure what to do next
×
×
  • Create New...