Jump to content
Larry Ullman's Book Forums

Zrakot

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Zrakot

  • Rank
    Newbie
  1. Paul - Thank you. I like the idea of using sessions, and will do research to try to figure out how to do it. Many thanks for your help and quidance. Best wishes. Mary -
  2. Paul - I like your approach as it is more secure. Will definitely give it a try. Maybe you can help me with something else... Following a user's successful login - I would like to present he or she with a multi-page form. Upon submitting the multi-page form, the user's input should be stored in his or her mysql record. Can you explain how this can be accomplished? Sessions? Also, I would like for the user to be able to view, change, etc. his or her data input. How do I go about doing that? Many thanks. Mary -
  3. All - I have opted to change the code from: require $_SERVER['DOCUMENT_ROOT'] . '../mysqli_connect.php'; to: require ('mysqli_connect.php'); Still can not explain what the problem was, but it is now resolved using the modified code above. If anyone can tell me what the problem was ... it would be very instructive and appreciated. Thank you. Mary -
  4. Jonathon - Here is the code I'm using to access mysqli_connect (in Register.php): // Need the database connection: require $_SERVER['DOCUMENT_ROOT'] . '../mysqli_connect.php'; Here, for your reference, is the entire set of code for Register.php: <?php # Script 18.6 - register.php // This is the registration page for the site. require ('includes/config.inc.php'); $page_title = 'Register'; include ('includes/header.html'); if ($_SERVER['REQUEST_METHOD'] == 'POST') { // Handle the form. // Need the database connection: require $_SERVER['DOCUMENT_ROOT'] . '../mysqli_con
  5. Jonathon - Great question. I have no idea why the full stop/period/dot keeps getting inserted! The app is live on a hosted, shared server from 1and1.com. Any thoughts? Thanks. Mary -
  6. Paul & Jonathon - Thanks for your replies. Still having problems ... My site structure is as follows: Main Directory ... contains the (1) HTML directory, and the (2) mysqli_connect.php file HTML Directory ... contains the (1) include directory, and the following files: activate.php change_password.php forgot_password.php index.html index.php login.php logout.php register.php INCLUDE Directory ... contains the following files config.inc.php footer.html header.html layout.css I continue to have problems with the Registration script, and get the fol
  7. Josee - I will give your suggestion a try, and circle back to the forum with the results. Many thanks for your help. Mary -
  8. Larry & Forum Members - Sure could use some help. I'm building a Registration application, per the instructions in Larry's book (4th Edition), but continue to receive the following error message following registration: User Registration An error occurred in script '/homepages/41/d12345679/htdocs/mysite/login5/htdocs/register.php' on line 10: require(/kunden/homepages/41/d12345679/htdocs/mysite./mysqli_connect.php) [function.require]: failed to open stream: No such file or directory Date/Time: 1-10-2012 12:17:21 Array ( [GLOBALS] => Array *RECURSION* [_ENV] => Array (
×
×
  • Create New...