|
I have some php files for sending email with fields inputed information. but when I get my email it is blank. Is there any other php script that needs to be added or any settings that need to be added? |
|
ok i figured it out i now have it working. beond simple fix if you read the code right. |
What does your PHP code look like? I've got experience with this kind of problem so I might be able to help if I see what you're doing.
im also using this "<input name="cname" type="text" value="<?php echo htmlentities($cname) ?>" size="40" >"="" in="" the="" form="" and="" have="" made="" it="" regular="" values="" like="" "<input="" name="cname" type="text" value="" id="cname" size="40"> <?php $your_email ='email@email.com';
session_start(); $errors = ''; $name = ''; $visitor_email = ''; $user_message = '';
if(isset($_POST['submit'])) {
{ echo "
// Function to validate against any email injection attempts function IsInjected($str) { $injections = array('(n+)', '(r+)', '(t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } } echo"<!doctype html>n"; ?> NOTE: 2 values work the name and the message but nothing else works