Jump to content

[SOLVED] Making form feild required before submitting it


Dada78

Recommended Posts

Hello, hopefully this forum will be more helpful and friendly then a other one I was at. Lets start small and one step at a time. I have this very simple registration page. here http://www.mesquitechristmas.com/local/register.php I have the database set up and everything but I need two things from this script to do and I have been playing with this for two days and can not get it to work.

 

1. I need both fields to be filled out and if they are not display an error which I have put in the code, except it doesn't work and doesn't display the error. It will allow you to register if you only fill in one form.

 

2. I need it to where you can not use the same email to sign up with if you have do so with that email already or display and error.

 

At this point it doesn't do anything of this and I have the code in there but it doesn't work. So can someone look it over and tell me what I need to do?

 

PLEASE NOTE:

 

I am a XHTML CSS web developer, I do not use PHP regularly. Matter of fact it has been 3 yrs since I have used it so please be gentle when you explain what I need to do.

 

Here is the code I am working with....

 

<?PHP
// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (empty($_POST['email']) || empty($_POST['password'])) {
   // here, they have not filled in either the username OR the password.  Set an error.
   }else {
$error = 'Please fill in all fields.';

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {
      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }

// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
?> 

 

 

Now here is the code that is further down that is embedded in the HTML that displays the error.....

 

<?PHP
// then we check for the error message
if (isset($error)) {
   echo $error . '<br />';
}
?>

 

-Thanks

 

 

 

 

Link to comment
Share on other sites

  • Replies 90
  • Created
  • Last Reply

Top Posters In This Topic

firstly can i make a suggestion about your code

 

If there is an error - ie the fields are empty - then doint make the connection to the database

 

eg: - im not using direct PH code here however its easy to make changes to your script - just rearrange the location of your brackets

 

if(user or password is empty) {

    set error message

}

 

else {

    make your connections

 

}

 

if isset($error message) {

    echo $error;

}

 

 

 

that shoudl help you make it work a little better

Link to comment
Share on other sites

You just have some wrong code is all

 

if (empty($_POST['email']) || empty($_POST['password'])) {

  // here, they have not filled in either the username OR the password.  Set an error.

  }else {

$error = 'Please fill in all fields.';

 

That if statement is saying if either field is empty, set an error, but you are setting an error if it's true since it's under the ELSE line, so change it to

 

if (empty($_POST['email']) || empty($_POST['password'])) {

  $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.

  }else {

 

Now you let the ELSE continue if they filled it out to your code.

 

As for checking if they exist, I use a function and just call it

 

function checkUnique($table, $field, $compared){
if (get_magic_quotes_gpc()) {
$table = stripslashes($table);
$field = stripslashes($field);
$compared = stripslashes($compared);
}
$table = mysql_real_escape_string($table);
$field = mysql_real_escape_string($field);
$compared = mysql_real_escape_string($compared);

$result = mysql_query("SELECT $field FROM $table WHERE $field = '$compared'");
if(mysql_num_rows($result)==0) {
return TRUE;
}
else {
return FALSE;
}
}

Link to comment
Share on other sites

[quote author=revraz link=topic=175086.msg775035#msg775035 date=1199202938]

if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

 

Thank you, now I use to have it that way before and when I change it that way it displays the error without the submit button even having to be pushed. You can see what I mean from the link below.

 

http://www.mesquitechristmas.com/local/register.php

 

 

Here is the code I am using as of now

 

<?PHP
// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }

// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
?> 

 

I have tried it several different ways and not sure why it is not working. I wish I could find my notes from 3 yrs ago because I don't remember me having this much trouble with something so easy in the past.

 

-Thanks

Link to comment
Share on other sites

You are really not checking if the form is submitted, you're just checking to see if Username and PW are empty.  Before you do that, check to see if your submit value is set.  I don't see your form code posted.

Link to comment
Share on other sites

You are really not checking if the form is submitted, you're just checking to see if Username and PW are empty.  Before you do that, check to see if your submit value is set.  I don't see your form code posted.

 

You are right I don't have the bit of code that is checking if the form is submitted. I had a bit of code for that but I can not find it anywhere or how I did it 3 yrs ago. Here is the entire file with php and html....

 

<?PHP
// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }

// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
?> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Mesquite Texas Country Christmas" />
<meta name="keywords" content="Mesquite, Texas, Country Christmas" />
<meta name="author" content="NA" />
<link rel="stylesheet" type="text/css" href="/stylesheet.css" media="screen" title="FBC" />
<script type="text/javascript" src="drop_down.js"></script>
<title>A Mesquite Country Christmas - Register for account</title>
</head>
<body>

<div id="wrap">

<a href="/index.html">
<img id="frontphoto" src="/images/header.png" width="760" height="237" alt="Mesquite Country Christmas" border="0"></a>

<div id="menu">

<h2 class="hide">Menu:</h2>

<ul id="avmenu">
<li><a href="index.html">Home</a></li>
<li><a href="christmasstory.html">The Christmas Story</a></li>
<li><a href="directions.html">Directions</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="#">Photos</a>
  <ul>
      <li><a href="2007photos.html">2007</a></li>
  </ul></li>
<li><a href="#">Videos</a>
  <ul>
      <li><a href="2007videos.html">2007</a></li>
  </ul></li>
<li><a href="guestbook.php">Guestbook</a></li>
<li><a href="webcam.html">Web Cam</a></li>
<li><a href="webradio.html">Internet Radio</a></li>
<li><a href="http://www.noradsanta.org/" TARGET="_blank">Track Santa</a></li>
<li><a href="projects.html">Projects & How Tos</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="contact_us.html">Contact Us</a></li>
</ul>

<center><a href="http://www.toysfortots.org/" TARGET="_blank"><img src="/images/toys_for_tots.jpg" border="0" width="110" height="153" vspace="10"></a></center>

<center><a href="http://christmas.bronners.com/2007/house/534.html"><img src="http://christmas.bronners.com/voteforme/vote.jpg" border="0" width="110" height="153" alt="christmas decorations" vspace="10"></a></center>

</div>

<div id="content">


<div class="fadebox">

<h2>Register for a FREE Account</h2>

<hr />

<p> In order to submit your display on our website, we require that you register for a free account. This will enable you to make changes to your listings each year. If you already have an account then <a href="login.php"> Log In</a> now.</p>

<table width="28%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>	

<table width="331" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form action="register.php" method="post">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="2"><strong>Registration - Please fill in all fields. </strong></td>
</tr>
<tr>
<td width="103">Email:</td>
<td width="180"><input type="text" name="email" size="30" maxlength="40" /></td>
</tr>
<tr>
<td>Desired Password:</td>
<td><input type="password" name="password" size="30" maxlength="20" /></td>
</tr>
<tr>
<td colspan="2" align="right" class="errorText"><?PHP
// then we check for the error message
if (isset($error)) {
   echo $error . '<br />';
}
?> </td>
</tr>
<tr>
<td colspan="2" align="right"><input value="Register Now" name="submit" type="submit"></td>
</tr>
</table>
</td>
</form>
</tr>
</table></td>
</tr>
</table>


   </div>
</div>


<div id="footer">
© 2007 Mesquite Country Christmas
</div>

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

Link to comment
Share on other sites

I have been searching the web for something or code that will check if the form has been submitted so it will post the error but I have come up empty. Does anyone know I how or what I need to add to make sure the the for is submitted and both fields have been filled out. The code for the entire file is above.

 

-Thanks

Link to comment
Share on other sites

Hi I have tested ur code seems like ok only a little thing I have added, one java script validation.

If u dont need that u can remove the function calling on the form.

Added one more check to execute the PHP code if($_POST['usubmit'] != ''), I have changed the submit name to usubmit.

and while checking for the null values it is always better to check one like above and with empty function.

 

Cheers

          ----

 

<?PHP

// here, we check if the form has been submitted, because we need to handle

// redirection before we handle outputting the HTML stuff.

if($_POST['usubmit'] != ''){

if (empty($_POST['email']) || empty($_POST['password']) ) {

$error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.

}else {

// MAKE CONNECTION

include ('db_connect.php'); 

 

// connect to the mysql server

$link = mysql_connect($host, $username, $password)

or die ("Could not connect to mysql because ".mysql_error());

 

// select the database

mysql_select_db($database)

or die ("Could not select database because ".mysql_error());

 

// check if the email is taken

$check = "select id from users where email = '".$_POST['email']."';";

$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());

$num_rows = mysql_num_rows($qry);

if ($num_rows != 0) {

 

// redirect them to the user account page, because we successfully ran the SQL

// notice how we haven't output ANYTHING to the browser yet- header() works

header('Location: user.php');

exit();

}else {

$error = 'There was a problem.  That email is already in use.';

}

 

// insert the data

$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")

or die("Could not insert data because ".mysql_error());

}

}

// now here, we've either redirected to the user account page, this is the first visit, or there

// was an error with the form/registration.  So, we echo the HTML

?>

<script language='javascript'>

function validateField(){

var email = document.getElementById('email');

var pass = document.getElementById('password');

var returnVal = true;

if(email.value ==''){

alert('Please enter the Email');

returnVal = false;

}

else if(pass.value ==''){

alert('Please enter the Password');

returnVal = false;

}

return returnVal;

 

}

</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<meta name="description" content="Mesquite Texas Country Christmas" />

<meta name="keywords" content="Mesquite, Texas, Country Christmas" />

<meta name="author" content="NA" />

<link rel="stylesheet" type="text/css" href="/stylesheet.css" media="screen" title="FBC" />

<script type="text/javascript" src="drop_down.js"></script>

<title>A Mesquite Country Christmas - Register for account</title>

</head>

<body>

 

<div id="wrap">

 

<a href="/index.html">

<img id="frontphoto" src="/images/header.png" width="760" height="237" alt="Mesquite Country Christmas" border="0"></a>

 

<div id="menu">

 

<h2 class="hide">Menu:</h2>

 

<ul id="avmenu">

<li><a href="index.html">Home</a></li>

<li><a href="christmasstory.html">The Christmas Story</a></li>

<li><a href="directions.html">Directions</a></li>

<li><a href="faq.html">FAQ</a></li>

<li><a href="#">Photos</a>

  <ul>

      <li><a href="2007photos.html">2007</a></li>

  </ul></li>

<li><a href="#">Videos</a>

  <ul>

      <li><a href="2007videos.html">2007</a></li>

  </ul></li>

<li><a href="guestbook.php">Guestbook</a></li>

<li><a href="webcam.html">Web Cam</a></li>

<li><a href="webradio.html">Internet Radio</a></li>

<li><a href="http://www.noradsanta.org/" TARGET="_blank">Track Santa</a></li>

<li><a href="projects.html">Projects & How Tos</a></li>

<li><a href="links.html">Links</a></li>

<li><a href="contact_us.html">Contact Us</a></li>

</ul>

 

<center><a href="http://www.toysfortots.org/" TARGET="_blank"><img src="/images/toys_for_tots.jpg" border="0" width="110" height="153" vspace="10"></a></center>

 

<center><a href="http://christmas.bronners.com/2007/house/534.html"><img src="http://christmas.bronners.com/voteforme/vote.jpg" border="0" width="110" height="153" alt="christmas decorations" vspace="10"></a></center>

 

</div>

 

<div id="content">

 

 

<div class="fadebox">

 

<h2>Register for a FREE Account</h2>

 

<hr />

 

<p> In order to submit your display on our website, we require that you register for a free account. This will enable you to make changes to your listings each year. If you already have an account then <a href="login.php"> Log In</a> now.</p>

 

<table width="28%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td>

 

<table width="331" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">

<tr>

<form action="register.php" method="post" onsubmit="return validateField();">

<td>

<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">

<tr>

<td colspan="2"><strong>Registration - Please fill in all fields. </strong></td>

</tr>

<tr>

<td width="103">Email:</td>

<td width="180"><input type="text" name="email" size="30" maxlength="40" id="email"/></td>

</tr>

<tr>

<td>Desired Password:</td>

<td><input type="password" name="password" size="30" maxlength="20" id="password"/></td>

</tr>

<tr>

<td colspan="2" align="right" class="errorText"><?PHP

// then we check for the error message

if (isset($error)) {

  echo $error . '<br />';

}

?> </td>

</tr>

<tr>

<td colspan="2" align="right"><input value="Register Now" name="usubmit" type="submit"></td>

</tr>

</table>

</td>

</form>

</tr>

</table></td>

</tr>

</table>

 

 

  </div>

</div>

 

 

<div id="footer">

© 2007 Mesquite Country Christmas

</div>

 

</div>

</body>

</html>

Link to comment
Share on other sites

Thank you, but what if the user has Js disabled, that code won't work right? That is why I was trying to achieve this in PHP. At the beginning of the code it was checking to see if a field was empty and it would give me a error but the error shows without even having to hit submit. So I need a Code in PHP that checks if they form has been submitted. I have done this before but I have forgot. If you look at this link

 

http://www.mesquitechristmas.com/local/register.php

 

You will notice the error shows before the form is even submitted. Any way to fix this to check if the form has been submitted before the error is displayed. I would like something in PHP in case the user has Js disabled.

 

-Thanks

Link to comment
Share on other sites

Thank you that was the snippet I was looking for but I can not get it to work. I have placed it in different places and it still shows the error regardless if the form has been submitted or not. Is it not placed properly?

 

Here is the URL to the page, as you can see the error is displayed as soon as you enter the page without having to submit the form

 

http://www.mesquitechristmas.com/local/register.php

 

Here is the code:

 

<?PHP

// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (isset($_POST['submit'])) {
//form has been submitted, validate data
}
else { 
//form has not been submitted
}
if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }

// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
?> 

 

-Thanks

 

Link to comment
Share on other sites

I have messed with this code for hours and I can not get it to work properly. Can anyone please help me figure this out. I am in desperate need of getting passed this page. I have spent over a week with trying to get this to work and I am all out of ideas and places to search for answers.

 

-Thanks

Link to comment
Share on other sites

The line posted by revraz that looks like this:

//form has been submitted, validate data

 

That's where you put all your processing code. The

}else {
       $error = 'There was a problem.  That email is already in use.';
   }

should be at the end, just before the ?>

 

 

Link to comment
Share on other sites

The line posted by revraz that looks like this:

//form has been submitted, validate data

 

That's where you put all your processing code. The

}else {
       $error = 'There was a problem.  That email is already in use.';
   }

should be at the end, just before the ?>

 

 

 

When I move that to the end I get this error

 

Parse error: syntax error, unexpected T_ELSE in /home/mesquit1/public_html/local/register.php on line 46

 

I am not sure what you mean by "That's where you put all your processing code. " If you look at the last posted code that is the way I have it above. I am moved it everywhere I can think of and can not get it to work.

 

Really right now I just want to get the empty fields to work then work on if duplicate email is use post error.

Link to comment
Share on other sites

I have tried it this way....

 

<?PHP

// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {
if (isset($_POST['submit'])) {
//form has been submitted, validate data
}
else { 
//form has not been submitted
}

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }

// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
?> 

 

 

And I have tried it this way...

 

<?PHP

// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (isset($_POST['submit'])) {
//form has been submitted, validate data
}
else { 
//form has not been submitted
}
if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }

// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
?> 

 

And the error "Please fill in all fields." Still shows regardless if the form has been submitted or not.

 

http://www.mesquitechristmas.com/local/register.php

 

What am I doing wrong?

 

