|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I have a php form mailer on my site.
When I submit a form, even if i leave the fields blank it returns like this: Code:
Below is the result of your feedback form. It was submitted on Sunday, September 7th, 2008 at 09:15 AM. Name: Email: Company: etc. etc. However this only happens when I fill out the form. It seems I'm getting business on my site but when people fill out the form it comes back only like this: Code:
Below is the result of your feedback form. It was submitted on Sunday, September 7th, 2008 at 09:15 AM. Does anybody know whats going on or can help me? Thanks in advance, Ryan |
| Sponsored Links |
|
|
|
|||
|
Code:
<?PHP
$to = "my@email.com";
$subject = "New Order";
$headers = "http://www.mockup-markup.com";
$forward = 0;
$location = "yoursite.com";
$timestamp = date('Y-m-d_His');
mkdir('/home/content/r/t/u/rtuosto/html/clients/uploads/' . $timestamp);
$target_file = '/home/content/r/t/u/rtuosto/html/clients/uploads/' . $timestamp . '/' . basename($_FILES['file']['name']);
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "Below is the result of your feedback form. It was submitted on $date at $time.\n\n";
if ($_SERVER['REQUEST_METHOD'] == "POST") {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header ("Location:$location");
}
else {
}
if (move_uploaded_file($_FILES['file']['tmp_name'], $target_file)) {
// Succeeded
} else {
}
?>
|
|
|||
|
you can view the source at Professional Web Design PSD to XHTML Conversion, W3C Valid Code, CSS Table-less Layouts, SEO Management, XHTML, CSS, XML, RSS, Javascript, JQuery Javasript, SEO Keyword Specialist, SEO Ad Campaign Management, Custom Web Design, WordPress, Joomla, Zen
Everything in the form is named. The form works properly too, I dont know why I'm getting these completely blank submissions. |
| Sponsored Links |
|
|
|
|||
|
Well I don't really know anything about php, I just copied the script.
Somebody said it might be somebody trying to use GET method to do something to my site? I'm not really sure but does that mean anything to you? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VB2008 Tutorial - Print Screen | travy92 | VB Tutorials | 22 | 11-20-2008 01:02 PM |
| Coding a change password form | InternetGeek | Visual Basic Programming | 11 | 02-16-2008 02:53 PM |
| I only see the same form in all tabs at back end | tenawan | ionFiles | 1 | 01-14-2008 07:52 AM |
| Calling a form from another form | Void | Managed C++ | 1 | 07-01-2006 10:44 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%