Results 1 to 3 of 3

Thread: Auto loading SQL database on Website

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2010
    Posts
    1

    Unhappy Auto loading SQL database on Website

    Hi,

    I have a (html) FORM (MEMBERSHIP) on my website to aquire new members names, addresses, city, state, zip and e-mail addresses. I created a (PHP) FORM (processphp) to recieve the data and auto load it to MYSQL database.
    the (processphp) webpage gives the message: "Your information has been successfully added to the database" and there is a tab below that reads "CONTINUE".

    When I fill in the membership form and submit it - I get the message, "This webpage can not be found".

    -------------------------------------------------------------------------

    <form action= "process.php" method="post"> MEMBERSHIP
    Name:<br><input type="text" name="name"><br>
    User Name:<br><input type="text" name="name"><br>
    Password: <br><input type="text" name="password"><br>
    Address: <br><input type="text" name="Address"><br>
    City: <br><input type="text" name="City"><br>
    State: <br><input type="text" name="State"><br>
    Zip: <br><input type="text" name="Zip"><br>
    E-mail: <br><input type="text" name="E-mail"><br>
    <input type="submit" value="submit">
    </form>
    --------------------------------------------------------------
    <?
    $name=$_POST[ ' name ' ]; process.php
    $user name=$_POST[ ' user name ' ];
    mysql_connect ("justhost.com/skywayeagles.com","username", "password" )or die (mysql_error());
    mysql_select_db (username_MEMBERSDB) or die (mysql_error());
    mysql_query ("INSERT INTO 'data' VALUES ( ' $name ', ' user name ' ,)");
    ?>
    "Your information has been successfully added to the database."

    Can anyone give me an idea as what is wrong or is there a better way to do this???

    Thanks

    James
    Last edited by MartinLiss; Mar 17th, 2010 at 05:17 PM.

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Auto loading SQL database on Website


    The CodeBank isn't for questions. Let me know what language you are using for this (PHP?) and I'll move this thread to the proper forum. I also removed you email address from your post since it will just attract spam.

  3. #3
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Auto loading SQL database on Website

    Make sure process.php is in the correct directory and that you are pointing to the correct location where process.php is stored in the form code.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width