-Thanks

 

 

Link to comment
Share on other sites

Assuming your form is somewhere else, this is the PHP logic

 

<?php

// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (isset($_POST['submit'])) {
   if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }
// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

}
else { 
// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
}




?> 

Link to comment
Share on other sites

I don't remember this being this hard. It is still showing the error regardless if the the form is submitted or not.

 

http://www.mesquitechristmas.com/local/register.php

 

Here is the entire code for that page with the form and HTML.

 

<?php

// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (isset($_POST['submit'])) {
   if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }
// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

}
else { 
// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
}

?> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Mesquite Texas Country Christmas" />
<meta name="keywords" content="Mesquite, Texas, Country Christmas" />
<meta name="author" content="NA" />
<link rel="stylesheet" type="text/css" href="/stylesheet.css" media="screen" title="FBC" />
<script type="text/javascript" src="drop_down.js"></script>
<title>A Mesquite Country Christmas - Register for account</title>
</head>
<body>

<div id="wrap">

<a href="/index.html">
<img id="frontphoto" src="/images/header.png" width="760" height="237" alt="Mesquite Country Christmas" border="0"></a>

<div id="menu">

<h2 class="hide">Menu:</h2>

<ul id="avmenu">
<li><a href="index.html">Home</a></li>
<li><a href="christmasstory.html">The Christmas Story</a></li>
<li><a href="directions.html">Directions</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="#">Photos</a>
  <ul>
      <li><a href="2007photos.html">2007</a></li>
  </ul></li>
