Location: PHPKode > scripts > Mass Emailing > bulk-emailer/admin/users/edit.php
<?
/************************************

Script : Free BULK / MASS EMAILER
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/users.php");
	$status = "";
	
	
	if(isset($_REQUEST['id'])){
		if(isset($_REQUEST['submit']))
		{
			$status = editUserDetails($_POST['user_name'],$_POST['user_email'],$_REQUEST['id']);
		}
		
		$result_users = getUsersByID($_REQUEST['id']);
	}
	else
	{
		if(isset($_REQUEST['submit']))
		{
			$status = addUserDetails($_POST['user_name'],$_POST['user_email']);
		}
	}
?>
<div id="box">
	<h3 id="adduser">User Details <?=$status?></h3>
	<form id="form" action="" method="post">
		<fieldset>
			<legend>USER DETAILS</legend>
			<p>
				<label for="type">User name</label>
				<input type="text" name="user_name" value="<?=stripslashes($result_users['user_name'])?>" />
			</p>
			<p>
				<label for="type">User Email</label>
				<input type="text" name="user_email" value="<?=stripslashes($result_users['user_email'])?>" />
			</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: Mass Emailing