how can add formmail in our pages?
is it possible to add form mail under this hostin to my web pages?
how can add formmail in our pages?
is it possible to add form mail under this hostin to my web pages?
upgrade ile işim yokta hiç bi sekilde FTP ile baglanamadim
onun için bu 5 olsun
To add a form which will be mailed to you .... you need either Perl cgi-bin or PHP
I think Bizhat doesnt have both of these for new free users
In php you need to use the mail() function....which most of the free Php hosting sites disable so that their server doesnt get down due to continuous spamming . coz anyone can send infinite mails per second using the mail function.
In case you want to know the exact method for php... here it is
1.Create a page with the following php code
<?
$to = "[email protected]";
$subject = "Comments from {$_POST['name']} : {$_POST['email']}";
$msg= "Your Message...... Comments: {$_POST['comments']}";
mail($to,$subject,$msg);
?>
do not copy the code below
Herethe $post is a global array which contains all the varibales of the form being submitted.
'name' = i have created a text box with the name - 'name' and the {$_POST['name']} will get substituted with the contents in the form inside the text box with the name - 'name'
Similarly the same for email , comments
the mail(x.x.x) will mail the value of $msg to the address specified in the $to variable with the subject as $comments.
Save the above form as email.php
2. Create a form in Frontpage/ Dreamweaver
3. In the html code ....create/edit the 'method' tag and make it method="post" and edit the action tag and make it action="email.php"
4. also create a button name submit inside the form
the code of the form must now look like this:
<form name="form1" method="post" action="email.php">
Save this form with any name and save both the above forms in the same directory.
Bookmarks