<li><a href="#">Videos</a>
  <ul>
      <li><a href="2007videos.html">2007</a></li>
  </ul></li>
<li><a href="guestbook.php">Guestbook</a></li>
<li><a href="webcam.html">Web Cam</a></li>
<li><a href="webradio.html">Internet Radio</a></li>
<li><a href="http://www.noradsanta.org/" TARGET="_blank">Track Santa</a></li>
<li><a href="projects.html">Projects & How Tos</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="contact_us.html">Contact Us</a></li>
</ul>

<center><a href="http://www.toysfortots.org/" TARGET="_blank"><img src="/images/toys_for_tots.jpg" border="0" width="110" height="153" vspace="10"></a></center>

<center><a href="http://christmas.bronners.com/2007/house/534.html"><img src="http://christmas.bronners.com/voteforme/vote.jpg" border="0" width="110" height="153" alt="christmas decorations" vspace="10"></a></center>

</div>

<div id="content">


<div class="fadebox">

<h2>Register for a FREE Account</h2>

<hr />

<p> In order to submit your display on our website, we require that you register for a free account. This will enable you to make changes to your listings each year. If you already have an account then <a href="login.php"> Log In</a> now.</p>

<table width="28%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>	

<table width="331" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form action="register.php" method="post">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="2"><strong>Registration - Please fill in all fields. </strong></td>
</tr>
<tr>
<td width="103">Email:</td>
<td width="180"><input type="text" name="email" size="30" maxlength="40" /></td>
</tr>
<tr>
<td>Desired Password:</td>
<td><input type="password" name="password" size="30" maxlength="20" /></td>
</tr>
<tr>
<td colspan="2" align="right" class="errorText"><?PHP
// then we check for the error message
if (isset($error)) {
   echo $error . '<br />';
}
?> </td>
</tr>
<tr>
<td colspan="2" align="right"><input value="Register Now" name="submit" type="submit"></td>
</tr>
</table>
</td>
</form>
</tr>
</table></td>
</tr>
</table>


   </div>
