Jump to content

Php.ini file?


Html

Recommended Posts

  • Replies 97
  • Created
  • Last Reply

Top Posters In This Topic

basic login authentication, using a array to store user data as a temporary measure. edit script from Wrox PHP book. This does not include adding users, as i said, it uses a array. and the code will completely different.

profile.page: with included authentication script, and array script

<?php
include 'auth_inc.php';
include 'standInForDatabase.php';
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" id="viewport" content="target-densitydpi=high-dpi,initial-scale=1.0,user-scalable=no" />
        <title>Template Page</title>
        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
        <script  type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
        <script type="text/javascript">

        </script>
        <style type="text/css">
            .topLogOut {position: fixed; right: 0; top:0;margin: 15px;}
            #wrapper {width: 60%; margin: 0 auto;}
        </style>
    </head>
    <body>
        <div id="wrapper">
            <div class="topLogOut"><form action="logout.php" method="get">
                    <input type="hidden" name="redirect" value="<?php $_SERVER['PHP_SELF']; ?>">
                    <input type="submit" value="Logout">
                </form></div>
            <h1> Welcome logged in user "<?php echo $userArray[$user_id][1]; ?>" to the Profile template page</h1>
            <p>Name: <?php echo $userArray[$user_id][1]; ?></p>
            <p>Email <?php echo $userArray[$user_id][3]; ?></p>
            <div><h2>Comment</h2><?php echo $userArray[$user_id][4]; ?></div>
        </div>
    </body>
</html>

auth.inc.php

<?php
session_start();
if (isset($_SESSION['logged']) && $_SESSION['logged'] == 1) {
    //do nothing
} else {
    $redirect = $_SERVER['PHP_SELF'];
    $_SESSION['redirect'] = $_SERVER['PHP_SELF'];
    header('Location: login.php?redirect=' . $redirect);
    /* header('Refresh: 5; URL=login.php?redirect=' . $redirect);
      echo 'You are being redirected to the login page!<br>';
      echo 'If your browser doesn\'t support this, <a href="login.php?redirect=' . $redirect . '">Click here</a>'; */
    die();
}
?>

standInForDatabase.php

$userArray = [
    [5, 'wroxbooks', 'wroxbooks', 'wroxbooks@wroxbooks.com', '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>'],
    [11, 'thatbook', 'thatbookp', 'thatbook@thatbook.com', '<p>Fusce convallis, mauris imperdiet gravida bibendum, nisl turpis suscipit mauris, sed placerat ipsum urna sed risus. In convallis tellus a mauris. Curabitur non elit ut libero tristique sodales. Mauris a lacus. Donec mattis semper leo. In hac habitasse platea dictumst. Vivamus facilisis diam at odio. Mauris dictum, nisi eget consequat elementum, lacus ligula molestie metus, non feugiat orci magna ac sem. Donec turpis. Donec vitae metus. Morbi tristique neque eu mauris. Quisque gravida ipsum non sapien. Proin turpis lacus, scelerisque vitae, elementum at, lobortis ac, quam. Aliquam dictum eleifend risus. In hac habitasse platea dictumst. Etiam sit amet diam. Suspendisse odio. Suspendisse nunc. In semper bibendum libero.</p>'],
    [43, 'otherbook', 'otherbookp', 'otherbook@otherbook.com', '<p>Proin nonummy, lacus eget pulvinar lacinia, pede felis dignissim leo, vitae tristique magna lacus sit amet eros. Nullam ornare. Praesent odio ligula, dapibus sed, tincidunt eget, dictum ac, nibh. Nam quis lacus. Nunc eleifend molestie velit. Morbi lobortis quam eu velit. Donec euismod vestibulum massa. Donec non lectus. Aliquam commodo lacus sit amet nulla. Cras dignissim elit et augue. Nullam non diam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In hac habitasse platea dictumst. Aenean vestibulum. Sed lobortis elit quis lectus. Nunc sed lacus at augue bibendum dapibus.</p>']];

if (isset($_SESSION['user_id']) && !empty($_SESSION['user_id'])) {
    foreach ($userArray as $key => $row) {

        if ($userArray[$key][0] == $_SESSION['user_id']) {

            $user_id = $key;
        }
    }
}

login.php

<?php
session_start();
$_SESSION['logged'] = 0;

include 'standInForDatabase.php';

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (isset($_POST['submit'])) {
        foreach ($userArray as $key => $value) {

            if ($userArray[$key][1] === $_POST['username'] && $userArray[$key][2] === $_POST['password']) {
                //$user_id = $key;
                $_SESSION['user_id'] = $userArray[$key][0];

                $arrayUsername = $userArray[$key][1];
                $arrayPassword = $userArray[$key][2];


                break;
            }
        }
        if ($arrayUsername === $_POST['username'] && $arrayPassword === $_POST['password']) {
            $redirect = $_POST['redirect'];
            $_SESSION['logged'] = 1;

            header('Location:' . $redirect);
            /* header('Refresh: 5; URL=' . $_POST['redirect'] . '');
              echo 'You are being redirected to your original page request!<br>';
              echo 'If your browser doesn\'t support this, <a href="' . $_POST["redirct"] . '">Click here</a>'; */
        } else {
            $redirect = $_POST['redirect'];
            $htmlinvalid = <<<INVALIDLOGINHTML
               <!DOCTYPE html>
                <html>
                    <head>
                        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                        <meta name="viewport" id="viewport" content="target-densitydpi=high-dpi,initial-scale=1.0,user-scalable=no" />
                        <title>Invalid logon</title>
                        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
                        <script  type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
                        <script type="text/javascript">

                        </script>
                        <style type="text/css">

                        </style>
                    </head>
                    <body>
                        <div>
                            <p>Invalid Username and/or Password</p>
                            <form action="login.php" method="post">
                                <input type="hidden" name="redirect" value="$redirect">
                                <p><input type="text" name="username"></p>
                                <p><input type="password" name="password"></p>
                                <p><input type="submit" name="submit" value="Login"></p>
                            </form>
                        </div>
INVALIDLOGINHTML;
            echo $htmlinvalid;
        }
    }
} else {
    if ($_SERVER["REQUEST_METHOD"] == "GET") {
        $redirect = $_GET['redirect'];
    } else {
        $redirect = 'index.php';
    }
    ?>
    <!DOCTYPE html>

    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <meta name="viewport" id="viewport" content="target-densitydpi=high-dpi,initial-scale=1.0,user-scalable=no" />
            <title>Valid Login required</title>
            <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
            <script  type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
            <script type="text/javascript">

            </script>
            <style type="text/css">

            </style>
        </head>
        <body>
            <div>
                <p>You must be logged on to view this page</p>
                <form action="login.php" method="post">
                    <input type="hidden" name="redirect" value="<?php echo $redirect; ?>">
                    <p><input type="text" name="username"></p>
                    <p><input type="password" name="password"></p>
                    <p><input type="submit" name="submit" value="Login"></p>
                </form>
            </div>
            <?php
        }
        ?>

    </body>
</html>

logout.php

<?php

session_start();
$redirect = $_SESSION['redirect'];
// Delete certain session
//unset($_SESSION['username']);
// Delete all session variables

session_destroy();

// Jump to login page
header('Location: ' . $redirect);

As you can see the passing of data from one to other pages, uses POST & GET from forms and links, as well as sessions.

Link to comment
Share on other sites

I pasted that bit of code from Justsomeguy, it didn't actually do anything, it stopped the page from working, so I removed it.

It's an example, I don't expect you to just copy and paste any code I write.  You should look at the code to understand what it's doing, that's what I'm trying to illustrate.  Like I mentioned in that post, "if you have a PDO object connected to your database" then that's one way you might list accounts.  If you haven't created a PDO object and connected it to your database before you tried to run that code, or if your database doesn't have the structure that code expects, then it's not going to work.  That's why I want you to understand the concept instead of just copying and pasting code into your project.

Link to comment
Share on other sites

Right, I thought that was the key to the problem.

 So now the login page requires the code he has pasted, catered to what I have there or use that and edit it.

 

Link to comment
Share on other sites

Okay, that wasn't any help.

I wanted to inquire, what about secure transfer for data, like a secure connection. I don't have one of those on the host I am using.

 

Link to comment
Share on other sites

Hmm, so what can you inform on this, what do I need to do to have a padlock for just simply registering to begin with, that wasn't on the free host or the paid host I am using.

Link to comment
Share on other sites

I can't speak to your particular host, but in general you create a certificate signing request on your server, then buy a certificate with the CSR from a reputable certificate authority, and when you get the certificate from the CA you install it on your server.  That will allow your server to encrypt traffic.  It is not possible to do this on a web server that serves multiple domains from the same IP address, only one of those domains can have a certificate on it (or, more specifically, it will try to encrypt all traffic using a certificate for a single domain).  So each secured domain needs a dedicated IP address.

Link to comment
Share on other sites

Ah I see,

The host I use, has a plan for £50 for a year or something. I use a basic £11.39p hosting per month, only when I can, so I have to cancel if I don't have that amount. So this certificate authentication isn't really cheap, it is separate from a package. The free host I use is ad based, and just for the testing, has no real features, sub domains, but that is it, free forum packages and all that, but pretty pointless in learning php 7/mysql.

Obviously I'm trying to create an account registration site, so something really basic like I've stated in the previous posts, sadly I can't get anywhere with this.

The whole certificate cost is out of the question, I can only just try and make the site work. I'm stuck with that.

Link to comment
Share on other sites

  • 3 weeks later...

I had a look back at the example post there.  This is the logout from the files I downloaded from a youtube clip a few months ago, it works, but doesn't login to a profile section, it logins for a confirmation, but I changed that to no longer have that, but I want for any new registration names which are the accounts, as I stated in the previous posts.

 

This is the logout from the files.

<?php
/* Log out process, unsets and destroys session variables */
session_start();
session_unset();
session_destroy(); 
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Error</title>
  <?php include 'css/css.html'; ?>
</head>

<body>
    <div class="form">
          <h1>Thanks for stopping by</h1>
              
          <p><?= 'You have been logged out!'; ?></p>
          
          <a href="index.php"><button class="button button-block"/>Home</button></a>

    </div>
</body>
</html>

 

So this isn't included, this example is some sort of array, I'm going to need something like this to do what, connect with a sql database, which the numbers are lists int he db.

$userArray = [
    [5, 'wroxbooks', 'wroxbooks', 'wroxbooks@wroxbooks.com', '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>'],
    [11, 'thatbook', 'thatbookp', 'thatbook@thatbook.com', '<p>Fusce convallis, mauris imperdiet gravida bibendum, nisl turpis suscipit mauris, sed placerat ipsum urna sed risus. In convallis tellus a mauris. Curabitur non elit ut libero tristique sodales. Mauris a lacus. Donec mattis semper leo. In hac habitasse platea dictumst. Vivamus facilisis diam at odio. Mauris dictum, nisi eget consequat elementum, lacus ligula molestie metus, non feugiat orci magna ac sem. Donec turpis. Donec vitae metus. Morbi tristique neque eu mauris. Quisque gravida ipsum non sapien. Proin turpis lacus, scelerisque vitae, elementum at, lobortis ac, quam. Aliquam dictum eleifend risus. In hac habitasse platea dictumst. Etiam sit amet diam. Suspendisse odio. Suspendisse nunc. In semper bibendum libero.</p>'],
    [43, 'otherbook', 'otherbookp', 'otherbook@otherbook.com', '<p>Proin nonummy, lacus eget pulvinar lacinia, pede felis dignissim leo, vitae tristique magna lacus sit amet eros. Nullam ornare. Praesent odio ligula, dapibus sed, tincidunt eget, dictum ac, nibh. Nam quis lacus. Nunc eleifend molestie velit. Morbi lobortis quam eu velit. Donec euismod vestibulum massa. Donec non lectus. Aliquam commodo lacus sit amet nulla. Cras dignissim elit et augue. Nullam non diam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In hac habitasse platea dictumst. Aenean vestibulum. Sed lobortis elit quis lectus. Nunc sed lacus at augue bibendum dapibus.</p>']];

