GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Apr-2008, 14:00
oggie oggie is offline
Awaiting Email Confirmation
 
Join Date: Nov 2007
Location: tattershall, UK
Posts: 28
oggie is on a distinguished road
Smile

where is the problem and can you fix it (php)


I am trying to get this all work together, and am not getting far. can anyone help me out. Cheers.

PHP Code:

<?php # header.html
// This page begins the HTML header for the site.
 
// start output buffering.
ob_start();
// Initialise a session.
session_start();
 
// Check for a $page_title value.
if (!isset($page_title)) {
$page_title = 'User Registration';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">         
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title><?php echo $page_title; ?>
    </title>
<style type="text/css" media="screen"> @import url(./includes/layout.css);</style>
</head> 
 
<body>
<div id="Header">User Registration</div>
<div id="Content">
<!-- End of Header -->


SECOND SCRIPT. THIS CARRIES ON FROM THE ABOVE ONE. BUT I CANNOT SEE WHERE IT IS GOING WRONG.
PHP Code:

<! -- End of Content -->
</div>
</body>
</html>
<div id="Menu">
<a href="index.php">Home</a><br />
<?php # - footer.html
// This page completes the HTML template.
 
// Dispaly links based upon the login status.
// Show LOGIN links if this is the LOGOUT page.
if (isset($_SESSION['user_id']) AND (substr($_SERVER['PHP_SELF'], -10) !='logout.php')) {
echo '<a href="logout.php">logout</a><br />
<a href="change_password.php">Change password</a><br />';
} else { // not logged in.
echo '<a href="register.php">Register</a><br />
<a href="login.php">Login</a><br />
<a href="forgot_password.php">Forgot password</a><br />';
}
?>
<a href="#">Some page</a><br />
<a href="#">Another page</a><br />
</div>
<body>
</html>
<?php // Flush the buffered output.
ob_end_flush();
?> 




THIRD SCRIPT. THIS SHOULD IN PRACTICE WORK BUT IT DOES NOT. sO NEED SOME HELP.

PHP Code:

<?php # index1.php
// This is he main page for the site.
 
// Include the config file for error management and such.
require_once ('./includes/config.inc.php');
 
// Set the page title and include the HTML header.
$page_title = 'User Registration';
include ('./includes/header.html');
 
// Welcomw the user (by name if they are loggied in).
echo '<h1>Welcome';
if (isset($_SESSION['first_name'])) {
echo ", {$_SESSION['first_name]}!";
}
echo </h1>;
?>
<p>Spam spam spam</p><br />
<p> Spam spam</p>
 
 
<?php // Include the HTML footer file.
include ('./includes/footer.html');
 
?>



as you can see I have put in quotes so you can see what is happening. Any help will be most grateful.

Thanks

Ian
Last edited by admin II : 12-Apr-2008 at 05:56. Reason: Please surround your PHP code with [php] your code [/php]
  #2  
Old 12-Apr-2008, 15:44
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,441
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: where is the problem and can you fix it (php)


The "third script" is missing a single quote around first_name. (at the echo statement)

EDIT:
...and there should be quotes around the closing header with the echo after the if.

I don't have PHP on the machine I'm using at the moment, but if I get a chance later tonight, I'll try to run those.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 12-Apr-2008, 16:38
oggie oggie is offline
Awaiting Email Confirmation
 
Join Date: Nov 2007
Location: tattershall, UK
Posts: 28
oggie is on a distinguished road
Smile

Re: where is the problem and can you fix it (php)


Hi,

Thanks for getting back. I have looked at the mistakes and rectified them. But I am still get a session problem on line 7 in the header.html. And also a problem in the footer.html.

And thanks for running these scripts if you get a chance. t is for a project I am doing for my work.

So any help will be of grate value.

Kind regards

Ian
  #4  
Old 12-Apr-2008, 20:12
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,441
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: where is the problem and can you fix it (php)


I'm not sure what problem you're seeing (unless I'm missing something?), but here's the output (from html) that I get:
Code:
User Registration Welcome Spam spam spam Spam spam Home Register Login Forgot password Some page Another page
(of course the last several items are links)

EDIT:
...a couple of minor notes
1. there are two </html> tags in the footer file. Is this intentional? I only see one opening tag in the header.
2. the footer file also has a stray <body> tag near the end.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #5  
Old 13-Apr-2008, 07:24
oggie oggie is offline
Awaiting Email Confirmation
 
Join Date: Nov 2007
Location: tattershall, UK
Posts: 28
oggie is on a distinguished road
Smile

Re: where is the problem and can you fix it (php)


Hi,

Thanks for getting back. I have taken the minor problems out and it all shows what you got too. So a big thanx for that.

IT works but I am now getting this (see below) and I no clue why. Do you have any thoughts on this. Your help will be great.

kind regards

Ian


An error occurred in script '/home/ogl10b7/public_html/EricsCarRepairs/includes/header.html' on line 7:
session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ogl10b7/public_html/EricsCarRepairs/includes/config.inc.php:42)
Date/Time: 4-13-200814:24:49

Array
(
[GLOBALS] => Array
*RECURSION*
[_ENV] => Array
(
[PATH] => /usr/local/bin:/usr/bin:/bin
[PWD] => /
[LANG] => C
[SHLVL] => 1
[_] => /usr/sbin/apache2
)

[HTTP_ENV_VARS] => Array
(
[PATH] => /usr/local/bin:/usr/bin:/bin
[PWD] => /
[LANG] => C
[SHLVL] => 1
[_] => /usr/sbin/apache2
)

[_POST] => Array
(
)

[HTTP_POST_VARS] => Array
(
)

[_GET] => Array
(
)

[HTTP_GET_VARS] => Array
(
)

[_COOKIE] => Array
(
)

[HTTP_COOKIE_VARS] => Array
(
)

[_SERVER] => Array
(
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_LANGUAGE] => en-gb
[HTTP_UA_CPU] => x86
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)
[HTTP_HOST] => loki.computing.boston.ac.uk
[HTTP_CONNECTION] => Keep-Alive
[PATH] => /usr/local/bin:/usr/bin:/bin
[SERVER_SIGNATURE] => Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_jk/1.2.18 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 Server at loki.computing.boston.ac.uk Port 80

[SERVER_SOFTWARE] => Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_jk/1.2.18 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8
[SERVER_NAME] => loki.computing.boston.ac.uk
[SERVER_ADDR] => 217.40.221.251
[SERVER_PORT] => 80
[REMOTE_ADDR] => 86.162.15.192
[DOCUMENT_ROOT] => /var/www/
[SERVER_ADMIN] => webmaster@localhost
[SCRIPT_FILENAME] => /home/ogl10b7/public_html/EricsCarRepairs/index1.php
[REMOTE_PORT] => 62100
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /~ogl10b7/EricsCarRepairs/index1.php
[SCRIPT_NAME] => /~ogl10b7/EricsCarRepairs/index1.php
[PHP_SELF] => /~ogl10b7/EricsCarRepairs/index1.php
[REQUEST_TIME] => 1208093089
[argv] => Array
(
)

[argc] => 0
)

