Unstoppable Domains

Feedback html

Spaceship Spaceship
Watch
Impact
19
Did i do this right? my first time by myself creating one

PHP:
<html>
<head>
<title>Feedback</title>
<style type="text/css">
<!--
body,td,th {
	color: #0000FF;
}
body {
	background-color: #FFFFFF;
}
-->
</style></head>

<body>
<form name="form1" method="post" action="">
  <p align="center">
    <strong>Name</strong><br>
    <input type="text" name="textfield">
    <br>
    <strong>Email Address</strong> <br>
    <input type="text" name="textfield2">
    <br>
    <strong>Subject</strong><br>
    <input type="text" name="textfield3">    
    <br>
    <strong>Message</strong><br>
    <textarea name="textarea"></textarea>
    </p>
  <p align="center">
    <input type="submit" name="Submit" value="Submit" mailto="mailto:[email protected]">
  </p>
  <p>ย   </p>
</form>
</body>
</html>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
The only thing is output, when it is submitted no one will know, I dont recommend the mailto that your using, form processors are much better, but the form looks ok.
 
0
•••
dkin69 said:
The only thing is output, when it is submitted no one will know, I dont recommend the mailto that your using, form processors are much better, but the form looks ok.


Ok thank you
 
0
•••
U might want to use a php script instead cause the html doesn't allow much capability suited for a feedback.
and like dkin69 said, a form processor is much better on tat. it can be easily read and done.
 
0
•••
yeah it mite be easier to use the PHP mail() function so that u can confirm that it was mailed.
 
0
•••
I dont know php :(
 
0
•••
0
•••
0
•••
Use PHP instead unless you are hosting ASP. That's the only way you will get it to work. Unless it just mails to you but that isnt very interesting now is it HMmmm.
 
0
•••
This can easily be done with php, something like:

feedback.php:
PHP:
<html>
<head>
<title>Feedback</title>
<style type="text/css">
<!--
body,td,th {
    color: #0000FF;
}
body {
    background-color: #FFFFFF;
}
-->
</style>
</head>

<body>
<form name="form1" method="post" action="feedback.php">
  <p align="center">
    <strong>Name</strong>
    <br>
    <input type="text" name="name">
    <br>
    <strong>Email Address</strong>
    <br>
    <input type="text" name="email">
    <br>
    <strong>Subject</strong>
    <br>
    <input type="text" name="subject">
    <br>
    <strong>Message</strong>
    <br>
    <textarea name="message"></textarea>
    </p>
  <p align="center">
    <input type="submit" name="Submit" value="Submit">
  </p>
  <p>ย </p>
</form>
<?php

if($_POST['submit'])
{
if(empty($name) || empty($email) || empty($subject) || empty($message))
{
echo "One or more of the required fields were left blank.";
}
else
{
$to = "[email protected]"; //Your email
$name = $_POST['name']; //Sumbitter's name
$email = $_POST['email']; //Submitter's email
$subject = $_POST['subject']; //Subject of the email
$message = $_POST['message']; //The message
$msg = stripslashes($message);
$msg.= "/n/n$name";
$headers = "From: ". $email . "";

mail($to, $subject, $msg, $headers);
if (!mail)
{
echo "Mail could not be sent.";
}
else
{
echo "Mail sent.";
}
}
}
?>
</body>
</html>
;) :p
 
0
•••
everone told me php is better so thanks everone.
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back