Hi, I look in the forum. I tried diferents this, but I don't know how.
I have to validate that the field is not blank. Someone can help me?
This is my php file:
<?php session_start(); if (!isset($_SESSION['username'])) { echo "You've been logged out. <a href='main-index-login.php'>Click here</a> to log in."; die(""); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="shortcut icon" href="../images/favicon/favicon.ico"/> <link rel="icon" type="image/gif" href="../images/favicon/animated_favicon1.gif" /> <link href="../css/styleadmin.css" type="text/css" rel="stylesheet" media="screen"> <link href="../css/adminTabMenu.css" type="text/css" rel="stylesheet" media="screen" /> <script type="text/javascript" src="../ckeditor/ckeditor.js"></script> <script type="text/javascript"> </script> </head> <body> <div id="mainallpage"> <div id = "frmqrySend"> <form action='qrysend.php' method='post' name='hgmailer'> <br/> <textarea id="editor1" name="editor1" rows="10" cols="10"></textarea> <script type="text/javascript"> CKEDITOR.replace( 'editor1' ); </script> <br/> <input type = 'submit' name='submit' value='Enviar' /> </form> </div> </div> </body> </html>