[HTTP_SERVER_VARS] => Array
(
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_LANGUAGE] => en-gb
[HTTP_UA_CPU] => x86
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)
[HTTP_HOST] => loki.computing.boston.ac.uk
[HTTP_CONNECTION] => Keep-Alive
[PATH] => /usr/local/bin:/usr/bin:/bin
[SERVER_SIGNATURE] => Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_jk/1.2.18 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 Server at loki.computing.boston.ac.uk Port 80

[SERVER_SOFTWARE] => Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_jk/1.2.18 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8
[SERVER_NAME] => loki.computing.boston.ac.uk
[SERVER_ADDR] => 217.40.221.251
[SERVER_PORT] => 80
[REMOTE_ADDR] => 86.162.15.192
[DOCUMENT_ROOT] => /var/www/
[SERVER_ADMIN] => webmaster@localhost
[SCRIPT_FILENAME] => /home/ogl10b7/public_html/EricsCarRepairs/index1.php
[REMOTE_PORT] => 62100
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /~ogl10b7/EricsCarRepairs/index1.php
[SCRIPT_NAME] => /~ogl10b7/EricsCarRepairs/index1.php
[PHP_SELF] => /~ogl10b7/EricsCarRepairs/index1.php
[REQUEST_TIME] => 1208093089
[argv] => Array
(
)