if (isset($_SESSION['user_id']) && !empty($_SESSION['user_id'])) {
    foreach ($userArray as $key => $row) {

        if ($userArray[$key][0] == $_SESSION['user_id']) {

            $user_id = $key;
        }
    }
}

 

Edited by Html
Link to comment
Share on other sites

Well my task hasn't changed, I want a registration name which becomes an account profile to have it's own comment box to post to a db, which then displays that on a profile index page, along with  a upload image feature. Eventually with the ability to have a message inbox, outbox system. Seems the correct path to go for the moment.

 

Link to comment
Share on other sites

Ok, I guess I'm not sure what the above code has to do with that then.

The steps are pretty simple.  Step 1 is set up a registration form to capture all of the details you want to store about each user.

Step 2 is the code to process that form, validate the data, and add the new user to the database (plus any post-registration actions, like sending an email).

Step 3 is a login form and the code to process it, where you get a username and password, verify it, and set the session variables so you know which user is logged in.

Step 4 is a text box for the user to enter a comment, and the code to get that form data, validate, and add it to the database.  This page could also display the existing comments.

Step 5 would be the file upload form and processing code.

 

So, this isn't that complex.  You need a few forms, and the code to process them.  You need to learn and understand the basics of processing form data with PHP, the basics of interacting with a database, and how to use the session.  That's really all this is, minus the extra work to process an uploaded file.

You can find several of those basic tutorials here:

https://www.w3schools.com/php/php_forms.asp

https://www.w3schools.com/php/php_mysql_intro.asp

https://www.w3schools.com/php/php_sessions.asp

https://www.w3schools.com/php/php_file_upload.asp

If you haven't made much progress over the past 2 weeks, I think you need to rethink the Youtube video strategy.

Link to comment
Share on other sites

I haven't touched any of this since I last posted here, I don't know what to do.

I've read a little of those links, yeah I mean I need video, that is much better.

As for the email link, and all that, I did remove that, so once registered, logged into profile.php it just has a textbox, and has a statement stating account created, which remains there. So from there, I want to be able to post to the registered name, now the profile.php requires a session for that user, that is obviously what is missing from the profile.php I pasted last month here.

 

<?php
/* Displays user information and some useful messages */
session_start();

// Check if user is logged in using the session variable
if ( $_SESSION['logged_in'] != 1 ) {
  $_SESSION['message'] = "You must log in before viewing your profile page!";
  header("location: error.php");    
}
else {
    // Makes it easier to read
    $first_name = $_SESSION['first_name'];
    $last_name = $_SESSION['last_name'];
    $email = $_SESSION['email'];
    $active = $_SESSION['active'];
}

$user_id="";

if ($_SERVER["REQUEST_METHOD"] == "GET") {
if (isset($_GET["id"])) {
$user_id=$_GET["id"];
}

///process profile to id retrieved

}

date_default_timezone_set('Europe/London');
include 'comments.php.inc';
include 'connect.inc.php';
?>
<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>Welcome <?= $first_name.' '.$last_name ?></title>
  <?php include 'css/css.html'; ?>
</head>

