Advertising
Paste Description for i love gid and beave
i love gid and beave and john
- i love gid and beave
- Monday, August 22nd, 2005 at 11:16:31pm MDT
- ----_addstaff.php-SOF----
- <html>
- <head>
- <title>Insert-A-Person | http://mark-s.net/</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- </head>
- <body bgcolor="#FFFFFF" text="#000000">
- <p>Add a new staff member. Please fill out all fields.</p>
- <form action=".insert.php" method="post">
- <div align="left">Last Name:
- <input type="text" name="last">
- <br>
- First Name:
- <input type="text" name="first">
- <br>
- Nick Name:
- <input type="text" name="nick">
- <br>
- Job Title:
- <input type="text" name="title">
- <br>
- Main Phone:
- <input type="text" name="mainphone" maxlength="11" value="12125551212">
- <br>
- Mobile Phone:
- <input type="text" name="mobile" maxlength="11" value="12125551212">
- <br>
- E-Mail Address:
- <input type="text" name="email">
- <br>
- Address:
- <textarea name="address" rows="2"></textarea>
- <br>
- Access Level:
- <input type="text" name="alevel" maxlength="4" size="10">
- (4 digits)<br>
- Join Date:
- <input type="text" name="since_ym" size="10" maxlength="6">
- (MMYYYY) <br>
- Comments:
- <input type="text" name="comments" size="50" value="">
- <br>
- <input type="Submit">
- </div>
- </form>
- </body>
- </html>
- ------ EOF ------
- ----.include.php--SOF------
- <?
- $username="momma";
- $password="uberleetpassword";
- $database="netherweb";
- $first=$_POST['first'];
- $last=$_POST['last'];
- $nick=$_POST['nick'];
- $title=$_POST['title'];
- $mainphone=$_POST['mainphone'];
- $mobile=$_POST['mobile'];
- $email=$_POST['email'];
- $address=$_POST['address'];
- $alevel=$_POST['alevel'];
- $since_ym=$_POST['since_ym'];
- $comments=$_POST['comments'];
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $query = "INSERT INTO staff VALUES ('$last','$first','$nick','$title','$mainphone','$mobile','$email','$address','$alevel','$since_ym','$comments')";
- mysql_query($query);
- echo "Successfully added $first, $last ($nick) to the db!";
- mysql_close();
- ?>
- -----EOF------
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.