you use session variable for this in php. for a complete php login scrpt help take a look to below mention url:
[url]http://www.phpeasystep.com/phptu/6.html[/url]

@geneh23,
may be your error coming for md5 password conversion. please check your password field in your database thru phpmyadmin that is your password field stored with md5 value. if not then remove md5 conversion from this script. or one time please remove the below mention line and try:
[CODE]$password = md5($password);[/CODE]

Wbr:
Hemant Goyal

Please use the below mention code for batter security. this will not contain "session_register":

[CODE]<?php
/ Check User Script /
session_start(); // Start Session

if (isset($_POST['Submit'])) //Replace Submit with your submit button name.
{

include 'membership_db.php';
// Conver to simple variables
$username = $_POST['username'];
$password = $_POST['password'];

if((!$username) || (!$password)){
echo "Please enter ALL of the information! <br />";
include 'logIn.html';
exit();
}

// Convert password to md5 hash
$password = md5($password);

// check if the user info validates the db
$sql = mysql_query("SELECT * FROM users WHERE username='$username' AND password='$password' AND activated='0'");
$login_check = mysql_num_rows($sql);

$r = mysql_query($q);

if ( $obj = @mysql_fetch_object($r) )
{

while ($r = mysql_fetch_array($r))
{

// Login good, create session variables
$_SESSION["valid_id"] = $obj->id;
$_SESSION['first_name'] = $row['$first_name'];
$_SESSION['last_name'] = $row['$last_name'];
$_SESSION['email_address'] = $row['$email_address'];
$_SESSION['user_level'] = $row['$user_level'];
$_SESSION["valid_time"] = time();

}

mysql_query("UPDATE users SET last_login=now() WHERE userid='$userid'");

// Redirect to member page
header("Location: login_success.php");
}

else {
echo "You could not be logged in! Either the username and password do not match or you have not validated your membership!<br />
Please try again!<br />";
include 'logIn.html';
}
}
?>[/CODE]

if you get any error in above mention script then please post your query here. i hope this will solve your problem.
Wbr:
Hemant Goyal

Dear geneh23,
Please use below mention rectified user login page coding. i hope this will solve your problem:

[CODE]<?php
/ Check User Script /
session_start(); // Start Session

if (isset($_POST['Submit'])) //Replace Submit with your submit button name.
{

include 'membership_db.php';
// Conver to simple variables
$username = $_POST['username'];
$password = $_POST['password'];

if((!$username) || (!$password)){
echo "Please enter ALL of the information! <br />";
include 'logIn.html';
exit();
}

// Convert password to md5 hash
$password = md5($password);

// check if the user info validates the db
$sql = mysql_query("SELECT * FROM users WHERE username='$username' AND password='$password' AND activated='0'");
$login_check = mysql_num_rows($sql);

if($login_check > 0){
while($row = mysql_fetch_array($sql)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}
// Register some session variables!
session_register('first_name');
$_SESSION['first_name'] = $first_name;
session_register('last_name');
$_SESSION['last_name'] = $last_name;
session_register('email_address');
$_SESSION['email_address'] = $email_address;
session_register('special_user');
$_SESSION['user_level'] = $user_level;

    mysql_query("UPDATE users SET last_login=now() WHERE userid='$userid'");

    header("Location: login_success.php");
}

} else {
echo "You could not be logged in! Either the username and password do not match or you have not validated your membership!<br />
Please try again!<br />";
include 'logIn.html';
}
}
?>[/CODE]

I hope that the above mention code is solve your problem. if solved then please mark this thread as solved.

change line no. 9,10,11 in Contactthanks.php as below:

[CODE]$Skill1 = Trim(stripslashes($_POST['Skill1']));
$Skill2 = Trim(stripslashes($_POST['Skill2']));
$Skill3 = Trim(stripslashes($_POST['Skill3']));[/CODE]

This will work for you.

why not you use the below syntax:
[CODE]$birthday = "$birthday_year-$birthday_month-$birthday_day";[/CODE]

in the replace of line:
[CODE]$birthday = strtotime($birthday_year, $birthday_month, $birthday_day);[/CODE]

this will work and given output in YYYY-MM-DD format.

first you should create the date in variable with your day,month,year data and submit it in database in the format YYYY-MM-DD.
your date should be in YYYY-MM-DD format.

Use the below Specified Code for Looping Textbox:

[CODE]<form name=textbox method=post>
How Many Textboxes you Want to Apper: <input type="text" name="how_many" /><br/>
<input type=submit value="Get Text Box" name=submit />
</form>
<?PHP
if (isset($_POST['submit']))
{
$how_many = $_POST['how_many'];
echo "<form name=something_here method=post>";
for ($i=0; $i<$howmany; $i++)
{
echo "Textbox $i: <input type=text name=text id=text
$i><br/>";
}
echo "<input type=submit name=submit value=Submit></form>";
}
?>[/CODE]

Could you paste Your search.php page code so i will review it.
and also please tell me that the above code will work fine or not?

I have Fix Your Code Please Use Below Code:

[CODE]<strong><p align="center">Air Conditioner Data Update</p></strong><br>

<?php
$host="localhost"; // Host name
$username="username"; // Mysql username
$password="pass"; // Mysql password
$db_name="dbname"; // Database name
$tbl_name="sims_ac"; // Table name

// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$a=$_REQUEST['a']; //Its getting value from previoes page
echo $a; //its echoing value which I get from previous page.
//$a='1008'; // its static value this code work perfectly when I assign value like this, but not working when I get the value from previoes page.

$sql="SELECT * FROM $tbl_name WHERE mid(SiteID,7)='$a'";
$result=mysql_query($sql);

// Count table rows
$count=mysql_num_rows($result);
?>
<table width="500" border="0" cellspacing="1" cellpadding="0">
<form name="form1" method="post" action="sims_ac_update.php">
<tr>
<td>
<table class="mytable" width="500" border="0" cellspacing="1" cellpadding="0">

<tr>
<td align="center"><strong>SiteId</strong></td>
<td align="center"><strong></strong></td>
<td align="center"><strong>AcMake</strong></td>
<td align="center"><strong>AcCapacity </strong></td>
<td align="center"><strong>AMP</strong></td>
<td align="center"><strong>qty</strong></td>

</tr>
<?php
while($rows=mysql_fetch_array($result)){
?>
<tr>

<td align="center"><? //$SiteId[]=$a; ?><? echo $a; ?></td>
<td align="center"><input name="SrNo[]" type="hidden" id="SrNo" value="<? echo $rows['SrNo']; ?>"></td>
<td align="center"><input name="AcMake[]" type="text" id="AcMake" value="<? echo $rows['AcMake']; ?>"></td>
<td align="center"><input name="AcCapacity[]" type="text" id="AcCapacity" value="<? echo $rows['AcCapacity']; ?>"></td>
<td align="center"><input name="AMP[]" type="text" id="AMP" value="<? echo $rows['AMP']; ?>"></td>
<td align="center"><input name="qty[]" type="text" id="qty" value="<? echo $rows['qty']; ?>"></td>
</tr>
<?php
}
?>
<tr>
<td colspan="4" align="center"><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<?php
// Check if button name "Submit" is active, do this
if (isset($_POST['Submit']))
{
for($i=0;$i<$count;$i++){

echo $a;
$b= $_POST['AcMake'][$i];
//echo $b;
$c= $_POST['AcCapacity'][$i];
//echo $c;
$d= $_POST['AMP'][$i];
//echo $d;
$e= $_POST['qty'][$i];
//echo $e;
$f= $_POST['SrNo'][$i];
//echo $f; ...

Why not You Chose the Login System in Your Site Admin Panel because this Make Your Admin Panel More Secure and Only You are Access Your admincp.php page not anyone.

Carrots commented: Thanks man +1

Change Your Line #65 from:

[CODE]if($_REQUEST["Submit"]=="Submit")[/CODE]

With this One:

[CODE]if (isset($_POST['Submit']))[/CODE]

Your Code will Work.

your welcome.
if your problem is solved then mark this forum as solved.

Use the Below Code for Your Problem:

[CODE]<?PHP
$ids = array();
for ($i=0; $i<5; $i++)
{
$size1 = 1;
$size2 = 1000000;
$random = rand($size1, $size2);
$ids[] = $random;
}
echo "<br .>".print_r($ids);
?>[/CODE]

The above Code is Tested and Worked.
Output:
[CODE]Array ( [0] => 758820 [1] => 197449 [2] => 554902 [3] => 126587 [4] => 862214 )
1[/CODE]

Yes You Need to Purchase SMS Package from any Mobile SMS Providing Company. for SMS Company Please Find it on Google with keyword "Bulk SMS in India".
after Purchasing Bulk SMS You need to Setup API in Your Registration Page after That Your Script is Worked..

use below script:

[CODE]$string = "This is a test.";

$new_string = str_replace (" ", "", $string);

echo "$new_string";[/CODE]

The above Script Tested and Worked fine.....

@above.
if your script is work and ur problem is solved then please mark this thread to solve.

Sorry Friend.

am Edit my Code.

Thanx for Your Suggestion.

You may Use the Belwo Specified Code:

[CODE]$hostname = "123.xxx.xxx.xxx"; // usually is localhost, but if not sure, check with your hosting company, if you are with webune leave as localhost
$db_user = "username"; // change to your database password
$db_password = "password"; // change to your database password
$database = "database_name"; // provide your database name

STOP HERE

####################################################################

THIS CODE IS USED TO CONNECT TO THE MSSQL DATABASE

$db = mssql_connect($hostname, $db_user, $db_password);
mssql_select_db($database,$db); //Database Connect[/CODE]

EDIT: Sorry Code Edited for Some Error.

the best solution is session..
because after a specified time the use automatically logged out so session is best option for security.

Please Store your all Username and Password in Database with Encrypt of Password Field. This is Most Security Option in admin Panel.

You may Use Below Specified Code for Creating a href in PHP from Database:

[CODE]<?PHP
echo "<td width='101'><a href=view_supplier_details.php?details_ID=".$row['$details_ID'].">Your Text Goes Here</a></td>";
?>[/CODE]

in above Code Please Change $details_ID with Your Field Name.

You may Use the Below Specified Code:

[CODE]<?PHP
echo "<a href=\"http://digg.com/submit?phase=2&url=".$_POST["url"]."&title=".$_POST["title"]." target=\"_blank\"><img src=\"http://www.virtualdolphintherapy.com/images/digg.png\" alt=\"Digg\" width=\"64\" height=\"63\" border=\"0\"/></a>";
?>[/CODE]

May be You Create Your File in Earlear version of PHP That's Not Support Your Server.
I Suggest You That Please Reload Your OS or Paste Your PHP File code There.
If Your PHP File contain any Error It's Not Run.
and Also go to Your CPanel and Check it Support PHP or witch Version PHP is Installed on Your Server.
Thank You.

[QUOTE=Thorby68;982326]I'm experiencing alot of issues trying to create the $to field as a variable, PHP is reporting Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/shhdcouk/public_html/PHP/class_vcard.php on line 172 and I'm not sure why.... my code is.

$send = $_POST['email1'];
$to = $send;
$subject = "Registered for xxxx";
$body="Thank you for registering your details xxxx\n\n";
$headers= "From: xxxx Web Site\r\n";

if(mail($to, $subject, $body, $headers)) {
include ("OK.htm");
}
else {
include("Error.htm");
}

Can anyone help a frustrated newcomer?[/QUOTE]

I am Check your code and Fid a Problem in Your Query.

Please Change Your Query with Below Code:
[ICODE]$to = $send;[/ICODE]

If u are POST your $send Variable then use:
[ICODE]$to = $_POST['$send'];[/ICODE]

Try the above Solution may be your Problem is solved.