[argc] => 0
)

[_FILES] => Array
(
)

[HTTP_POST_FILES] => Array
(
)

[_REQUEST] => Array
(
)

[live] =>
[email] => InsertRealAddressHere
[page_title] => Register
[HTTP_SESSION_VARS] => Array
(
)

[_SESSION] => Array
(
)

)





An error occurred in script '/home/ogl10b7/public_html/EricsCarRepairs/includes/header.html' on line 7:
session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ogl10b7/public_html/EricsCarRepairs/includes/config.inc.php:42)
Date/Time: 4-13-200814:24:49

Array
(
[GLOBALS] => Array
*RECURSION*
[_ENV] => Array
(
[PATH] => /usr/local/bin:/usr/bin:/bin
[PWD] => /
[LANG] => C
[SHLVL] => 1
[_] => /usr/sbin/apache2
)

[HTTP_ENV_VARS] => Array
(
[PATH] => /usr/local/bin:/usr/bin:/bin
[PWD] => /
[LANG] => C
[SHLVL] => 1
[_] => /usr/sbin/apache2
)

[_POST] => Array
(
)

[HTTP_POST_VARS] => Array
(
)

[_GET] => Array
(
)

[HTTP_GET_VARS] => Array
(
)

[_COOKIE] => Array
(
)

[HTTP_COOKIE_VARS] => Array
(
)

[_SERVER] => Array
(
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_LANGUAGE] => en-gb
[HTTP_UA_CPU] => x86
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)
[HTTP_HOST] => loki.computing.boston.ac.uk
[HTTP_CONNECTION] => Keep-Alive
[PATH] => /usr/local/bin:/usr/bin:/bin
[SERVER_SIGNATURE] => Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_jk/1.2.18 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 Server at loki.computing.boston.ac.uk Port 80

[SERVER_SOFTWARE] => Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_jk/1.2.18 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8
[SERVER_NAME] => loki.computing.boston.ac.uk
[SERVER_ADDR] => 217.40.221.251
[SERVER_PORT] => 80
[REMOTE_ADDR] => 86.162.15.192
[DOCUMENT_ROOT] => /var/www/
[SERVER_ADMIN] => webmaster@localhost
[SCRIPT_FILENAME] => /home/ogl10b7/public_html/EricsCarRepairs/index1.php
[REMOTE_PORT] => 62100
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /~ogl10b7/EricsCarRepairs/index1.php
[SCRIPT_NAME] => /~ogl10b7/EricsCarRepairs/index1.php
[PHP_SELF] => /~ogl10b7/EricsCarRepairs/index1.php
[REQUEST_TIME] => 1208093089
[argv] => Array
(
)

[argc] => 0
)

[HTTP_SERVER_VARS] => Array
(
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_LANGUAGE] => en-gb
[HTTP_UA_CPU] => x86
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)
[HTTP_HOST] => loki.computing.boston.ac.uk
[HTTP_CONNECTION] => Keep-Alive
[PATH] => /usr/local/bin:/usr/bin:/bin
[SERVER_SIGNATURE] => Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_jk/1.2.18 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 Server at loki.computing.boston.ac.uk Port 80