</div>


<div id="footer">
© 2007 Mesquite Country Christmas
</div>

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

Link to comment
Share on other sites

This works fine for me

 

<?php

// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (isset($_POST['submit'])) {
   if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }
// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

}
else { 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Mesquite Texas Country Christmas" />
<meta name="keywords" content="Mesquite, Texas, Country Christmas" />
<meta name="author" content="NA" />
<link rel="stylesheet" type="text/css" href="/stylesheet.css" media="screen" title="FBC" />
<script type="text/javascript" src="drop_down.js"></script>
<title>A Mesquite Country Christmas - Register for account</title>
</head>
<body>

<div id="wrap">

<a href="/index.html">
<img id="frontphoto" src="/images/header.png" width="760" height="237" alt="Mesquite Country Christmas" border="0"></a>

<div id="menu">

<h2 class="hide">Menu:</h2>

<ul id="avmenu">
<li><a href="index.html">Home</a></li>
<li><a href="christmasstory.html">The Christmas Story</a></li>
<li><a href="directions.html">Directions</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="#">Photos</a>
  <ul>
      <li><a href="2007photos.html">2007</a></li>
  </ul></li>
<li><a href="#">Videos</a>
  <ul>
      <li><a href="2007videos.html">2007</a></li>
  </ul></li>
<li><a href="guestbook.php">Guestbook</a></li>
<li><a href="webcam.html">Web Cam</a></li>
<li><a href="webradio.html">Internet Radio</a></li>
<li><a href="http://www.noradsanta.org/" TARGET="_blank">Track Santa</a></li>
<li><a href="projects.html">Projects & How Tos</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="contact_us.html">Contact Us</a></li>
</ul>

<center><a href="http://www.toysfortots.org/" TARGET="_blank"><img src="/images/toys_for_tots.jpg" border="0" width="110" height="153" vspace="10"></a></center>

<center><a href="http://christmas.bronners.com/2007/house/534.html"><img src="http://christmas.bronners.com/voteforme/vote.jpg" border="0" width="110" height="153" alt="christmas decorations" vspace="10"></a></center>

</div>

<div id="content">


<div class="fadebox">

<h2>Register for a FREE Account</h2>

<hr />

<p> In order to submit your display on our website, we require that you register for a free account. This will enable you to make changes to your listings each year. If you already have an account then <a href="login.php"> Log In</a> now.</p>

<table width="28%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>	

<table width="331" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form action="register.php" method="post">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="2"><strong>Registration - Please fill in all fields. </strong></td>
</tr>
<tr>
<td width="103">Email:</td>
<td width="180"><input type="text" name="email" size="30" maxlength="40" /></td>
</tr>
<tr>
<td>Desired Password:</td>
<td><input type="password" name="password" size="30" maxlength="20" /></td>
</tr>
<tr>
<td colspan="2" align="right" class="errorText">
<?php
// then we check for the error message
if (isset($error)) {
   echo $error . '<br />';
}
?> </td>
</tr>
<tr>
<td colspan="2" align="right"><input value="Register Now" name="submit" type="submit"></td>
</tr>
</table>
</td>
</form>
</tr>
</table></td>
</tr>
</table>


   </div>
</div>


<div id="footer">
© 2007 Mesquite Country Christmas
</div>

</div>
</body>
</html>
<?php
}

?> 

Link to comment
Share on other sites

When you add this to the bottom

 

<?php
}

?> 

 

It keeps the page from being displayed at all, it is just a blank white page. You remove that and the page is displayed but error remains.

 

Actually if I remove it I get this error.

 

Parse error: syntax error, unexpected $end in /home/mesquit1/public_html/local/register.php on line 155

Link to comment
Share on other sites

Only if you click the Register button, but when it first loads it doesn't have the error.

 

The problem is the entire page logic isn't right.  It will have to be reworked.

 

No the page doesn't show at all now with the last code used.

 

http://www.mesquitechristmas.com/local/register.php

 

 

Now see the page is displayed when I click on the link and disappears when you click register with an empty feild so I see what you are saying now.

 

What am I doing wrong and do you know where i can find a script. If I can get past this registration/login the rest should be easy for me.

Link to comment
Share on other sites

<?php

// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (!isset($_POST['submit'])) {

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Mesquite Texas Country Christmas" />
<meta name="keywords" content="Mesquite, Texas, Country Christmas" />
<meta name="author" content="NA" />
<link rel="stylesheet" type="text/css" href="/stylesheet.css" media="screen" title="FBC" />
<script type="text/javascript" src="drop_down.js"></script>
<title>A Mesquite Country Christmas - Register for account</title>
</head>
<body>

<div id="wrap">

<a href="/index.html">
<img id="frontphoto" src="/images/header.png" width="760" height="237" alt="Mesquite Country Christmas" border="0"></a>

<div id="menu">

<h2 class="hide">Menu:</h2>

<ul id="avmenu">
<li><a href="index.html">Home</a></li>
<li><a href="christmasstory.html">The Christmas Story</a></li>
<li><a href="directions.html">Directions</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="#">Photos</a>
  <ul>
      <li><a href="2007photos.html">2007</a></li>
  </ul></li>
<li><a href="#">Videos</a>
  <ul>
      <li><a href="2007videos.html">2007</a></li>
  </ul></li>
<li><a href="guestbook.php">Guestbook</a></li>
<li><a href="webcam.html">Web Cam</a></li>
<li><a href="webradio.html">Internet Radio</a></li>
<li><a href="http://www.noradsanta.org/" TARGET="_blank">Track Santa</a></li>
<li><a href="projects.html">Projects & How Tos</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="contact_us.html">Contact Us</a></li>
</ul>

<center><a href="http://www.toysfortots.org/" TARGET="_blank"><img src="/images/toys_for_tots.jpg" border="0" width="110" height="153" vspace="10"></a></center>

