Locals Find!
New Member
Would those of you who understand php. Can you please take a look at my code and tell me whether this is secure to keep someone from using it to send out spam.
Thank You! I am still trying to learn this.
Here is my Form code:
Here is my PHP processing script:
Thank You! I am still trying to learn this.
Here is my Form code:
Code:
<form action="formprocess2.php" method="post">
<label for="name"><span class="req">*</span> Name:</label> <input type="text" name="name" id="name" />
<label for="email"><span class="req">*</span> Email:</label> <input type="text" name="email" id="email" />
<label for="phone"><span class="req">*</span> Phone:</label> <input
type="text" name="phone" id="phone" />
<label for="textarea-a">Textarea:</label> <textarea name="textarea" id="textarea-a">I would like to schedule a showing of the property at "3362 Dandolo Cir, Cape Coral, FL 33909" </textarea>
<input type="submit" name="mysubmit" value="Submit" /> </form>
PHP:
<?php
$name = $_POST["name"];
$email = $_POST["email"];
$phone = $_POST["phone"];
$textarea = $_POST["textarea"];
if(isset($textarea)) {
mail('jason@adtechia.com', 'Showing Request', "Name: $name: Phone: $phone Email: $email Request: $textarea");
header("Location: ../3362/index.html");
} else {
echo ("There has been a problem.");
}
?>