[SERVER_SOFTWARE] => Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_jk/1.2.18 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8
[SERVER_NAME] => loki.computing.boston.ac.uk
[SERVER_ADDR] => 217.40.221.251
[SERVER_PORT] => 80
[REMOTE_ADDR] => 86.162.15.192
[DOCUMENT_ROOT] => /var/www/
[SERVER_ADMIN] => webmaster@localhost
[SCRIPT_FILENAME] => /home/ogl10b7/public_html/EricsCarRepairs/index1.php
[REMOTE_PORT] => 62100
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /~ogl10b7/EricsCarRepairs/index1.php
[SCRIPT_NAME] => /~ogl10b7/EricsCarRepairs/index1.php
[PHP_SELF] => /~ogl10b7/EricsCarRepairs/index1.php
[REQUEST_TIME] => 1208093089
[argv] => Array
(
)

[argc] => 0
)

[_FILES] => Array
(
)

[HTTP_POST_FILES] => Array
(
)

[_REQUEST] => Array
(
)

[live] =>
[email] => InsertRealAddressHere
[page_title] => Register
[HTTP_SESSION_VARS] => Array
(
)

[_SESSION] => Array
(
)

)





User Registration

Welcome
Spam spam spam



Spam spam

Home
Register
Login
Forgot password
Some page
Another page
  #6  
Old 13-Apr-2008, 10:40
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,441
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: where is the problem and can you fix it (php)


For the session_start problem, see this post for a possible solution.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #7  
Old 14-Apr-2008, 08:28
oggie oggie is offline
Awaiting Email Confirmation
 
Join Date: Nov 2007
Location: tattershall, UK
Posts: 28
oggie is on a distinguished road
Smile

Re: where is the problem and can you fix it (php)


Thanks for that. It seems to of worked as all those error messages have gone but now I am getting this message:

Warning: require_once(/includes/config.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/ogl10b7/public_html/EricsCarRepairs/register.php on line 5

Fatal error: require_once() [function.require]: Failed opening required '/includes/config.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ogl10b7/public_html/EricsCarRepairs/register.php on line 5



this is the path to this message:

http://loki.computing.boston.ac.uk/~ogl10b7/EricsCarRepairs/register.php

Ian
  #8  
Old 14-Apr-2008, 12:13
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,441
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: where is the problem and can you fix it (php)


Maybe the path needs the leading . (period)? [it doesn't appear in the message, at least]

PHP Code:

require_once('./includes/config.inc.php'); 


instead of:
PHP Code:

require_once('/includes/config.inc.php'); 


__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #9  
Old 14-Apr-2008, 15:08
oggie oggie is offline
Awaiting Email Confirmation
 
Join Date: Nov 2007
Location: tattershall, UK
Posts: 28
oggie is on a distinguished road
Smile

Re: where is the problem and can you fix it (php)


I have put the . in and it now comes up with:



Warning: require_once(/.includes/config.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/ogl10b7/public_html/EricsCarRepairs/register.php on line 5

Fatal error: require_once() [function.require]: Failed opening required '/.includes/config.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ogl10b7/public_html/EricsCarRepairs/register.php on line 5






<?php # register.php
// This is the registration page for the site.

// Include the config file for error management and such.
require_once ('/.includes/config.inc.php');

// Set the page title and include the HTML header.
$page_title = 'Register';
include ('/.includes/header.html');

if (isset($_POST['submitted'])) { // Handle the form.

require_once ('../mysql_connect.php'); // Connect to the database.

// Check for a fisrt name.
if (ergi ('^[[:alpha:]\.\'\-]{2,15}$', stripslashes(trim($_POST['first_name'])))) {
$fn = escape_data($_POST['first_name']);
} else {
$fn = FALSE;
echo '<p><font color="red" size="+1">Please enter your first name!</font></p>';
}

// Check for a last name.
if (ergi ('^[[:alpaha:}\.\'\-]{2,30}$', stripslashes(trim($_POST['last_name'])))) {
$ln = escape_data($_POST['last_name']);
} else {
$ln = FALSE;
echo '<p><font color="red" size="+1">Please enter your last name!</font></p>';
}

// Check for an email address.
if (ergi('^[[:alnum:]][a-z0-9_\.\-]*@[a-z0-9\.\-]+\.[a-z]{2,4}$', stripslashes(trim($POST['email'])))) {
$e = escape_data($_POST['email']);
} else {
$e = FALSE;
echo '<p><font color="red" size="+1">Please enter a valid email address!</font></p>';
}

// Check for a password and math against the conforme password.
if (ergi('^[[:alnum:]]{4,20}$', stripslashes(trim($_POST['password1'])))) {
if ($_POST['password1'] == $_POST['password2']) {
$p = escape_data($_POST['password1']);
} else {
$p = FALSE;
echo '<p><font color="red" size="+1">Your password did not match the confirmed password!</font></p>';
}
} else {
$p = FALSE;
echo '<p><font color="red" size="+1">Please enter a valid password!</font></p>';
}

if ($fn && $ln && $e && $p) { // If everything's OK.

// Make sure the email address is available.
$query = "SELECT user_id FROM register WHERE email='$e'";
$result = mysql_query ($query) or trigger_error("Query: $query\n<br />MySQL ERROR: " . mysql_error());

if (mysql_num_rows($result) == 0) { // Available.

// Create the activation code.
$a = md5(uniqid(rand(), true));

// Add the user.
$query = "INSERT INTO register (email, pass, first_name, last_name, active, registration_date) VALUES ('$e', SHA('$p'), '$fn', '$ln', '$a', NOW()";
$result = mysql_query ($query) or trigger_error("QUERY: $query\n<br />MySQL ERROR:" . mysql_error());

if (mysql_affected_rows() == 1) { // If it ran OK.

// Send the email.
$body = "Thankyou for registering. To activate your account, please click on this link:\n\n";
$body .="http://www.whateveraddressyouwantthere.com/activate.php?x=" . mysql_insert_id() . "&y=$a";
mail($_POST['email'],'Registration confirmation',$body);

// Finish the page.
echo '<h3>Thankyou for registering! A confirmation email has been sent to your address. Please click on the link in that the email in order to activate your account.</h3>';
include ('.includes/footer.html'); // Include the HTML footer.
exit();

} else { // If it did not run OK.
echo '<p><font color="red" size="+1">You could not be registerd due to a system error. We apologize for any inconvenience.</font></p>';
}

} else { // The email address is not available.
echo '<p><font color="red" size="+1"> That email has already been registered. If you have forgotten your password, use the link to have your password sent to you.</font></p>';
}

} else { // If one of the data testa failed.
echo '<p><font color="red" size="+1">Please try again.</font></p>';
}

mysql_close(); // Close the database connection.

} // End of the main submit conditional.
?>

<h1>Register</h1>
<form action="register.php" method="post">
<fieldset>

<p><b>First Name:</b> <input type="text" name="first_name" size="15" maxlength="15" value="<?php if (isset($_POST['first_name'])) echo $_POST['first_name']; ?>" /> </p>

<p><b>Last Name:</b> <input type="text" name="last_name" size="30" maxlength="30" value="<?php if (isset($_POST['last_name'])) echo $_POST['last_name']; ?>" /> </p>

<p><b>Email:</b> <input type="text" name="email" size="40" maxlength="40" value="<?php if (isset($_POST['email'])) echo $_POST['email']; ?>" /> </p>

<p><b>Password:</b> <input type="password" name="password1" size="20" maxlength="20" /><small>Use only letters and numbers. Must be between 4 and 20 characters long</small></p>

<p><b>Confirm Password:</b> <input type="password" name="password2" size="20" maxlength="20" /></p>
</fieldset>

<div align="center"><input type="submit" name="submit" value="Register" /></div>
<input type="hidden" name="submitted" value="TRUE" />

</form>

<?php // Include the HTML footer.
include ('/.includes/footer.html')
?>
 
 

Recent GIDBlogConfiguring iptables for Webmin Servers Index Module by gidnetwork

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:06.


vBulletin, Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.