Advertisement
| 10.13.2008 at 03:29PM PDT, ID: 23811131 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: |
require_once ('config.inc');
// Set the page title and include the HTML header.
$page_title = 'Register ';
if (isset($_POST['submit'])) { // Handle the form.
$con = mysql_connect("localhost","phimualp_defjam9","3490d32");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}mysql_select_db("phimualp_members", $con);
}
// if ($id && $fn && $ln && $e && $p && $un && $pw) { // If everything's OK.
// Make sure the username is available.
// $query = "SELECT * FROM members";
// $result = @mysql_query ($query);
// if (mysql_num_rows($result) == 0) { // Available.
error_reporting(0);
$ebits = ini_get('error_reporting');
error_reporting($ebits ^ E_NOTICE);
// Add the user.
$query = "INSERT INTO members (ID,Fname,Lname,Email,Phone,Username) VALUES ('$_POST[id]','$_POST[fname]','$_POST[lname]','$_POST[email]','$_POST[phone]','$_POST[username]')";
if (!mysql_query($query,$con))
{
die('Error: ' . mysql_error());
}
echo "Brother you have been added";mysql_close($con)
?>
<h1>Register</h1>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<fieldset>
<p><b>ID:</b> <input type="text" name="id" size="15" maxlength="15" </p>
<p><b>First Name:</b> <input type="text" name="fname" size="15" maxlength="15" </p>
<p><b>Last Name:</b> <input type="text" name="lname" size="30" maxlength="30" </p>
<p><b>Email:</b> <input type="text" name="email" size="40" maxlength="40" </p>
<p><b>Phone</b> <input type="text" name="phone" size="30" maxlength="30" </p>
<p><b>Username</b> <input type="text" name="username" size="30" maxlength="30" </p>
<p><b>Password:</b> <input type="password" name="password" size="20" maxlength="20"</p>
</fieldset>
<div align="center"><input type="submit" name="submit" value="Register" /></div>
</form><!-- End of Form -->
</td>
</tr>
</table>
</span></code>
</td>
</tr>
<tr
|
Advertisement