email forms

Clock

New Member
Hi there,

I have two questions regarding an email form.

First of all, I am creating an email form on a website I am building. I had never created one before so I just copied some tags from a tutorial site, easy enough. So, the size for the message box is small—only one row. I need to know how to increase the height of this as well. Can someone help me?

<input type="text" name="comment"
value="yourcomment" size="40">


Second. I am wondering how to put a word verification on this so that the owner of the website does not get spammed. Is word verification standard protocol these days?

Thanks for any help you have to offer.

Melinda
 

bannerflash

New Member
hy,

i have a similar mail form, you can take from there form and php script.

this is url adress for php script (validate just for email): www.bannerflash.ro/mail.php

and script that i use:
<?php
$proxy = $_SERVER['HTTP_X_FORWARDED_FOR'];
$ip = $_SERVER['REMOTE_ADDR'];
$nume=$_POST['nume'];
$email=$_POST['email'];
$mesaj=$_POST['mesaj'];
$control=$_POST['control'];


$to='[email protected]';
$subiect='Comanda de pe siteul meu';



$from= "$nume, $email, $proxy, $ip";
if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
{
echo "<br />Adresa de email introdusa <b> $email </b> nu are formatul cunoscut !<br />";
die;
}
if(isset($control))
{
mail($to, $subiect, $from, $mesaj);

}

echo ' Mesajul a fost trimis! <br /> Multumesc pentru interesul acordat site-ului www.bannerflash.ro, veti primi un raspuns in maxim 24 de ore.<br> Cu stima, Dan Neamtu. <br /><br /> <a href=index.html>Prima pagina</a>';
?>




and also html form you can get on first page www.bannerflash.ro


enjoy :)
 
Last edited:
Top