SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Submit forms takes me to my web host website

    I am new in web design. My problem is that after submitting my contact form it takes me to my web host website.
    Please help.

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    There could be a couple of things at work here, but first, check the action attribute on the form in question. That particular attribute informs the browser where to send the data, and user, when the form is submitted.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is my action code:
    HTML Code:
     <form name="contactformfree" method="post" action="contactform_free/free_process.php" onsubmit="return validate.check(this)">
    Please help.

  4. #4
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    /contactform_free/free_process.php <- try it with a leading slash in your form action="", which means: go to the top level public directory, then go down to a folder called /contactform and then go the file called free_process.php

    ... assuming you have all these files and folders actually working and have not made any typos...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •