Skip navigation
Currently Being Moderated

Form with submit button - doesn't work... why?

Nov 14, 2012 2:23 PM

I spent so much time trying to figure out what I'm doing wrong, I'm ready to give up, but I can't give up! Can you help me? This is my first time making a form in DW CS5.

Here's the info I put in the form:

- action: /webformmailer.php

- Method: POST

 

Here's the form:

http://www.azvacationhomerentals.com/ContactUs_Guest.html

 

 

Here's the code:

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||

 

<form action="/webformmailer.php" method="post" name="Guest_Form" target="_blank" id="Guest_Form">

      <table width="550" border="0">

          <tr>

            <td width="229"><p>*Name:</p></td>

            <td width="311"><p>

              <input name="Name" type="text" id="Name" size="45" />

            </p></td>

          </tr>

          <tr>

            <td><p>Preferred Dates of Stay:</p></td>

            <td><p>

              <input name="Dates_preferred" type="text" id="Dates_preferred" size="45" />

            </p></td>

          </tr>

          <tr>

            <td><p>*Preferred City of Stay:</p></td>

            <td><p>

              <select name="City_preferred" id="City_preferred">

                <option>Chandler</option>

                <option>Gilbert</option>

                <option>Mesa</option>

                <option>Tempe</option>

              </select>

            </p></td>

          </tr>

          <tr>

            <td><p>*Number in Party:</p></td>

            <td><p>Adults

              <select name="Adults_num" id="Adults_num">

                <option value="0" selected="selected">0</option>

                <option value="1">1</option>

                <option value="2">2</option>

                <option value="3">3</option>

                <option value="4">4</option>

                <option value="5">5</option>

                <option value="6">6</option>

                <option value="7">7</option>

                <option value="8">8</option>

                <option value="9">9</option>

                <option value="10+">10+</option>

              </select>

                Children

            <select name="Children_num" id="Children_num">

              <option value="0" selected="selected">0</option>

              <option value="1">1</option>

              <option value="2">2</option>

              <option value="3">3</option>

              <option value="4">4</option>

              <option value="5">5</option>

              <option value="6">6</option>

              <option value="7">7</option>

              <option value="8">8</option>

              <option value="9">9</option>

              <option value="10+">10+</option>

            </select>

            </p></td>

          </tr>

          <tr>

            <td><p>*Pets?</p></td>

            <td><p>Yes

             

              <input name="radio" type="radio" id="Pets_yes" value="Pets_yes" />

               No

            <input type="radio" name="radio" id="Pets_no" value="Pets_no" />

            </p></td>

          </tr>

          <tr>

            <td><p>if yes:</p></td>

            <td><p>Dog 

              <select name="Dog_num" id="Dog_num">

                <option value="0" selected="selected">0</option>

                <option value="1">1</option>

                <option value="2">2</option>

                <option value="3">3</option>

                <option value="4">4</option>

                <option value="5+">5+</option>

              </select>

             Cat

            <select name="Cat_num" id="Cat_num">

              <option value="0" selected="selected">0</option>

              <option value="1">1</option>

              <option value="2">2</option>

              <option value="3">3</option>

              <option value="4">4</option>

              <option value="5+">5+</option>

            </select>

            </p></td>

          </tr>

          <tr>

            <td><p>*Contact Email:</p></td>

            <td><p>

              <input name="Contact_email" type="text" id="Contact_email" size="45" />

            </p></td>

          </tr>

          <tr>

            <td><p>Contact Phone:</p></td>

            <td><p>

              <input name="Contact_Phone" type="text" id="Contact_Phone" size="45" />

            </p></td>

          </tr>

          <tr>

            <td><p> </p></td>

            <td><p>

              <input name="Submit" type="submit" id="Submit" value="Submit" />

            </p></td>

          </tr>

        </table>

        <p> </p>

  </form>

 

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||

 

What am I missing?

 

Thanks!

 
Replies
  • Currently Being Moderated
    Nov 14, 2012 2:35 PM   in reply to liolee08

    The webfommailer.php file is not where your link in the form tag is pointing.

     

    404 File Not Found.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2012 2:42 PM   in reply to Jon Fritz II

    The GoDaddy formmailer.php script is extremely limited. I would suggest using something a bit more robust, secure, well documented and capable of stopping ******* spammers.

     

    I personally like the formmail.php from http://www.tectite.com

     

    It can also easily be used with GoDaddy hosted accounts.

     

    EDIT: It looks like, for whatever reason, the webformmailer.php file is missing from your website. You can look into getting it added back in by going through GoDaddy's support, or go with a much better script (like the Tectite one above).

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2012 2:49 PM   in reply to liolee08

    What I'm saying is right now, there is no webformmailer.php script on your site at the location you used for the form action (in the root folder of your site), so no, the form will not work. If you go through GoDaddy Support, I "think" you can get the file added back into your site, at which point, (after you set up the email address in the GoDaddy Admin Panel) it will work, but it is a very limited form script and doesn't allow for anything in the way of anti-spam or tangible security.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2012 2:55 PM   in reply to liolee08

    Basically, when you set the form action to webformmailer.php, you are telling the browser to send the info from the form to the .php script to be processed on the server. Right now, that webformmailer.php script doesn't exist (or is possibly in a different location than the site's root folder), so when you click submit, the info has nowhere to go.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points