odomike
Oct 15 2004, 12:46 AM
Ok .... I have this log-in form on my HomePage. It was designed with PHP scripting, but it aint working. It simply doesnt respond to your log-in command. Can someone please help me with the exact code to make it work? Here is the code for the log-in form... QUOTE <TD align=middle colSpan=2 style="font-family: Arial, Helvetica, sans-serif" bgcolor="#CCCCCC"> <font face="System" size="2">Forum Log-in</font></TD></TR> <TR> <TD align=right width="45%" style="font-family: Arial, Helvetica, sans-serif" bgcolor="#CCCCCC"><SPAN class=gen><font face="Tahoma" size="2" color="#000000"> Username:</font></SPAN></TD> <TD style="font-family: Arial, Helvetica, sans-serif" bgcolor="#CCCCCC"> <INPUT maxLength=40 size=20 name=username style="text-indent: 2px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; font-family: Arial, Helvetica, sans-serif; color: #1a2640; border-color: #ffffff"> </TD></TR> <TR> <TD align=right style="font-family: Arial, Helvetica, sans-serif" bgcolor="#CCCCCC"><SPAN class=gen> <font size="2" face="Tahoma" color="#000000">Password:</font></SPAN></TD> <TD style="font-family: Arial, Helvetica, sans-serif" bgcolor="#CCCCCC"> <INPUT type=password maxLength=32 size=20 name=password style="text-indent: 2px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; font-family: Arial, Helvetica, sans-serif; color: #1a2640; border-color: #ffffff"> </TD></TR> <TR align=middle> <TD colSpan=2 style="font-family: Arial, Helvetica, sans-serif" bgcolor="#CCCCCC" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF"><SPAN class=gen> <font color="#000000" size="2" face="Tahoma">Auto-Log me on each visit:</font><font color="#000000"> <INPUT type=checkbox name=autologin value="ON" style="text-indent: 2px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; font-family: Arial, Helvetica, sans-serif; border-color: #ffffff"></font></SPAN></TD></TR> <TR align=middle> <TD colSpan=2 style="font-family: Arial, Helvetica, sans-serif" bgcolor="#CCCCCC"> <INPUT class=mainoption type=submit value="Log in" name=login style="font-family: Tahoma; font-size: 10pt"></TD></TR> <TR align=middle> <TD colSpan=2 style="font-family: Arial, Helvetica, sans-serif" bgcolor="#CCCCCC"><SPAN class=gensmall><A class=gensmall href="http://www.odowebdesigns.uni.cc/forums/profile.php?mode=sendpassword"> <font color="#003C5E" face="Tahoma"><u>I forgot my password</u></font></A></SPAN></TD> If there is a way you can help me make that work, I will be most grateful to you. Or alternatively, if you know about any other php log-in scripting that can log-in into a forum and how to make that work, I will gladly accept it. Thanks in advance. I am anxiously waiting for your replies.
Reply
rowita
Oct 15 2004, 07:41 AM
Wher is <FORM> TAG ??? Your INPUT TAGs should be in <FORM> TAG : CODE <FORM method="POST" action="<? echo $_SERVER['PHP_SELF']; ?>">
If you want to process in the current file. or CODE <FORM method="POST" action="http://www.odowebdesigns.uni.cc/forums/login.php">
If you want it on another file like "login.php" You can get the values with: CODE $_POST['name']);
Reply
rowita
Oct 15 2004, 07:49 AM
odomike
Oct 15 2004, 11:30 PM
QUOTE(rowita @ Oct 15 2004, 07:49 AM) Thanks for the links rowita. I will try and see whether i can do every other thing myself. If i get stuck, i will holla back in this thread. Thanks once again.
Reply
filipc
Oct 23 2004, 05:03 AM
This codee will help...it work. CODE <?php //You must INCLUDE file config.php , in config.php user and pass @include('config.php'); //Administration Panel session_start();
//Username and pass $_Username = "$adminusername"; $_Password = "$adminpass";
// If the form was submitted if ($_POST['Submitted'] == "True") {
// If the username and password match up, then continue... if ($_POST['Username'] == $_Username && $_POST['Password'] == $_Password) {
// Username and password matched, set them as logged in and set the // Username to a session variable. $_SESSION['Logged_In'] = "True"; $_SESSION['Username'] = $_Username; } }
// If they are NOT logged in then show the form to login... if ($_SESSION['Logged_In'] != "True") {
echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\"> Username: <input type=\"textbox\" name=\"Username\"><br /> Password: <input type=\"textbox\" name=\"Password\"><br /> <input type=\"hidden\" name=\"Submitted\" value=\"True\"> <br> <input type=\"Submit\" name=\"Submit\" value=\"Go to admin\"> </form>"; } else { echo "You are logged in as: <b>" . $_SESSION['Username'] . "</b> <br /><a href=\"" . $_SERVER['PHP_SELF'] . "?mode=logout\">Logout</a><br>"; echo "----------------------------------------------------------------------------------<br>"; //here code of page!! echo "<br>"; echo "<br>"; echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">
<input type=\"hidden\" name=\"Submitted\" value=\"True\"> <br> <input type=\"Submit\" name=\"Submit\" value=\"Save\"> </form>"; }
// If they want to logout then if ($_GET['mode'] == "logout") { // Start the session session_start();
// Put all the session variables into an array $_SESSION = array();
// and finally remove all the session variables session_destroy();
// Redirect to show results.. echo "<META HTTP-EQUIV=\"refresh\" content=\"1; URL=" . $_SERVER['PHP_SELF'] . "\">"; } ?>
Reply
odomike
Oct 27 2004, 02:29 AM
QUOTE(filipc @ Oct 23 2004, 05:03 AM) This codee will help...it work. CODE <?php //You must INCLUDE file config.php , in config.php user and pass @include('config.php'); //Administration Panel session_start();
//Username and pass $_Username = "$adminusername"; $_Password = "$adminpass";
// If the form was submitted if ($_POST['Submitted'] == "True") {
// If the username and password match up, then continue... if ($_POST['Username'] == $_Username && $_POST['Password'] == $_Password) {
// Username and password matched, set them as logged in and set the // Username to a session variable. $_SESSION['Logged_In'] = "True"; $_SESSION['Username'] = $_Username; } }
// If they are NOT logged in then show the form to login... if ($_SESSION['Logged_In'] != "True") {
echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\"> Username: <input type=\"textbox\" name=\"Username\"><br /> Password: <input type=\"textbox\" name=\"Password\"><br /> <input type=\"hidden\" name=\"Submitted\" value=\"True\"> <br> <input type=\"Submit\" name=\"Submit\" value=\"Go to admin\"> </form>"; } else { echo "You are logged in as: <b>" . $_SESSION['Username'] . "</b> <br /><a href=\"" . $_SERVER['PHP_SELF'] . "?mode=logout\">Logout</a><br>"; echo "----------------------------------------------------------------------------------<br>"; //here code of page!! echo "<br>"; echo "<br>"; echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">
<input type=\"hidden\" name=\"Submitted\" value=\"True\"> <br> <input type=\"Submit\" name=\"Submit\" value=\"Save\"> </form>"; }
// If they want to logout then if ($_GET['mode'] == "logout") { // Start the session session_start();
// Put all the session variables into an array $_SESSION = array();
// and finally remove all the session variables session_destroy();
// Redirect to show results.. echo "<META HTTP-EQUIV=\"refresh\" content=\"1; URL=" . $_SERVER['PHP_SELF'] . "\">"; } ?>
Now, i dont reallly know what to do with that code filipc. I dont really know how to make that work. Does anyone have a pre-scripted php log-in form? please help me with it. I will be most grateful to you. Thanks in advance.
Reply
Similar Topics
Keywords : php php forum aint working- Evilboard (forum Software) - Multiple Categorys - Don't Work :(
- I am creating a forum and i can't fix more then 1 category. (6)
I am at the moment trying to program my own forum, but i need more then a single category, here is
my source: CODE function cat () { include("functions/functions.php");
echo '<table width="100%" border="0" cellspacing="0">
<tr> <td class="eb_top" colspan="3" style="border-bottom-width:
0; height: 30px; font-size: 12px;"> <b>Forum</b></td>
</tr>'; global $catid; $db = new db; $db->connec...
Wap Forum
- several questions on WAP forums (9)
/blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> Right i want to set up a
wap forum for rap battling. I think i need to use php, although i might need wml not sure. so
questions: 1) WML or PHP? 2) Can i get a forum/message board script? 3) Where can i get it? Thanks
in advance Not making helpful thread topics and titles results in warnings, or in extreme cases, a
ban. Don't fall into the crack. ...
Php Code Needed
- Working Together? (5)
Forum Script
- (3)
Hello, i'm wanting to start making my own forum software but i dont know where to start or what
i need to know in order to do this. I know i will need php and mysql but what else, and could some
one point me to a good site were i could learn php and mysql. Thanks ...
Script Not Working
- I don't know why. (6)
For some reason my random string script is not working. I got a fatal error when I tried it under
XAMPP. I do not know why. It looks syntatically correct. Could someone help me? Here is the script:
(Warning its over 100 lines long) //This PHP script will generate a random array and turn it into
a string consisting of 0-9 and A-Z. // This is the first developmental version. //Create 10 item
array for string $string = array(0,0,0,0,0,0,0,0,0,0); //Create function to replace 10-36 with
A-Z function conToStr() { for ($a = 0;$a switch($string ) { ...
Forum Last Post And Avatar
- need little help here (5)
hi guys. I have a little problem here. Im making my own version of forum, just got into this
problem on the last post from the topic and displaying the users avatar. i already have a upload
script but not for images. I tried making some experiments but it didnt work. maybe someone here
could help me. /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
just want to: 1.) query the last post. 2.)display the avatar of the user...
Creating A Login Box That Links To My Phpbb Forum
- Have my phpBB Forum Intergrated with my Website (4)
Can someone please give me a code that I can use to put a login box on my website, that will login a
user into my phpBB Forum? Sort of like Having my phpBB Forum Intergrated with my Website? Thank you
so much if you can! /angel.gif" style="vertical-align:middle" emoid=":angel:" border="0"
alt="angel.gif" /> Ex. ...
Forum Troubles
- In phpbb (2)
I am having forum trouble in phpbb. Whenever I go to post something or add someone to a group or
anything else, I get an error that looks like this: Could not find email template file ::
topic_notify DEBUG MODE Line : 111 File : emailer.php The email template thing changes but the
Line 111 and File emailer.php are always the same. It's getting really annoying. Can anyone
help me with this?...
How To Display The Latest Forum Post On Main Page
- (4)
Hey does anyone know how to display the latest forum post on the main page of a website? I'm new
to PHP and have no idea what to do. Thanks in advance!...
Php Forum Signature
- (10)
Hey /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Having
browsed this and other sites I've come up with the following signature-code for generating text
on an image: CODE <?php header("Content-type: image/png");
$select = rand(1,3); if($select==1)$img = "gow.png";
if($select==2)$img = "gow2.png"; if($select==3)$img =
"gow3.png"; $image = imagecreatefrompng("$img"); //imagecolor...
Script Not Working :s
- mysql errors (5)
process_login.php: Process the login. $host = "localhost";// the host that u are connecting
$username = "root";// user name $password = ""; // passworld $basedatos =
"forum"; //Dont change this1. $db = mysql_connect($host, $username, $password);
mysql_select_db($basedatos, $db); $user= $_REQUEST ; $pass=
md5($_REQUEST ); $query1= "SELECT * FROM smf_members WHERE
memberName='$user'"; $mkquery= mysql_query($query1,$db); $row1=
mysql_fetch_assoc($mkqu...
[forum] Double Posting Happening By An Error
- (3)
Hello, I am currently working on EvilBoard 0.1.1, for those who know about this project versjon 0.1b
can be downloaded from http://www.evilservices.com Well over to the reason why i am posting this,
I am currently experincing a problem with my new posting code wich has been rewrited in version
0.1.1, You see, it is double posting by an error, i thouht i could fix that myself, but no, so i
just thought, Trap17 is perfect, they problety know how to fix this, Here is the code: CODE
<? /* * @Name: Post Topic * @Author: Arne-Christian Blystad * @Copyright&...
Php Escaped Control Characters And Windows
- they aren't working for me. (3)
In php coding, when you escape certain characters, they have an impact on the output of an
echo'd or printed string. ie "\r\n\t" should give you a new line and a tab before
outputting the content for a line of printing. They vary by OS, I know, but I have tried all the
variations I can think of and can't seem to control output using them. Believe me, I have tried
multiple variations and nothing works for me. I have checked the php.ini file for settings but I
can't find where you can modify them. So the question is : Where do i look to conf...
Ipb Multi Forum (hosting Mod)
- installation help? (6)
Hi, i need a little help if possible, i have a multi forum hosting mod for ipb 1.31 ok.. I want to
install this but the install text included is a little unclear.. I already have a copy of ipb 1.31
installed and running (with users and posts), i want to install this mod but i also want to keep all
my db user/post info and still be able to use my existing forums with just a link to the forum
hosting form. Could someone please look at the documents included with this mod and give me more
clear instructions on how to do this? Do i need to install a second copy of the IPB UP...
Do Somebody Have A Tutorial About... How To Create A Forum?
- how to create a forum? (11)
Hei, guys. Do somebodys here have a toturial about how to create a forum? I really do wanna
create my own forum, but I don't know exatly HOW! please, help me! Lucas ...
Free Web Forum Scripts?
- Question on web forum scripts (7)
Can someone please tell me which of the free forum scripts is the best and why? I like these forums
but i notice the script is not free lol ;-)...
Phpskye The New Forum Software.
- new forum software (4)
PHPskye the upcomming forum software. Stefan Alkaline and I are making a new forum software with
some unique features. We currently are still working on the heavy coding. (that includes the layout
it sucks) But u are welcome to come and have a look. Remind feedback is allways welcome. We are
planning on distrubuting a free and a premium board. Some handy options will be available that no
board has so far. U are free to register and have a look around. U allso might notice the different
layouts the layout on the mainpage will be the layout the other will be deleted afte...
How I Can Display Forum Topic On Main Website ?
- (4)
Suppose i have a website.. domain.com , and have phpbb forums on domain.com/forums.. And i want to
display the new topics written in the forum on the main page of website...how i can do that.. ? for
example ,I want to display this topic `? "domain.com/forums/viewtopic.php?t=16" how can i do
that ?...
Forum Signatures Help
- (1)
Click Here to view a post that i made to see whether my forum signature works in the signature
box, and it doesnt. I dont know why, it works in the message area yet not in the signature. What do
i need to do here in order to fix it? HTML is Enabled n i added the img into the HTML tags...still
doesnt work, please help....
Can My Forum And Website Use The Same Profiles?
- (3)
I've been programming a 'rate-em' site from scratch. You know like Hot Or Not. YEs,..
yet another rate-em website. Anyway, i'ts done and before I launch it I need to add a forum as
the finishing touch, but all the forum softeware out there seems so hard to integrate. I'm
trying to make it so that when a user logs into my rate-em website they are also logged into 'my
forum'. i.e. i want my forum and web site to use the same profile data. If anyone knows of a
forum program made for this objective please let me know. I'm in over my head, a...
My Forum/shoutbox
- its a shoutbox now, but will be a forum (8)
Visit My Forum ok this is my forum it has: -Date Posted -Stores in mysql database -Shows in
Decending order -Able to use HTML (this is a bad thing) -Shows How many users are online -Shows how
long it takes to show the page -Looks simple and clean /smile.gif' border='0'
style='vertical-align:middle' alt='smile.gif' /> Will Add: -Member system -No HTML in Posts
-Replace the HTML with BB Codes if anyone could help me with the things i need to add please reply
and rate my script /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> ill
releas...
Is Php Working Fine For You These Days?
- (5)
Hey guys. Is PHP working fine for you these days? I don't know what's wrong with mine but
my php script doesn't seem to execute itself. I don't get a message in my confirmation page
and my entry (in my blog) doesn't get added in the database (mysql). It worked fine days ago.
Do you know what's wrong? I'm sorry I'm still a novice with PHP and MySQL.
/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> ...
Writing To Database Problem With Mysql - Not Writing Forum Post
- (3)
I'm making a forum and I've had several problems tonight which I've come here to ask
then found the answer to myself, but this one is stumping me. Whenever it goes to write the post to
the database, it saves the poster, and the time, but the part where the message would go is empty.
Here's the code, with comments about what it's supposed to do (what I wanted it to do and
thought it did): CODE $imsg = stripslashes($_POST['msg']);
//Get message if(strlen($imsg) > 5 && strlen($imsg)...
Login Not Working (uses Mysql)
- (11)
I don't know what's going wrong here, but it's probably a typo: CODE $iusername
= $_POST['username']; $ipassword =
stripslashes($_POST['password']); include "opendatabase.php";
opendatabase(); $userrow = mysql_query("SELECT * FROM `users` WHERE
`username`='$iusername' LIMIT 1;"); $userarr =
mysql_fetch_array($userrow); $ipassword = md5($ipassword);
if($ipassword != $userarr[3]...
Myphp Forum
- a simple yet powerful forum (12)
I just tried installing a new forum a few days ago, called MyPHP Forum, I found it to be really
powerful yet, takes on the non-graphical approach, perhaps a link to my forum would be good, so you
can see what i mean, http://xeek.ca.tt/forum I'm partly doing this becasue I want people to
use te themes i made, /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' />
check out the MyPHP website @ http://www.myphp.ws check out the user made themes @
http://myphp.ws/scripts.php ...
best forum boards to have
- VOTE NOW (10)
that a hard one to decribe which one is the best hmmm since i seen vbulletin alot longer then
anyother ones going with vb...
Looking for php, log, form, php, forum, log, form, aint, working
|
|
Searching Video's for php, log, form, php, forum, log, form, aint, working
|
advertisement
|
|