<center><a href="http://christmas.bronners.com/2007/house/534.html"><img src="http://christmas.bronners.com/voteforme/vote.jpg" border="0" width="110" height="153" alt="christmas decorations" vspace="10"></a></center>

</div>

<div id="content">


<div class="fadebox">

<h2>Register for a FREE Account</h2>

<hr />

<p> In order to submit your display on our website, we require that you register for a free account. This will enable you to make changes to your listings each year. If you already have an account then <a href="login.php"> Log In</a> now.</p>

<table width="28%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>	

<table width="331" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form method="post">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="2"><strong>Registration - Please fill in all fields. </strong></td>
</tr>
<tr>
<td width="103">Email:</td>
<td width="180"><input type="text" name="email" size="30" maxlength="40" /></td>
</tr>
<tr>
<td>Desired Password:</td>
<td><input type="password" name="password" size="30" maxlength="20" /></td>
</tr>
<tr>
<td colspan="2" align="right" class="errorText">
</td>
</tr>
<tr>
<td colspan="2" align="right"><input value="Register Now" name="submit" type="submit"></td>
</tr>
</table>
</td>
</form>
</tr>
</table></td>
</tr>
</table>


   </div>
</div>


<div id="footer">
© 2007 Mesquite Country Christmas
</div>

</div>
</body>
</html>
<?php
}
else {
// MAKE CONNECTION
include ('db_connect.php');
// connect to the mysql server
$link = mysql_connect($host, $username, $password) or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database) or die ("Could not select database because ".mysql_error()); 

$errorList = array();
$pw = mysql_real_escape_string (trim($_POST['password']));
$email = mysql_real_escape_string (trim($_POST['email']));

if ($pw = "") {
		$errorList[] = 'Invalid entry: Password';
}
if (preg_match("/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$/", $email))   {
		//if (checkUnique ("users", "uemail", $email) == FALSE) {
		//$errorList[] = 'Email Taken, did you forget your PW?';
   	//}
}
else {
		$errorList[] = 'Invalid entry: Email';
}
//error checking
	if (sizeof ($errorList) == 0) {			
	$insert = mysql_query("INSERT INTO users VALUES  ('', '$email', '$pw')") or die("Could not insert data because ".mysql_error());
}
else {
	//errors
	echo 'Following errors were found:';
	echo '<br />';
	echo '<ul>';
	for ($x=0; $x<sizeof($errorList); $x++) {
		echo "<li>$errorList[$x]";
	}
	echo '</ul><br />';
	echo "Hit BACK to re-enter information";
}
}

?> 

Link to comment
Share on other sites

Ok tell me if this is true or not. I was told that the code needed to be outputted before any HTML because upon successful registration I need them to be redirected to http://www.mesquitechristmas.com/local/user.php which will be a secure page but isn't right now. That is the reason this was in the other code

 

header('Location: user.php');
      exit();

 

Also I had this embedded in the HTML so I could show the error where I needed to

 

<td colspan="2" align="right" class="errorText">
<?php
// then we check for the error message
if (isset($error)) {
   echo $error . '<br />';
}
?> </td>

 

 

Now with your code I noticed it says $errorList, so would I chage $error in the code above to show $errorList?

 

-Thanks for your help....

 

 

 

Link to comment
Share on other sites

$error was just a variable, and when the page get's reloaded, so does the variable.  You would have to store it in a session or global in order to bring it back when you click on Register or use Java.

 

You can always use a HTML redirect instead of header if you wanted to.  But if you want to arrange the code so the HTML is at the bottom instead of the top, you can use a header.

 

Come to think of it, if all goes well and they hit Submit, HTML is not displayed unless there is a error.  So header should still work.

 

Just change this line

{
$insert = mysql_query("INSERT INTO users VALUES  ('', '$email', '$pw')") or die("Could not insert data because ".mysql_error());
header('Location: user.php');
exit();
}

 

Link to comment
Share on other sites

Well I tried your code but didn't like the fact that the error was displayed on another page and the user had to hit the back button. I like it better with the error being displayed on the same page right above the submit button like it is now.

 

Ok well I have got this code working now with the exception that you can register with the same email multiple times when you are not suppose to be allowed. So I am almost there with this script. Here is that code that I went back to and the empty fields works now.

 

<?php

// here, we check if the form has been submitted, because we need to handle
// redirection before we handle outputting the HTML stuff.
if (isset($_POST['submit'])) {
   if (empty($_POST['email']) || empty($_POST['password'])) {
   $error = 'Please fill in all fields.';  // here, they have not filled in either the username OR the password.  Set an error.
   }else {

// MAKE CONNECTION
include ('db_connect.php');  

// connect to the mysql server
$link = mysql_connect($host, $username, $password)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());

// check if the email is taken
$check = "select id from users where email = '".$_POST['email']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows != 0) {

      // redirect them to the user account page, because we successfully ran the SQL
      // notice how we haven't output ANYTHING to the browser yet- header() works
      header('Location: user.php');
      exit();
   }else {
       $error = 'There was a problem.  That email is already in use.';
   }
// insert the data
$insert = mysql_query("INSERT INTO users VALUES  ('NULL', '".$_POST['email']."', '".$_POST['password']."')")
or die("Could not insert data because ".mysql_error());

}

}
else { 
// now here, we've either redirected to the user account page, this is the first visit, or there
// was an error with the form/registration.  So, we echo the HTML
}

?> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Mesquite Texas Country Christmas" />
<meta name="keywords" content="Mesquite, Texas, Country Christmas" />
<meta name="author" content="NA" />
<link rel="stylesheet" type="text/css" href="/stylesheet.css" media="screen" title="FBC" />
<script type="text/javascript" src="drop_down.js"></script>
<title>A Mesquite Country Christmas - Register for account</title>
</head>
<body>

<div id="wrap">

<a href="/index.html">
<img id="frontphoto" src="/images/header.png" width="760" height="237" alt="Mesquite Country Christmas" border="0"></a>

<div id="menu">

<h2 class="hide">Menu:</h2>

<ul id="avmenu">
<li><a href="index.html">Home</a></li>
<li><a href="christmasstory.html">The Christmas Story</a></li>
<li><a href="directions.html">Directions</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="#">Photos</a>
  <ul>
      <li><a href="2007photos.html">2007</a></li>
  </ul></li>
<li><a href="#">Videos</a>
  <ul>
      <li><a href="2007videos.html">2007</a></li>
  </ul></li>
<li><a href="guestbook.php">Guestbook</a></li>
<li><a href="webcam.html">Web Cam</a></li>
<li><a href="webradio.html">Internet Radio</a></li>
<li><a href="http://www.noradsanta.org/" TARGET="_blank">Track Santa</a></li>
<li><a href="projects.html">Projects & How Tos</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="contact_us.html">Contact Us</a></li>
</ul>

<center><a href="http://www.toysfortots.org/" TARGET="_blank"><img src="/images/toys_for_tots.jpg" border="0" width="110" height="153" vspace="10"></a></center>

<center><a href="http://christmas.bronners.com/2007/house/534.html"><img src="http://christmas.bronners.com/voteforme/vote.jpg" border="0" width="110" height="153" alt="christmas decorations" vspace="10"></a></center>

</div>

<div id="content">


<div class="fadebox">

<h2>Register for a FREE Account</h2>

<hr />

<p> In order to submit your display on our website, we require that you register for a free account. This will enable you to make changes to your listings each year. If you already have an account then <a href="login.php"> Log In</a> now.</p>

<table width="28%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>	

<table width="331" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form action="register.php" method="post">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="2"><strong>Registration - Please fill in all fields. </strong></td>
</tr>
<tr>
<td width="103">Email:</td>
<td width="180"><input type="text" name="email" size="30" maxlength="40" /></td>
</tr>
<tr>
<td>Desired Password:</td>
<td><input type="password" name="password" size="30" maxlength="20" /></td>
</tr>
<tr>
<td colspan="2" align="right" class="errorText"><?PHP
// then we check for the error message
if (isset($error)) {
   echo $error . '<br />';
}
?> </td>
</tr>
<tr>
<td colspan="2" align="right"><input value="Register Now" name="submit" type="submit"></td>
</tr>
</table>
</td>
</form>
</tr>
</table></td>
</tr>
</table>


   </div>
</div>


<div id="footer">
© 2007 Mesquite Country Christmas
</div>

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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.