Location: PHPKode > projects > Guestbook and Comment Box > gb_admin/guestbook/add.php
<?

/************************************

Script : Free Guest Book and comment box
Website : http://www.agrizlive.com

Script is provided Under GPU Non-Commercial License
Agrizlive.com doesn't provide any WARRANTY for this script
**************************************/

	if(defined('AGRIZ_FREE_SCRIPTS') && AGRIZ_FREE_SCRIPTS == 'agrizlive.com'){
	}
	else{
		exit;
	}
	
	include_once("functions/gb_functions.php");
	$t = '';
	if(isset($_REQUEST['submit']))
	{
		$t = editGuestBook($_REQUEST['name'],$_REQUEST['email'],$_REQUEST['url'],$_REQUEST['comment'],$_REQUEST['status'],$_REQUEST['id']);
	}
	
	$value_guestbook = getGuestBookID($_REQUEST['id']);
?>
<div id="box">
				<h3 id="adduser">Edit GuestBook <?=$t?></h3>
				<form id="form" action="" method="post">
				  <fieldset id="personal">
					<legend>INFORMATION</legend>
					<p>
						<label for="name">Name</label>
						<input type="text" name="name" value="<?=stripslashes($value_guestbook['user_name'])?>" />
					</p>
					<p>
						<label for="email">Email</label>
						<input type="text" name="email" value="<?=stripslashes($value_guestbook['user_email'])?>" />
					</p>
					<p>
						<label for="url">Website</label>
						<input type="text" name="url" value="<?=stripslashes($value_guestbook['user_website'])?>" />
					</p>
					<p>
						<label for="comment">Comment</label>
						<textarea name="comment"><?=stripslashes($value_guestbook['guestbook_message'])?></textarea>
					</p>
					<p>
						<label for="status">Status</label>
						<select name="status">
							<option value="approved" <?if($value_guestbook['status'] == "approved"){?>selected="selected"<?}?>>Approved</option>
							<option value="pending" <?if($value_guestbook['status'] == "pending"){?>selected="selected"<?}?>>Pending</option>
						</select>
					</p>
					</fieldset>
				<div align="center">
					<input id="button1" type="submit" value="Send" name="submit" /> 
					<input id="button2" type="reset" />
				</div>
			</form>		
</div>	
Return current item: Guestbook and Comment Box