PHP Uploader Script Doesn't Work - Please Help
Moderator: General Moderators
-
ashfordlive
- Forum Newbie
- Posts: 8
- Joined: Sun Jun 03, 2007 1:13 pm
PHP Uploader Script Doesn't Work - Please Help
I have a PHP email form on my website that doesn't work. This is the codebase that I was given a couple of weeks ago. I had it done through a paid coder, but now I've paid, I can't get hold of him. The ZIP file is located on my server at http://ashfordlive.789mb.com/external/phpform.zip. If anyone can lend me a hand, this would be greatly appreciated.
well for a start it has been created assuming register_globals is on.
Try changing form.php to this:
Try changing form.php to this:
Code: Select all
$action = null;
if (isset($_REQUEST['action'])) {
$action = $_REQUEST['action'];
}
switch ($action) {
case "send":
sendMail();
showForm();
break;
default:
showForm();
}-
ashfordlive
- Forum Newbie
- Posts: 8
- Joined: Sun Jun 03, 2007 1:13 pm
PHP Uploader
I have tried the solution that you have suggested, and I get this problem when I visit the address in my browser. (Image insert doesn't work, so please click the link).
http://www.hotlinkfiles.com/files/58478 ... ormphp.bmp
Any other suggestions?
http://www.hotlinkfiles.com/files/58478 ... ormphp.bmp
Any other suggestions?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
ashfordlive
- Forum Newbie
- Posts: 8
- Joined: Sun Jun 03, 2007 1:13 pm
Code: Select all
<?php
$action = null;
if (isset($_REQUEST['action'])) {
$action = $_REQUEST['action'];
}
switch ($action) {
case "send":
sendMail();
showForm();
break;
default:
showForm();
}
?>-
ashfordlive
- Forum Newbie
- Posts: 8
- Joined: Sun Jun 03, 2007 1:13 pm
Code: Select all
<?php
require('uploader.php');
$action = null;
if (isset($_REQUEST['action'])) {
$action = $_REQUEST['action'];
}
switch ($action) {
case "send":
sendMail();
showForm();
break;
default:
showForm();
}
?>We'll get there in the end