I have been trying to find a simple name and password tutorial that works and is easy to follow. Not having much luck.
The name and password will be in a text file or mysql database which the user will be given, i do not need forgot password or email address etc. ( I can add later if need be)
I want members to log-in which will then give them a form to fill in and send. (About 5 members so not a lot)
PHP5 and MySql 5 and apache installed and hopefully working correctly this end.
I have managed to make a form and use php to extract and send the form data to an e-mail address with a thank-you going to the actual persons e-mail address on the form they filled in so I am hoping this will be quite easy to do.
Take it slowly with me as still green at coding all this.
stealthmode
0
Newbie Poster
Recommended Answers
Jump to PostHopefully this should get you started. I've commented the code to make understanding easier, let me know if you've any questions; I'm here to help!
<?php session_start(); if (isset($_POST['submit'])) { // Connect to the database or die. $connection = mysql_connect("DB-ADDRESS", "USERNAME", "PASSWORD"); if (!$connection) { die("The Database …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.