Thread: sending an image through a form
-
May 7th, 2003, 05:08 PM #1Junior Member
- Join Date
- May 2003
- Posts
- 4
sending an image through a form
hey guys im trying to get this form to send out the image to the e-mail its sending it to .. it only sends me the local path instead of the actual image .. im not much of a coder.. so i dont knwo if i have to add something else to the field so it attaches the picture .thanks
www.t21interactive.com/ec/signup.htm
this is the php transition im using :
?PHP
if($submit) {
if($required) {
$req = explode(",", $required);
foreach($req as $key)
if(strlen($HTTP_POST_VARS[$key]) < 1)
print_error("Required Field Missing");
}
$msg_body = "<font face='verdana' size=2>";
foreach($HTTP_POST_VARS as $key => $value) {
$msg_body .= "<b>$key</b>: $value <br>\n";
}
if(!$subject)
$subject = "Signup";
mail($recipient, $subject, $msg_body, "Content-type: text/html\n\n")
or print_error("Could Not Send Message");
?>
<script language=JavaScript>
function REDIRECT_ME() {
document.location = "<?=$redirect?>";
}
self.setTimeout("REDIRECT_ME()", 0);
</script>
<?
}else{
print_error("No Form Data Submitted");
}
function print_error($err_str) {
print "<font color=#FF0000>$err_str</font>";
exit();
}
/?Last edited by Meyor; May 7th, 2003 at 05:12 PM.
-
May 8th, 2003, 03:20 PM #2Junior Member
- Join Date
- May 2003
- Posts
- 4
damn talk about great support ! ..
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



LinkBack URL
About LinkBacks



Reply With Quote

People like DooG and I are older farts. Hell, he can't even post unless he's asleep. The country is in your hands, Bingo . . .
Who Pays Corporate Income Taxes ?