Form Handling

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
everethweb
Forum Newbie
Posts: 2
Joined: Mon May 21, 2007 9:55 am

Form Handling

Post by everethweb »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


I have something that I need to do with a form, and I've gotten so far as to determine that it requires using a CGI script but would appreciate any assistance.  I can give you the domain name if needed but basically- I have a form that is submitting to a third-party, secure server, and it is step1 of an application process.  What I need is:
In addition to processing the form, an email to be sent to me.  So, if someone abandons the form, we have the lead.  Please let me know if you have a form handler or a solution to this issue.  I GREATLY appreciate any advice/help.

Here's the HTML for the form.  Please PM me if you need further assistance.
 [syntax="html"]<FORM
action= https://secure.linkpt.net/lpcentral/servlet/lppay
method="post">
        <table width="425" border="0" cellpadding="0" cellspacing="0">
          <tr class="formheader"> 
            <td height="36" align="left" valign="top"><p align="left" class="formheader">Full 
                Name <font color="#FF6600">*</font>: 
                <INPUT name="mode" type="hidden" id="mode" value="fullpay">
                <INPUT name="chargetotal" type="hidden" id="chargetotal" value="39.95">
                <input name="storename" type="hidden" id="storename"
value="#######">
                <br>
                <input name="bname" type="text" class="formfield" id="bname" size="50">
              </p></td>
          </tr>
        </table>
        <table width="425" height="34" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="305" height="34" align="left" class="formheader">Shipping 
              Address<font color="#FF6600">*</font>:<br> <input name="baddr1" type="text" class="formfield" id="baddr1" size="30"></td>
            <td width="120" align="left" class="formheader">Apartment:<br> <input name="baddr2" type="text" class="formfield" id="baddr2" size="6"></td>
          </tr>
        </table>
        <table width="425" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="208" align="left" class="formheader">City<font color="#FF6600">*</font>:<br> 
              <input name="bcity" type="text" class="formfield" id="bcity" size="25"></td>
            <td width="76" align="left" class="formheader">State<font color="#FF6600">*</font>:<br> 
              <input name="bstate" type="text" class="formfield" id="bstate" size="2"></td>
            <td width="141" align="left" class="formheader">Zip Code<font color="#FF6600">*</font>:<br> 
              <input name="bzip" type="text" class="formfield" id="bzip" size="10"></td>
          </tr>
        </table>
        <table width="425" height="33" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="208" height="33" align="left" class="formheader">Email<font color="#FF6600">*</font>:<br> 
              <input name="email" type="text" class="formfield" id="email" size="12"></td>
            <td width="217" align="left" valign="bottom" class="formheader">Telephone<font color="#FF6600">*</font>:<br> 
              <input name="phone" type="text" class="formfield" id="phone" size="12"> 
            </td>
          </tr>
        </table>
        <div align="right"> 
          <input name="submit" type="image" id="submit4" src="images/next.png" width="84" height="30" border="0">
        </div>
      </form></TD>

feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I would recommend hiring an experienced programmer. Good, secure forms manager are not that easy to code.
(#10850)
everethweb
Forum Newbie
Posts: 2
Joined: Mon May 21, 2007 9:55 am

Post by everethweb »

arborint wrote:I would recommend hiring an experienced programmer. Good, secure forms manager are not that easy to code.
I appreciate the advice. However, I am capable of programming and am familiar with PHP, Perl, C++ and more. I just need to be pointed in the right direction and I'm sure I can easily pick up from there. I'm not one to re-invent the wheel so if someone knows of a script that's readily available I would like to modify it to suit my needs. Please let me know if that's a possibility.

Thanks for your reply.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

If you are experienced with PHP, then set the first form action to be a PHP page that you run in which you gether the information in the form, then email that yourself then redirect to the secure site at step 2.
Post Reply