Dan B
01-15-2010, 06:37 PM
What's an easy way for people to submit files to me besides me displaying my e-mail?
How can I have an BROWSE and then upload button, then submit?
Or does anybody have other suggestions?
jacobcolton
01-15-2010, 07:29 PM
An upload script is likely to be the easiest way, what language can you / do you code in?
Regards,
Jacob
dennisthompson
01-15-2010, 08:18 PM
If you're using a CMS (Drupal, Joomla, Wordpress) you might be able to find to find a PHP contact form. That would be the easiest as jacobcolton said.
Dan B
01-15-2010, 11:57 PM
I'm using dreamweaver, so just html and CSS
dotflyer
01-17-2010, 12:42 AM
you can use php for upload files, and you can create code in Dreamweaver for this.
All of your forms will be in html and css, only for upload function you need to use php.
IslandDataCenter
01-17-2010, 01:05 AM
Heres a pretty basic PHP contact form:
1. Let's write the contact.php / Here we use HTML
<html>
<head>
<title>Contact</title>
</head>
<body>
<body background="bg.gif">
<form action="send.php" method="post">
<pre>
<center>
<br>
<br>
E-Mail
<input type="text" name="email" value=""><br>
Name
<input type="text" name="name" value=""><br>
Surname
<input type="text" name="surname" value=""><br>
Subject
<input type="text" name="subject" value=""><br>
Message<br>
<textarea name="message" cols="60" rows="6"></textarea><br><br>
<input type="submit" name="Send" value="Send"><input type="reset" name="Clear" value="Clear">
</form>
</body>
</html>
Save this like contact.php
2. Here we write the send.php page
<?php
if(($_POST['email'] == ") || ($_POST['name'] == ") || (is_numeric($_POST['name'])) || ($_POST['surname'] == ") || (is_numeric($_POST['surname'])) || ($_POST['subject'] == ") || ($_POST['message'] == ")) {
echo 'Complete the forms correctly <br>
Click <a href="/img_articles/15099/index.php" mce_href="/img_articles/15099/index.php">here</a> to return on main page.';
} else {
$to = 'piticstyle@yahoo.com'; // change e-mail adress
$send_date = date('d-m-Y H:i:s');
$subject = $_POST['subject'];
$message = '
<html>
<head>
<title>Contact</title>
</head>
<body>
<p><tt>Send Date: '.$send_date.' </tt></p>
<table>
<tr>
<td><tt> Name: '.$_POST['name'].' </tt></td>
</tr>
<tr>
<td><tt> Surname: '.$_POST['surname'].' </tt></td>
</tr>
<tr>
<td><tt> E-Mail: <a href="mailto:'.$_POST['email'].'" mce_href="mailto:'.$_POST['email'].'">'.$_POST['email'].'</a> </tt></td>
</tr>
<tr>
<td><tt> Message: <br><br> '.$_POST['message'].' </tt></td>
</tr>
</table>
</body>
</html>';
$headere = "MIME-Version: 1.0rn";
$headere .= "Content-type: text/html; charset=iso-8859-1rn";
$headere .= "From: ".$_POST['name']." ".$_POST['surname']."<".$_POST['email'].">rn";
mail($to, $subject, $message, $headere);
echo 'The message was send';
}
?>
Save this like send.php
Upload those created files.
Dan B
01-17-2010, 03:06 PM
Does that cod have an upload box to send files?
zoobie
01-17-2010, 09:06 PM
nope...not even close
you'll need a host that's running php to begin with...
then search hotscripts.com and codingforums.com for an upload script
adminim
01-27-2010, 04:04 AM
<html>
<head>
<title>
<body>
<p>
.....
<form name="feedback" method="post" action="mailto:you@site.com">
</form>
</head>
</title>
</body>
</html>
Driver01
01-27-2010, 05:59 AM
What's an easy way for people to submit files to me besides me displaying my e-mail?
How can I have an BROWSE and then upload button, then submit?
Or does anybody have other suggestions?
http://formtoemail.com/
NoSupportLinuxHostin
01-27-2010, 12:52 PM
If you set up a form upload page, make sure you either limit the types of files that can be uploaded or have your script rename the file automatically. Some hackers will try to upload a .php page through a form and then access the php page through the browser after they upload it. This is a quick way for hackers to get code running as the website. If you don't take some precautions, a hacker could use your website to launch other spamming and hacking attacks. That is definitely not something you would want.
Dan B
01-27-2010, 02:10 PM
http://formtoemail.com/
Thanks a lot!