<body>
  <div class="form">

          <h1>Welcome</h1>
          <a href="profile.php?id=<?php echo $user_id; ?>"><button class="button button-block" name="View profile"/>View profile</button></a>
          <br>
          <p>
          <?php 
     
          // Display message about account verification link only once
          if ( isset($_SESSION['message']) )
          {
              echo $_SESSION['message'];
              
              // Don't annoy the user with more messages upon page refresh
              unset( $_SESSION['message'] );
          }
          
          ?>
          </p>
          
          <?php
          
          // Keep reminding the user this account is not active, until they activate
          if ( !$active ){
              echo
              '<div class="info">
              Account Created!
              </div>';
          }
          
          ?>
          <?php echo
           "<form method='POST' Action='".setComments."'>
           <input type='hidden' name='uid' value=''>
           <input type='hidden' name='date' value='".date('Y-m-d H:M:S')."'>
           <textarea name='message'></textarea>
           <button type='submit' name='commentSubmit'>Comment</button>
           </form>";
             ?>
          <h2><?php echo $first_name.' '.$last_name; ?></h2>
          <p><?= $email ?></p>
          
          <a href="logout.php"><button class="button button-block" name="logout"/>Log Out</button></a>

    </div>
    
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/index.js"></script>

</body>
</html>

The bottom section was from the video example, so you can see that textbox area, that doesn't work goes to 404, but yeah, that was a problem. But the comments needed to go with the right name.

 

There is also a verify php page, as you stated an email verification required more of a technical change that a web host wouldn't permit, so as stated I removed that part, I doubt that is still needed for my small task.

<?php 
/* Verifies registered user email, the link to this page
   is included in the register.php email message 
*/
require 'db.php';
session_start();

// Make sure email and hash variables aren't empty
if(isset($_GET['email']) && !empty($_GET['email']) AND isset($_GET['hash']) && !empty($_GET['hash']))
{
    $email = $mysqli->escape_string($_GET['email']); 
    $hash = $mysqli->escape_string($_GET['hash']); 
    
    // Select user with matching email and hash, who hasn't verified their account yet (active = 0)
    $result = $mysqli->query("SELECT * FROM users WHERE email='$email' AND hash='$hash' AND active='0'");

    if ( $result->num_rows == 0 )
    { 
        $_SESSION['message'] = "Account has already been activated or the URL is invalid!";

        header("location: error.php");
    }
    else {
        $_SESSION['message'] = "Your account has been activated!";
        
        // Set the user status to active (active = 1)
        $mysqli->query("UPDATE users SET active='1' WHERE email='$email'") or die($mysqli->error);
        $_SESSION['active'] = 1;
        
        header("location: success.php");
    }
}
else {
    $_SESSION['message'] = "Invalid parameters provided for account verification!";
    header("location: error.php");
}     
?>

 

Link to comment
Share on other sites

The bottom section was from the video example, so you can see that textbox area, that doesn't work goes to 404, but yeah, that was a problem.

That means you gave the form action a URL that doesn't exist.

But the comments needed to go with the right name.

No problem, you're already tracking the user ID.  You're not passing that value in the comment form though, which you should be doing.

Link to comment
Share on other sites

Sure, and I tried to get a comment section working, but the video tutorial didn't go into detail or something was a bit different, and it didn't work out.

I then tried to get a profile.php to display that name once registered, like a link, that was the last task I tried with you and the other user gave me some points, but I couldn't that going, I don't know the theory, and there aren't any examples on youtube about this in particular, how to display a profile index of a registered name.

That is going to be needed, once a comment is posted, as that is where they could be viewable, I guess they could be seen in the profile login section, but that isn't really the task.

 

 

Link to comment
Share on other sites

I don't know the theory, and there aren't any examples on youtube about this in particular

That is a concise statement of the problem I'm seeing.  Like I've pointed out a few times, these short tutorials will not teach you theory.  They are shallow.  Combine that with the fact that theory is required to be able to do this, and you see my issue with trying the "get rich quick" method of learning how to program.  While I admit that you may have some genetic mutation which causes your brain to learn things substantially differently than the rest of humanity, I think that if you apply yourself with one or two authoritative books in time chunks as large as you can make them, you will find a much, much larger return on your time and investment than you'll get from any number of short tutorials.  Humans have spent hundreds of thousands of years finding out what works for us, and studies show that, by far, people still learn the same ways.  This may be a case of you not wanting to adjust your life to the requirements of learning, and instead you're looking for something which appears to be learning which fits into your existing life so you don't have to adjust.  The problem is that you aren't actually learning anything, you're just spinning your wheels.  Everything you're talking about is just building a form, processing the form, and using a database.  The pieces of the solution are small and simple, but you need to learn how they work if you're going to be able to combine them into the more complex things you want to do.  This is how every other programmer learns.

Link to comment
Share on other sites

I viewed Amazon UK for books, they aren't many there. Some are too expensive.

When i was in college eleven years back, the course manager expressed that he was more of a visual learner, he wasn't good with website design, he was more into Visual studio, so VB.net, and Visual basic.

It was one of those year courses, that teach a little theory, and some practical on networking like LANs, and all that sort of stuff. I couldn't go further with it, I was lucky to pass the course, as it required certain certificate results I didn't have. I then tried to keep at web design, back then just as youtube arrived, and visual basic, but I gave up on that, as time went along. There were other problems at the time, so it wasn't practical in the end.

I feel like I'm at square one, I guess we all have genetic problems LOL, some manifest at some point or another. But I guarantee, nobody on that course I was on succeeded with IT, they just weren't the stereotypes, I could tell my course manager had no faith in them or eventually myself, as time went by.

And some didn't even like the subject, it was just a try. When I was on the course before, the year before that, it was full of under achievers, so yeah, to go up the ropes, in subjects that require you know, somebody who works at facebook, or one of those infamous hackers out there, who may of been real great with languages, ended up dead because of their madness, and illegality. Bit off topic here.

Right, so what should I do then, okay, what book would you suggest?

Link to comment
Share on other sites

  • 3 weeks later...

I did get a copy of this book, I'm still not quite sure where to go.

Like I've repeated in the past posts, I have a login system which obviously works, but what it doesn't do is send comments from a profile page, that would be an internal one, not an index of a profile.

The chapters in the book have 7, and 8

Making web forms is 7, which I have one already, and 8 is remembering information and databases.  10 is cookies and sessions.

It is still all meters apart to me.

Link to comment
Share on other sites

You need to understand how to break the problem down.  "Send comments from a profile page" is not a technical term, you need to break down what is actually happening.  At the base level all this is, is processing submitted form data, putting data into a database, and getting it out to display on a page.  That's all it is, if you're looking for a chapter on "how to send comments from a profile page" you're not going to find one.  You need to describe specifically what you're trying to do, break it down and make a plan on how to build it, and then figure out how to do each of the small tasks that it takes to get it done.  Don't look at it as some single monumental task, break it down into the individual steps that make it up.

Link to comment
Share on other sites

How do I do that then?

I've pasted the code examples, of what I have, this book explains in chapters information about php, and what each example does, but I don't get the whole relation to what I have. This is one of the reasons I would of preferred video, but that isn't an option for the moment.

The more I think about this, it seems like I'm only going to get as far as getting a profile to send comments to an index, I'm going to need some examples, I know that doesn't really help me.

Link to comment
Share on other sites

You need to clearly design what you're trying to do, start there.  When you say "getting a profile to send comments to an index", you need to be technical about what specifically you are trying to do.  A profile is not a thing which "sends" data to any other page.  What it does is read form data, validate it, and add it to a database.  And, on the other page, you read the data from the database and display it on the page.  You need to break the problem down until it is in small enough pieces, like "get form data", or "insert into database", that you can figure out how to do each one.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...