Jump to content

gdform.php


smk2004

Recommended Posts

I'm using a gdform.php formmail from Godaddy for my website.  I have it working fine but the only functions I can use is subject, e-mail, and redirect.  Unfortunately, I can't get it to take a required e-mail before submitting.  In other words, I don't want people to submit the form without placing their e-mail.  I've posted my code below.  Can anyone please tell me how to make the email a required function?  Thanks a bunch!

 

<form action="gdform.php" method="post">

  <INPUT type="hidden" name="FormType" value="GDFORM.PHP">

      <input type="hidden" name="subject" value="Contact CTO">

  <input type="hidden" name="required" value="email">

  <input type="hidden" name="redirect" value="thankyou.htm">

        <table class="main-box" width="80%" border="0" align="center" cellpadding="5" cellspacing="0" style="font-size:110%; padding:10px 0">

          <tr>

            <td width="30%" align="left"><div align="right"><b>Name:</b></div></td>

            <td width="70%"><input type="text" name="name" size="20">

            </td>

          </tr>

          <tr>

            <td align="left" valign="top"><div align="right">Phone: <br>

                    <br>

            </div></td>

            <td width="70%" valign="top"><input name="phone" type="text" id="phone" size="20">

                <br>

              Please be sure to leave a valid contact number if you have already made a purchase and did not receive your template download after a 24 hour period. Your email may be blocking the downloads. </td>

          </tr>

          <tr>

            <td align="left" valign="top"><div align="right"><b>E-mail:</b></div></td>

            <td><input type="text" name="email" size="25"></td>

          </tr>

          <tr>

            <td align="left" valign="top"><div align="right">Secondary E-mail: <br>

              (if available) </div></td>

            <td valign="top"><input type="text" name="email2" size="25">

                <br>

              If you have already purchased a template and did not receive your download link please after 24 hours please provide an additional e-mail to ensure a successful delivery. </td>

          </tr>

          <tr>

            <td align="left" valign="top"><div align="right"><b>Comments:   </b></div></td>

            <td><textarea name="comments" cols="35" rows="4"></textarea>

            </td>

          </tr>

          <tr>

            <td align="left"></td>

            <td><div align="center">

                <input name="submit" type="submit" value="Submit" class="button">

            </div></td>

          </tr>

        </table>

      </form>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.