Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to create php message 00

<?php session_start()?>
<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1"/>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
	</head>
<body>
	<nav class="navbar navbar-default">
		<div class="container-fluid">
			<a class="navbar-brand" href="https://campcodes.com">CampCodes</a>
		</div>
	</nav>
	<div class="col-md-3"></div>
	<div class="col-md-6 well">
		<h3 class="text-primary">PHP - Send Mail To Gmail Using PHPMailer</h3>
		<hr style="border-top:1px dotted #ccc;"/>
		<div class="col-md-3"></div>
		<div class="col-md-6">
			<form method="POST" action="send_email.php">
				<div class="form-group">
					<label>Email:</label>
					<input type="email" class="form-control" name="email" required="required"/>
				</div>
				<div class="form-group">
					<label>Subject</label>
					<input type="text" class="form-control" name="subject" required="required"/>
				</div>
				<div class="form-group">
					<label>Message</label>
					<input type="text" class="form-control" name="message" required="required"/>
				</div>
				<center><button name="send" class="btn btn-primary"><span class="glyphicon glyphicon-envelope"></span> Send</button></center>
			</form>
			<br />
			<?php
				if(ISSET($_SESSION['status'])){
					if($_SESSION['status'] == "ok"){
			?>
						<div class="alert alert-info"><?php echo $_SESSION['result']?></div>
			<?php
					}else{
			?>
						<div class="alert alert-danger"><?php echo $_SESSION['result']?></div>
			<?php
					}
 
					unset($_SESSION['result']);
					unset($_SESSION['status']);
				}
			?>
		</div>
	</div>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Php :: count letters in string without space or characters and numbers in php 
Php :: PHP strpbrk — Search a string for any of a set of characters 
Php :: Personnaliser le logo de connexion WordPress sans plugin 
Php :: codeigniter query Profiling - To disable the profiler 
Php :: php curl get text only 
Php :: search and pagination in ci4 
Php :: example of valid php variables 
Php :: php send sms for aws sns sdk 2 
Php :: VerifyEmailController in Api 
Php :: get basename without extension Laravel 
Php :: base64 to arraybuffer php 
Php :: cant use migrate with sail laravel 
Php :: Automatically downloading images from any URL location 
Php :: laravel belongsto with condition date 
Php :: MForm Bild Attribute 
Php :: php crash course could not find driver 
Php :: publish algolia search in laravel 
Php :: Cant find AddHandler of PHP inside Apache configuration files 
Php :: replace class 
Php :: standalone laravel orm 
Php :: yii2 label of ActiveField 
Php :: [name] 
Php :: wordpress session variables 
Php :: show number 1 as 00001 laravel 
Php :: multiply 
Php :: diferencias empty() e isset() 
Php :: php recapcha 
Php :: send notification php to PC 
Php :: yoast seo alternative for laravel 
Php :: undefined type excel 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =