The code is
Expand|Select|Wrap|Line Numbers
- <table width="923" height="372" border="0">
- <form name="form1" method="post" action="#" enctype="application/x-www-form-urlencoded" onSubmit="return ValidateForm()" style="margin:0px">
- <?php
- $to="wasim1429@yahoo.com";
- $subject="Mail from site - tckgbookkeeping.biz - Opportunities Pages";
- $from="$email";
- //request value from form
- $name=$_POST['name'];
- $com_name4=$_POST['ltr'];
- $email=$_POST['email'];
- $con_no=$_POST['contact'];
- $attached=$_POST['cv'];
- $allContent="Full Name : ".$name."\n\n";
- $allContent.="E_Mail : ".$email."\n\n";
- $allContent.="Subject : ".$con_no."\n\n";
- $allContent.="Message : ".$com_name4."\n\n";
- $allContent.="Download Attached File : ".$attached."\n\n";
- if($name!="" && $com_name4!="" && $con_no!="" && $email!="" && $attached!="")
- {
- if(!@mail($to,$subject,$allContent,"From:$from"))
- {
- $confirmation="Sorry, there was a problem sending your message.Please try later.";
- }
- else
- {
- $confirmation="Your message has been sent. Thank you for your feedback.";
- }
- }
- ?>
- <h4>
- <?=$confirmation?>
- </h4>
- <tr>
- <td width="114" height="44"><h3> Name: </h3></td>
- <td width="167"><input name="name" type="text"/>
- <span class="ster"> *</span> </td>
- </tr>
- <tr>
- <td height="82"><h3> Email : </h3></td>
- <td><input name="email" type="text"/>
- <span class="ster">*</span></td>
- </tr>
- <tr>
- <td><h3> Subject : </h3></td>
- <td><input type="text" name="contact"> <span class="ster">* </span> </td>
- </tr>
- <tr>
- <td height="130"> <h3> Message </h3></td>
- <td valign="top"><textarea name="ltr" cols="60" rows="7"></textarea> </td>
- </tr>
- <tr>
- <td height="42"> <h3> Resume </h3></td>
- <td valign="top"><input name="cv" type="file" class="button" />
- </td>
- </tr>
- <tr>
- <td height="36"> </td>
- <td valign="top"><input name="submit" type="submit" class="button" value="Submit" />
- <input name="reset" type="reset" class="button" value="Reset" />
- </td>
- </form>
- </table>
Can any body solve my problem pleas …..?
Why attached file was not sand pleas check this…………?