I am having a problem with sessions in php.
this is index.php
<form method="post" action="send.php">
No. HP Tujuan : <input type="text" name="nohp" value="+62"><br>
Pesan : <textarea name="msg"></textarea><br>
<input type="submit" name="submit" value="Kirim SMS">
</form>
and this send.php
<?php
mysql_connect("dbhost", "dbuser", "dbpass");
mysql_select_db("sms");
$noTujuan = $_POST['nohp'];
$message = $_POST['msg'];
$query = "INSERT INTO outbox (DestinationNumber, TextDecoded, CreatorID) VALUES ('$noTujuan', '$message', 'Gammu')";
$hasil = mysql_query($query);
if ($hasil) echo "SMS Success";
else echo "SMS Failed";
?>
I want to create a session, but I dont know how. I want send.php page to become accessible only if a user has already completed the form in index.php.