Skip to content

Instantly share code, notes, and snippets.

@08shubhamjindal
Created September 15, 2016 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 08shubhamjindal/733c3c9b6b0c7358f4c3e9cf5dc5841a to your computer and use it in GitHub Desktop.
Save 08shubhamjindal/733c3c9b6b0c7358f4c3e9cf5dc5841a to your computer and use it in GitHub Desktop.
contact form using of php
<html>
<head>
<title>form</title>
</head>
<body>
<?php
$title = $_POST['title'];
$name =$_POST['name'];
$response = $_POST['response'];
$comments = $_POST['comments'];
$strip_post = strip_tags($comments);
print "thank you , $name for your posting: $strip_post ";
?>
<p>fill this form</p>
<form action="shoppingcart.php" method="POST" enctype="multipart/form-data">
<p> name: <select name="title">
<option value="Mr.">Mr.</option>
<option value="Mrs.">Mrs.</option>
</select>
<input type-"text" name="name" size="20"></p>
<p>Email Address:<input type="text" name="email" size="20"></p>
<p>Response: This is....<input type="radio" name="response" value="excellent"/>excellent
<p>Response: This is....<input type="radio" name="response" value="okay"/>okey
<p>Response: This is....<input type="radio" name="response" value="boring"/>boring
<p>comments:<textarea name="comments" rows="3" cols="30"></textarea></p>
<input type="submit" name="submit" value="send feedback"/>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment