email form attachment not working without the attachment

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

email form attachment not working without the attachment

Post by wak0 »

I have a form that sends an email and an attachment. but the form only sends the email if there is an attachment, how do i make it work if the person does not add one.

Code: Select all

<?php
if ($_SERVER['REQUEST_METHOD']=="POST"){
 
// we'll begin by assigning the To address and message subject
$to="myemail@gmail.com";
 
$subject="Client Submission";
 
// get the sender's name and email address
// we'll just plug them a variable to be used later
$from = $_REQUEST['fromname'];
$email=$_REQUEST["fromemail"];
$occasion = $_REQUEST['occasion'];
$age = $_REQUEST['age'];
$flavor = $_REQUEST['flavor'];
$filling = $_REQUEST['filling'];
$people = $_REQUEST['people'];
$day = $_REQUEST['day'];
$month = $_REQUEST['month'];
$delivery = $_REQUEST['delivery'];
$text = $_REQUEST['text'];
$phone=$_REQUEST['phone'];
 
// generate a random string to be used as the boundary marker
$mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";
 
// store the file information to variables for easier access
$tmp_name = $_FILES['filename']['tmp_name'];
$type = $_FILES['filename']['type'];
$name = $_FILES['filename']['name'];
$size = $_FILES['filename']['size'];
 
// here we'll hard code a text message
// again, in reality, you'll normally get this from the form submission
$message = $message = "
Email = $fromemail
Name = $fromname
Phone = $phone
Occasion = $occasion
Age = $age
Flavor = $flavor
Filling = $filling
People = $people
Month = $month
Day = $day
Delivery = $delivery
Text = $text";
 
// if the upload succeded, the file will exist
if (file_exists($tmp_name)){
 
// check to make sure that it is an uploaded file and not a system file
if(is_uploaded_file($tmp_name)){
 
// open the file for a binary read
$file = fopen($tmp_name,'rb');
 
// read the file content into a variable
$data = fread($file,filesize($tmp_name));
 
// close the file
fclose($file);
 
// now we encode it and split it into acceptable length lines
$data = chunk_split(base64_encode($data));
}
 
// now we'll build the message headers
$headers = "From: $from\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: multipart/mixed;\r\n" .
" boundary=\"{$mime_boundary}\"";
 
// next, we'll build the message body
// note that we insert two dashes in front of the
// MIME boundary when we use it
$message = "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type: text/plain; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$message . "\n\n";
 
// now we'll insert a boundary to indicate we're starting the attachment
// we have to specify the content type, file name, and disposition as
// an attachment, then add the file content and set another boundary to
// indicate that the end of the file has been reached
$message .= "--{$mime_boundary}\n" .
"Content-Type: {$type};\n" .
" name=\"{$name}\"\n" .
//"Content-Disposition: attachment;\n" .
//" filename=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n" .
"--{$mime_boundary}--\n";
 
// now we just send the message
if (@mail($to, $subject, $message, $headers))
echo "Message Sent";
else
echo "Failed to send";
}
} else {
?>
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: email form attachment not working without the attachment

Post by social_experiment »

Try adding an isset() to your code so the script checks if a file has uploaded?

Code: Select all

 
<?php
 if ( isset($_FILES['filename']) ) {    
   // store the file information to variables for easier access
    $tmp_name = $_FILES['filename']['tmp_name'];
    $type = $_FILES['filename']['type'];
    $name = $_FILES['filename']['name'];
    $size = $_FILES['filename']['size'];
    
   // if the upload succeded, the file will exist
   if (file_exists($tmp_name)){
    
   // check to make sure that it is an uploaded file and not a system file
   if(is_uploaded_file($tmp_name)){
    
   // open the file for a binary read
  $file = fopen($tmp_name,'rb');
    
   // read the file content into a variable
   $data = fread($file,filesize($tmp_name));
    
   // close the file
   fclose($file);
    
   // now we encode it and split it into acceptable length lines
   $data = chunk_split(base64_encode($data));
    }
   }
?>
 
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

i forgot to include the last lines of my code, i do have iss

Post by wak0 »

check please
<?php
if ($_SERVER['REQUEST_METHOD']=="POST"){

// we'll begin by assigning the To address and message subject
$to="sabonges@gmail.com";

$subject="Client Submission";

// get the sender's name and email address
// we'll just plug them a variable to be used later
$from = $_REQUEST['fromname'];
$email=$_REQUEST["fromemail"];
$occasion = $_REQUEST['occasion'];
$age = $_REQUEST['age'];
$flavor = $_REQUEST['flavor'];
$filling = $_REQUEST['filling'];
$people = $_REQUEST['people'];
$day = $_REQUEST['day'];
$month = $_REQUEST['month'];
$delivery = $_REQUEST['delivery'];
$text = $_REQUEST['text'];
$phone=$_REQUEST['phone'];

// generate a random string to be used as the boundary marker
$mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";

// store the file information to variables for easier access
$tmp_name = $_FILES['filename']['tmp_name'];
$type = $_FILES['filename']['type'];
$name = $_FILES['filename']['name'];
$size = $_FILES['filename']['size'];

// here we'll hard code a text message
// again, in reality, you'll normally get this from the form submission
$message = $message = "
Email = $fromemail
Name = $fromname
Phone = $phone
Occasion = $occasion
Age = $age
Flavor = $flavor
Filling = $filling
People = $people
Month = $month
Day = $day
Delivery = $delivery
Text = $text";



// if the upload succeded, the file will exist
if (file_exists($tmp_name)){

// check to make sure that it is an uploaded file and not a system file
if(is_uploaded_file($tmp_name)){

// open the file for a binary read
$file = fopen($tmp_name,'rb');

// read the file content into a variable
$data = fread($file,filesize($tmp_name));

// close the file
fclose($file);

// now we encode it and split it into acceptable length lines
$data = chunk_split(base64_encode($data));
}

// now we'll build the message headers
$headers = "From: $from\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: multipart/mixed;\r\n" .
" boundary=\"{$mime_boundary}\"";

// next, we'll build the message body
// note that we insert two dashes in front of the
// MIME boundary when we use it
$message = "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type: text/plain; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$message . "\n\n";

// now we'll insert a boundary to indicate we're starting the attachment
// we have to specify the content type, file name, and disposition as
// an attachment, then add the file content and set another boundary to
// indicate that the end of the file has been reached

if (isset($data))
{
$message .= "--{$mime_boundary}\n" .
"Content-Type: {$type};\n" .
"name=\"{$name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n";
}


// now we just send the message
if (@mail($to, $subject, $message, $headers))
echo "Message Sent";
else
echo "Failed to send";
}
} else {
?>
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: email form attachment not working without the attachment

Post by social_experiment »

It's exactly the same code you posted the first time round?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

Re: email form attachment not working without the attachment

Post by wak0 »

no, take a look the ifset was not there, when you told me to included, i just notice that was in my code but in the original file wasnt, look a the last portion of the code.

but anyway. i do have the ifset, why did you recommended that if i have it, is mine written wrong?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: email form attachment not working without the attachment

Post by social_experiment »

Code: Select all

<?php
 if (isset($data))
{
$message .= "--{$mime_boundary}\n" .
"Content-Type: {$type};\n" .
"name=\"{$name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n";
}
 
?>
Is this the code you are reffering to?

If you take a look at the sample i posted you will see it's slightly different from what you did.

Code: Select all

<?php if ( isset($_FILES['filename']) ) {   
    // store the file information to variables for easier access
     $tmp_name = $_FILES['filename']['tmp_name'];
     $type = $_FILES['filename']['type'];
     $name = $_FILES['filename']['name'];
     $size = $_FILES['filename']['size'];
    
    // if the upload succeded, the file will exist
    if (file_exists($tmp_name)){
    
    // check to make sure that it is an uploaded file and not a system file
    if(is_uploaded_file($tmp_name)){
    
    // open the file for a binary read
   $file = fopen($tmp_name,'rb');
    
    // read the file content into a variable
    $data = fread($file,filesize($tmp_name));
    
    // close the file
    fclose($file);
    
    // now we encode it and split it into acceptable length lines
    $data = chunk_split(base64_encode($data));
     }
    }
 ?>
but anyway. i do have the ifset, why did you recommended that if i have it, is mine written wrong?
I recommended it because you said :
I have a form that sends an email and an attachment. but the form only sends the email if there is an attachment, how do i make it work if the person does not add one.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

YOU ARE THE MAN

Post by wak0 »

thanks man, it works perfect
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

Re: email form attachment not working without the attachment

Post by wak0 »

i guess it was too soon, the email goes but now the attachment does not attach
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

Re: email form attachment not working without the attachment

Post by wak0 »

this is what i have now i dont know if the closing is in the right place
} take a look

Code: Select all

<?php
   if ($_SERVER['REQUEST_METHOD']=="POST"){
 
   // we'll begin by assigning the To address and message subject
   $to="email@gmail.com";
 
   $subject="Client Submission";
 
   // get the sender's name and email address
   // we'll just plug them a variable to be used later
$from = $_REQUEST['fromname'];
$email=$_REQUEST["fromemail"];
$occasion = $_REQUEST['occasion'];
$age = $_REQUEST['age'];
$flavor = $_REQUEST['flavor'];
$filling = $_REQUEST['filling'];
$people = $_REQUEST['people'];
$day = $_REQUEST['day'];
$month = $_REQUEST['month'];
$delivery = $_REQUEST['delivery'];
$text = $_REQUEST['text'];
$phone=$_REQUEST['phone'];
 
   // generate a random string to be used as the boundary marker
   $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";
 
   // store the file information to variables for easier access
   $tmp_name = $_FILES['filename']['tmp_name'];
   $type = $_FILES['filename']['type'];
   $name = $_FILES['filename']['name'];
   $size = $_FILES['filename']['size'];
 
   // here we'll hard code a text message
   // again, in reality, you'll normally get this from the form submission
   $message = $message = "
Email = $fromemail
Name = $fromname
Phone = $phone
Occasion = $occasion
Age = $age
Flavor = $flavor
Filling = $filling
People = $people
Month = $month
Day = $day
Delivery = $delivery
Text = $text";
 
if ( isset($_FILES['filename']) ) {  
// store the file information to variables for easier access
$tmp_name = $_FILES['filename']['tmp_name'];
$type = $_FILES['filename']['type'];
$name = $_FILES['filename']['name'];
$size = $_FILES['filename']['size'];
 
   // if the upload succeded, the file will exist
if (file_exists($tmp_name)){
 
// check to make sure that it is an uploaded file and not a system file
if(is_uploaded_file($tmp_name)){
 
// open the file for a binary read
$file = fopen($tmp_name,'rb');
// read the file content into a variable
$data = fread($file,filesize($tmp_name));
// close the file
 fclose($file);
 
         // now we encode it and split it into acceptable length lines
         $data = chunk_split(base64_encode($data));
     }[b]}[/b]
 
      // now we'll build the message headers
      $headers = "From: $from\r\n" .
         "MIME-Version: 1.0\r\n" .
         "Content-Type: multipart/mixed;\r\n" .
         " boundary=\"{$mime_boundary}\"";
 
      // next, we'll build the message body
      // note that we insert two dashes in front of the
      // MIME boundary when we use it
      $message = "This is a multi-part message in MIME format.\n\n" .
         "--{$mime_boundary}\n" .
         "Content-Type: text/plain; charset=\"iso-8859-1\"\n" .
         "Content-Transfer-Encoding: 7bit\n\n" .
         $message . "\n\n";
 
      // now we'll insert a boundary to indicate we're starting the attachment
      // we have to specify the content type, file name, and disposition as
      // an attachment, then add the file content and set another boundary to
      // indicate that the end of the file has been reached
 
      // now we just send the message
      if (@mail($to, $subject, $message, $headers))
         echo "Message Sent";
      else
         echo "Failed to send";
   }
} else {
?>
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: email form attachment not working without the attachment

Post by social_experiment »

Doesn't the email send the attachment at all, even if the user wishes to send one?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

Re: email form attachment not working without the attachment

Post by wak0 »

nope, no attachment. i tested. with the code and nothing.

any other ideas.
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

Re: email form attachment not working without the attachment

Post by wak0 »

i was thinking, dont i need a temp folder in the domain in order to store there temporarily?
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

Re: email form attachment not working without the attachment

Post by wak0 »

i do get the attachment. but, if i want to send the email without it, i cant
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: email form attachment not working without the attachment

Post by social_experiment »

Ok, ill take a look at the code and see if i cannot get it working. Just one thing, the final few lines of the script :

Code: Select all

<?php
 } else {
?>
Is there anything beyond the else statement?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
wak0
Forum Newbie
Posts: 22
Joined: Wed Jan 20, 2010 2:31 pm

here is the whole code

Post by wak0 »

where do i insert the else, because i also need to close it before my html or after


Code: Select all

<?php
 
 
$from = $_REQUEST['fromname'];
$email=$_REQUEST["fromemail"];
$occasion = $_REQUEST['occasion'];
$age = $_REQUEST['age'];
$flavor = $_REQUEST['flavor'];
$filling = $_REQUEST['filling'];
$people = $_REQUEST['people'];
$day = $_REQUEST['day'];
$month = $_REQUEST['month'];
$delivery = $_REQUEST['delivery'];
$text = $_REQUEST['text'];
$phone=$_REQUEST['phone'];
 
    if(isset($_POST['submit']))
    {
        //The form has been submitted, prep a nice thank you message
        $output = '<h1>Thanks for your file and message!</h1>';
        //Set the form flag to no display (cheap way!)
        $flags = 'style="display:none;"';
 
        //Deal with the email
        $to = 'xxx@gmail.com';
        $subject = 'Cake Order';
        $body = '
Email = $email
Name = $name
Phone = $phone
Occasion = $occasion
Age = $age
Flavor = $flavor
Filling = $filling
People = $people
Month = $month
Day = $day
Delivery = $delivery
Text = $text';
 
        $from = 'Client Submition';
        $message = strip_tags($_POST['message']);
        $attachment = chunk_split(base64_encode(file_get_contents($_FILES['file']['tmp_name'])));
        $filename = $_FILES['file']['name'];
 
        $boundary =md5(date('r', time())); 
 
        $headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com";
        $headers .= "\r\nMIME-Version: 1.0\r\nContent-Type: multipart/mixed; boundary=\"_1_$boundary\"";
 
        $message="This is a multi-part message in MIME format.
 
--_1_$boundary
Content-Type: multipart/alternative; boundary=\"_2_$boundary\"
 
--_2_$boundary
Content-Type: text/plain; charset=\"iso-8859-1\"
Content-Transfer-Encoding: 7bit
 
$message
 
--_2_$boundary--
--_1_$boundary
Content-Type: application/octet-stream; name=\"$filename\" 
Content-Transfer-Encoding: base64 
Content-Disposition: attachment 
 
$attachment
--_1_$boundary--";
 
        mail($to, $subject, $message, $body, $headers);
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
           <meta name="Distribution" content="Local">
    <meta name="Rating" content="General">
    <meta name="Robots" content="INDEX,FOLLOW">
    <meta name="Revisit-after" content="31 Days">
<SCRIPT LANGUAGE="JavaScript">
 
 
function emailCheck (emailStr) {
 
 
 
var checkTLD=1;
 
 
var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
 
 
 
var emailPat=/^(.+)@(.+)$/;
 
 
 
var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
 
 
var validChars="\[^\\s" + specialChars + "\]";
 
 
var quotedUser="(\"[^\"]*\")";
 
 
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
 
 
var atom=validChars + '+';
 
 
 
var word="(" + atom + "|" + quotedUser + ")";
 
 
 
var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
 
 
 
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
 
 
 
var matchArray=emailStr.match(emailPat);
 
if (matchArray==null) {
 
 
 
alert("Email address seems incorrect (check @ and .'s)");
return false;
}
var user=matchArray[1];
var domain=matchArray[2];
 
 
for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
alert("Ths username contains invalid characters.");
return false;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
alert("Ths domain name contains invalid characters.");
return false;
   }
}
 
 
 
if (user.match(userPat)==null) {
 
 
 
alert("The username doesn't seem to be valid.");
return false;
}
 
 
var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {
 
 
 
for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
alert("Destination IP address is invalid!");
return false;
   }
}
return true;
}
 
 
 
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
alert("The domain name does not seem to be valid.");
return false;
   }
}
 
 
 
if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
alert("The address must end in a well-known domain or two letter " + "country.");
return false;
}
 
 
 
if (len<2) {
alert("This address is missing a hostname!");
return false;
}
 
 
return true;
}
 
 
</script><style type="text/css">
<!--
body,td,th {
    color: #666;
}
body {
    background-color: #000000;
}
a:link {
    color: #FFFFFF;
}
a:visited {
    color: #FFFFFF;
}
.style1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #666666;
}
.style34 {font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
}
.style50 {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #999999;
}
.style52 {
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    color: #999999;
}
.style53 {font-size: 12px; color: #999999; }
-->
</style>
<script type="text/JavaScript">
<!--
 
 
 
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>
 
<body>
 
<?php echo $output; ?>
 
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="963" colspan="3"><img src="images/weddings_showers_affordable.jpg"  width="1000" height="176" border="0" usemap="#Map2" /></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/birthdays_quince_broward.jpg"  width="1000" height="66" border="0" usemap="#Map" />
        <map name="Map" id="Map3">
          <area shape="rect" coords="49,5,127,32" href="about.html" />
          <area shape="rect" coords="194,3,302,33" href="products.html" />
          <area shape="rect" coords="359,4,461,32" href="services.html" />
          <area shape="rect" coords="528,6,627,31" href="contact.html" />
          <area shape="rect" coords="915,77,927,92" href="index.html" />
          <area shape="rect" coords="933,50,946,63" href="products.html" />
          <area shape="rect" coords="955,48,965,62" href="cakes.html" />
    </map></td>
  </tr>
  <tr>
    <td width="21"><img src="images/bodas_bautizos_cumpleanos.gif" width="21" height="1" /></td>
    <td width="958" valign="top" background="images/wedding_shower_birthday.jpg"><form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" <?php echo $flags;?>>
<table width="917" border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td width="32" rowspan="13"></a></td>
    </tr>
  <tr>
    <td><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif"> Name:</font></div></td>
    <td><input name="name" type="text" id="name" size="30" /></td>
    <td width="385" rowspan="12" align="center">
      <br /></td>
  </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif"> Email:</font></div></td>
    <td width="323"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
      <input name="email" type="text" id="email" size="30" />
    </font></td>
    </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">Phone:</font></div></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
      <input name="phone" type="text" id="phone" size="15" />
    </font></td>
    </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">Occasion:</font></div></td>
    <td><label>
      <select name="occasion" id="occasion">
        <option value="no resonse" selected="selected"></option>
        <option value="Wedding">Wedding</option>
        <option value="Baby Shower">Baby Shower</option>
        <option value="Birthday">Birthday</option>
        <option value="Religious">Religious</option>
        <option value="Get Together">Get Together</option>
      </select>
    </label></td>
    </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">Child's Age:</font></div></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
      <input name="age" type="text" id="age" size="5" maxlength="3" />
      if applicable</font></td>
    </tr>
  <tr>
    <td><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">Flavor:</font></div></td>
    <td><select name="flavor" id="flavor">
      <option value="no response" selected="selected"></option>
      <option value="Strawberry">Strawberry</option>
      <option value="Vanilla">Vanilla</option>
      <option value="Chocolate">Chocolate</option>
      <option value="Rum">Rum</option>
      <option value="Lemon">Lemon</option>
      <option value="Marble">Marble</option>
    </select></td>
    </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">Filling:</font></div></td>
    <td><select name="filling" id="filling">
      <option value="No Filling">No Filling</option>
      <option value="Strawberry Buttercream">Strawberry Buttercream</option>
      <option value="Vanilla Buttercream">Vanilla Buttercream</option>
      <option value="Chocolate Buttercream">Chocolate Buttercream</option>
      <option value="Dulce de Leche with">Dulce De Leche</option>
      <option value="Pineapple">Pineapple</option>
      <option value="Lemon">Lemon</option>
      <option value="Cream Cheese">Cream Cheese</option>
      <option value="Rum Cake">Rum Cake</option>
      <option value="Allergy Free">Allergy Free</option>
      <option value="no response" selected="selected"></option>
    </select></td>
    </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">People attending:</font></div></td>
    <td><select name="people" id="people">
      <option value="no response" selected="selected"></option>
      <option value="10-15">10-15</option>
      <option value="15-20">15-20</option>
      <option value="20-25">20-25</option>
      <option value="25-30">25-30</option>
      <option value="30-40">30-40</option>
      <option value="40-50">40-50</option>
      <option value="50-75">50-75</option>
      <option value="75-100">75-100</option>
      <option value="100+">100+</option>
    </select></td>
    </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">Date of event:</font></div></td>
    <td><select name="month" id="month">
      <option value="no response" selected="selected"></option>
      <option value="Jan">Jan</option>
      <option value="Feb">Feb</option>
      <option value="March">March</option>
      <option value="April">April</option>
      <option value="May">May</option>
      <option value="June">June</option>
      <option value="July">July</option>
      <option value="Aug">Aug</option>
      <option value="Sep">Sep</option>
      <option value="Oct">Oct</option>
      <option value="Nov">Nov</option>
      <option value="Dec">Dec</option>
    </select>
        <font size="2" face="Verdana, Arial, Helvetica, sans-serif">
        <input name="day" type="text" id="day" size="5" maxlength="3" />
      </font></td>
    </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">Delivery:</font></div></td>
    <td><select name="delivery" id="delivery">
      <option value="no response" selected="selected"></option>
      <option value="Yes">Yes</option>
      <option value="No">Pick up</option>
    </select>
        <font size="2" face="Verdana, Arial, Helvetica, sans-serif">Miramar, 33027</font></td>
    </tr>
  <tr>
    <td><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">Message</font></div></td>
    <td><textarea name="message" id="message" cols="40" rows="4"></textarea></td>
    </tr>
  <tr>
    <td width="153"><div align="right" class="style53"><font face="Verdana, Arial, Helvetica, sans-serif">File:</font></div>    
    <label for="file"></label></td>
    <td><input type="file" name="file" id="file"></td>
    </tr>
</table>
<p align="center"><input type="submit" name="submit" id="submit" value="Submit"></p>
</form></td>
    <td width="21"><img src="images/bodas_bautizos_cumpleanos.gif" width="21" height="1" /></td>
  </tr>
  <tr>
    <td height="30" colspan="3" valign="bottom"><div align="center" class="style1">Copyright All rights reserved.</div></td>
  </tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="49,5,127,32" href="about.html" />
<area shape="rect" coords="194,3,302,33" href="products.html" />
<area shape="rect" coords="359,4,461,32" href="services.html" />
<area shape="rect" coords="528,6,627,31" href="contact.html" />
<area shape="rect" coords="915,49,927,64" href="index.html" />
<area shape="rect" coords="933,50,946,63" href="products.html" />
</map>
<map name="Map2" id="Map2"><area shape="rect" coords="20,9,531,165" href="index.html" />
</map>
 
</body>
</html>
 
 
Post Reply