<form action="mail.php" method="post" target="_blank">
<textarea name="mess" cols="50" rows="5"></textarea>
<input name="send" type="submit" value="Send">
</form>
After pressing the button "submit", brouwser will open a new window with some text like "OK, your messagw sent to our mailbox".
Can I make this "new" window NOT fullsize of browser, but 400x300 resolution.
(also i have "mail.php" file with the next code:
<?php
if (isset ($mess))
{
$mess = substr($mess,0,10000);
if (empty($mess))
{
echo "<center><b>Message written<p>";
echo "<a href=back-form.html>Go back and make all steps correctly</a>";
exit;
}
}
else
{
$mess = "Unspecified";
}
$i = "не указано";
if ( $mess == $i)
{
echo "Error! The script does not have to pass parameters!";
exit;
}
$to = "[email protected]"; /*адрес*/
$subject = "Message to your website";
$message = "Message:$mess";
mail ($to,$subject,$message) or print "Cant send your letter!";
echo "<center><b>Thanks for ypur attention.";
exit;
?>
)