+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Junior 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.

  2. #2
    Junior 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)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews