contact page with godaddy php script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xlr8u2
    New Member
    • Apr 2010
    • 1

    contact page with godaddy php script

    hi all i have been trying and trying to set up a contact page on godaddy. they require that i use a php script here is their example.

    Code:
    <form action="/gdform.php"  runat="server" method="post"> 
      <input type="hidden" name="subject" value="Form Submission" /> 
      <input type="hidden" name="redirect" value="Default.aspx" />
      <p>First Name:<input type="text" name="FirstName" /></p>
      <p>Last Name:<input type="text" name="LastName" /></p>
      <p>E-Mail:<input type="text" name="email" /></p>
      <p>Comments:<textarea name="comments" cols="40" rows="10">
        Type comments here.</textarea></p> 
      <input type="submit" name="submit" value="submit" id="Submit1" language="javascript" onclick="return Submit1_onclick()"/>
    </form>
    it requires that i use a html page . what i want to do is use c#.net which is very similar to html so that i can get my master page included. is there a way to post this similar to the

    (form action="/gdform.php" runat="server" method="post)

    from javascript or code behind?

    my second question is how do i include a captcha and verify it, then send the form?
    i am verrrry new to c#.net
    so try not to make it very complicated and i'll get my smart brother forest gump to help me with it.
    Last edited by Frinavale; Apr 26 '10, 02:31 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    hi all i have been trying and trying to set up a contact page on godaddy.
    Why don't you make your own contact form to go with your masterpage?

    c#.net which is very similar to html
    Huh?

    my second question is how do i include a captcha and verify it, then send the form?
    Google is your best friend!

    i'll get my smart brother forest gump to help me with it.
    Life is like a box of chocolats, you never know what ya gonna get. And that's all I have to say about that...

    Steven

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      You can use JavaScript to submit any form....whether it be to a PHP script or an ASP.NET script. Just be aware that there will be no control-event associated with the JavaScript event.

      ASP.NET adds a "submit JavaScript" function called __doPostback() to the webpage. This method is called when a control causes the page to postback to the server. It helps in the creation of the event that is handled on the server.

      So, I recommend that you just ignore the JavaScript in that example....just handle the button click event in your code because the button will submit the page for you.


      -Frinny

      Comment

      • DeannaAC
        New Member
        • Jun 2010
        • 1

        #4
        Need a contact form to work on a Go daddy site

        I am new here so not sure if I am posting this in the appropriate place? If not just let me know. I have a similar problem to xlr. I am a designer and occasionally do minimal html development with the assistance of Dreamweaver. I created a form in Dreamweaver and used Go-Daddy's php file and it won't work. I searched online and found a gentleman who gave a code for the contact page and for an asp page to make it work but still I am having no luck. I am frustrated and just want the form to work. I wasn't paid a lot for the job but I could offer a small fee for someone to help me.

        If anyone has had success in working with GoDaddy contact forms please contact me. I am also in the market for a Drupal developer. Can someone recommend a good place for me to look?

        Thanks!

        Comment

        Working...