ASP Contact form

Discussion in 'C#' started by quad_design, Feb 8, 2009.

  1. #1
    Hi,

    I am trying to setup my first ever asp contact form, but for some reason it isn't working. I have the contact form set up(code below) but it seems to just refresh the page and ignores the action.

    Any ideas? Thanks for any help.

    Code -- Contact form...

    <form method="POST" action="contact.aspx">


    <input type="text" style=" width: 303px; height: 22px; margin-bottom: 6px;"
    name="textfield8" id="textfield8" /><br />
    <b>Your Email:</b><br />
    <input type="text" style=" width: 303px; height: 22px; margin-bottom: 6px;"
    name="textfield9" id="textfield9" /><br />
    <b>Phone #:<br />
    <input type="text" style=" width: 303px; height: 22px; margin-bottom: 6px;"
    name="textfield10" id="textfield10" /><br />
    Details:<br />
    <textarea style=" height:150px; border: solid 1px #ccc; margin-right: 5px; width:350px; "
    name="textarea4" id="textarea4"
    rows="5" cols="20"></textarea><br />
    <label>
    <input style="margin-left:230px;" type="submit" name="submit0" id="submit0" value="Submit" /><asp:Button ID="Button2"
    runat="server" Text="Reset" />
    </label>
    </b></p>

    </form>
     
    quad_design, Feb 8, 2009 IP
  2. ASPkit

    ASPkit Peon

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The problem is that you have created a form for entering the data but you don't have the code to actually do something with the input. Check out http://www.ctrfx.com/form/ to get sample form and back end code to actually send the contact info.
     
    ASPkit, Feb 8, 2009 IP
  3. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #3
    You have just completed the user interface part. The actual code for processing data is missing.
     
    MayurGondaliya, Feb 12, 2009 IP