Question : Asp.net form help

Hello experts!

I'm not very familiar with asp.net and I was wondering if someone could help me. I'm trying to build this form and for some reason, it does not submit correctly. This is the link to the site: http://mytucker.com/Photos/Photos.aspx

I have a form with action that goes to a php file. When I click submit, it seems like it goes off okay but it doesn't actually send an e-mail. Here is the php code:

<?php

//Capture Variables from form
$name = $_POST['name'];

//Build the email
$to = '[email protected]m';
$subject = "Agent Photo Submission from: $name";
$message = "Agent Photo Submission
      Name: $name      
";
$headers = "From: $from";

mail($to, $subject, $message, $headers);

?>
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
<%@ Page Title="Agent Photo Submission" Language="C#" MasterPageFile="~/MasterPage_Inner.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">        
    <form id="photoForm" action="http://www.mytucker.com/Photos/sendPhoto.php" method="post">        
        <table border="0" cellpadding="2" width="450">  
            <h4>Agent Photo Submission</h4>
                <p>Please use this form to submit your photo. Also, please select where you would like 
                to use your photo.</p>
                <p><b>Minimum Requirements</b><br /> 
                Photo Size: 2" x 2.5" <br />
                DPI: 360</p>
                <tr>
                    <td style="width:140px; margin-bottom: 5px;"><label for="name">Name: </label></td>
                    <td><input name="name" id="name" type="text" /></td>
                </tr>
                <tr></tr>
                <tr>    
                    <td><label for="phonenumber">Phone Number: </label></td>
                    <td><input name="phonenumber" id="phonenumber" type="text" /></td>
                </tr>
                <tr></tr>
                <tr>
                    <td><label for="email">E-Mail: </label></td>
                    <td><input name="email" id="email" type="text" /></td>
                </tr>
                <tr></tr>
                <tr>
                    <td>Where would you like to use your photo?</td>                
                    <td><input type="checkbox" name="whereto" value="Web" />Website Only <br />
                    <input type="checkbox" name="whereto" value="All" />All Your Marketing Pieces <br />
                    <input type="checkbox" name="whereto" value="Cards" />Business Cards</td>
                </tr>
                <tr></tr>
                <tr>
                    <td>Choose File to Upload:</td>
                    <td><input type="file" name="datafile" /></td>
                </tr>
                <tr></tr>
                <tr>
                    <td>Comments:</td>
                    <td><textarea rows="2" cols="20" name="comments"></textarea></td>
                </tr>
                <tr>
                    <td><input type="submit" value="Submit" /></td>
                </tr>                        
        </table>  
    </form>    
</asp:Content>

Answer : Asp.net form help

If you are using classic ASP you will need a component like ASPPDF (http://www.asppdf.com) - there are a number of others so shop around - to generate the PDF, either on the fly or as a stored file.
Random Solutions  
 
programming4us programming4us