PHP question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #46
    Re: ABVFP vs Form Make PRO

    How does ABVFP compare with Form Maker Pro?

    Having downloaded ABVFP I dont want to go and download FMP to end up with the same capabilitites.

    Bearing in mind the path we followed yesterday -will this software give me a form as I see it after completion of the required data?

    No, NOT ONE form processor in the world will do that for you. It requires custom scripting in mixed php/html to get an email with a look similar to your form. As said, it has to be custom made, and will only work for the initial design, if the form design gets changed, the script will need to be changed also

    If not is there software available that I can get to give me this effect?

    As already said, no.


    The page that I am hoping to create - what term do you use to describe it? Is it a log template?

    Don't know of any particular term. Is is simly a signup form.

    Oh last but not least - how do I resolve the emial problem?

    I can't know what the problem is. Since you have made the installation yourself, i can't know the settings that you have used. To be honest, looking your form code, i beleive that the form has not been setup correctly (the hidden field with the form ID is missing) and then, i don't even know how you have setup (if you did) the form in ABVFP.
    Kind Regards
    ROb[/quote]
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    • Rob (SA)
      Lieutenant Colonel

      • Nov 2006
      • 586

      #47
      Re: ABVFP vs Form Make PRO

      Thanks George.

      Its all quite clear to me

      Regards
      Rob
      Kind Regards
      Rob
      www.gnjgf.co.za
      www.oryan-projects.com

      Comment

      • Rob (SA)
        Lieutenant Colonel

        • Nov 2006
        • 586

        #48
        Re: Script - Submission of form

        Hi Folks,

        I am not sure if this script is correct?

        Can anyone help?

        <script language="php">
        $email = "email";
        $mailto = "robhar@mweb.co.za";
        $mailsubj = "Feed back submission";
        $mailhead = "From:email";
        reset ($HTTP_POST_VARS);
        $mailbody = "Values submitted from web site form:\n";
        while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
        if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
        </script>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        <HTML>
        <HEAD>
        <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <TITLE>feedback</TITLE>
        <META name="KEYWORDS" content="GAUTENG,NORTH">
        <META http-equiv="Page-Enter" content="revealTrans(Duration=1,Transition=2)">
        <META name="GENERATOR" content="Created by BlueVoda">
        <STYLE type="text/css">
        div#container
        {
        width: 1190px;
        position: relative;
        margin-top: 0px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        }
        body
        {
        text-align: center;
        margin: 0;
        }
        </STYLE>
        <SCRIPT type="text/javascript" src="./jscookmenu.js"></SCRIPT>
        </HEAD>
        <BODY bgcolor="#FFFFFF" text="#0000FF" style="SCROLLBAR-FACE-COLOR:#AAD6EA;SCROLLBAR-ARROW-COLOR:#0000FF;SCROLLBAR-3DLIGHT-COLOR:#808080;SCROLLBAR-DARKSHADOW-COLOR:#000000;SCROLLBAR-HIGHLIGHT-COLOR:#FFFFFF;SCROLLBAR-SHADOW-COLOR:#808080;SCROLLBAR-TRACK-COLOR:#D4D0C8;">
        <DIV id="container">
        <DIV style="position:absolute;left:0px;top:0px;width:85 0px;height:1527px;z-index:26" align="left">
        <FORM name="feedback" method="POST" action="action.php" enctype="multipart/form-data">
        <DIV style="position:absolute;left:490px;top:200px;widt h:270px;height:240px;z-index:0" align="left">
        <IMG src="bv01126.gif" align="top" alt="" border="0" width="270" height="240">
        </DIV>
        <DIV style="position:absolute;left:620px;top:50px;width :130px;height:18px;background-color:#FFFFFF;z-index:1" align="center">
        <FONT style="font-size:16px" color="#0000FF" face="Arial">F E E D&nbsp;&nbsp; B A C K</FONT>
        </DIV>
        <DIV style="position:absolute;left:620px;top:120px;widt h:40px;height:15px;z-index:2" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">DATE</FONT>
        </DIV>
        <DIV style="position:absolute;left:510px;top:210px;widt h:60px;height:15px;z-index:3" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">Cell Phone</FONT>
        </DIV>
        <DIV style="position:absolute;left:510px;top:250px;widt h:72px;height:15px;z-index:4" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">Work phone</FONT>
        </DIV>
        <DIV style="position:absolute;left:510px;top:370px;widt h:39px;height:15px;z-index:5" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">e-mail</FONT>
        </DIV>
        <INPUT type="text" style="position:absolute;left:580px;top:210px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:6" size="32" name="Cell number" value="" maxlength="20">
        <INPUT type="text" style="position:absolute;left:580px;top:250px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:7" size="32" name="Work Phone" value="" maxlength="20">
        <INPUT type="text" style="position:absolute;left:580px;top:370px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:8" size="32" name="E mail" value="" maxlength="25">
        <INPUT type="text" style="position:absolute;left:580px;top:330px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:9" size="32" name="Fax Details" value="" maxlength="20">
        <DIV style="position:absolute;left:510px;top:330px;widt h:62px;height:15px;z-index:10" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">Fax details</FONT>
        </DIV>
        <DIV style="position:absolute;left:40px;top:160px;width :250px;height:15px;z-index:11" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">OUR COMMENTS RELATE TO:</FONT>
        </DIV>
        <DIV style="position:absolute;left:186px;top:12px;width :572px;height:29px;background-color:#FFFFFF;z-index:12" align="center">
        <FONT style="font-size:24px" color="#0000FF" face="Arial"><B>GAUTENG NORTH JUNIOR GOLF FOUNDATION</B></FONT>
        </DIV>
        <INPUT type="text" style="position:absolute;left:100px;top:230px;widt h:180px;font-family:Comic Sans MS;font-size:10px;z-index:13" size="36" name="First Name" value="" maxlength="25">
        <INPUT type="text" style="position:absolute;left:290px;top:230px;widt h:180px;font-family:Comic Sans MS;font-size:10px;z-index:14" size="36" name="Surname" value="" maxlength="25">
        <DIV style="position:absolute;left:490px;top:160px;widt h:180px;height:15px;z-index:15" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">CONTACT INFORMATION</FONT>
        </DIV>
        <INPUT type="text" style="position:absolute;left:580px;top:290px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:16" size="32" name="Home Phone" value="" maxlength="20">
        <DIV style="position:absolute;left:510px;top:290px;widt h:72px;height:15px;z-index:17" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">Home phone</FONT>
        </DIV>
        <select name="Gender" multiple size="1" style="position:absolute;left:40px;top:230px;width :52px;font-family:Comic Sans MS;font-size:10px;z-index:18">
        <option value="Second Member">Mr.</option>
        <option value="Miss">Miss</option>
        </select>
        <select name="Our Comments relate to the" multiple size="1" style="position:absolute;left:40px;top:180px;width :240px;font-family:Comic Sans MS;font-size:10px;z-index:19">
        <option value="WEBSITE">WEBSITE</option>
        <option value="TOURNAMENT ">TOURNAMENT</option>
        <option value="GAUTENG GOLF UNION">GAUTENG GOLF UNION</option>
        <option value="ERNIE ELS TOURNAMENTS ">ERNIE ELS TOURNAMENTS </option>
        <option value="S A G A ">S A G A</option>
        <option value="DISCIPLINE ">DISCIPLINE </option>
        <option value="RULES ">RULES </option>
        <option value="SCHOOL GOLF">SCHOOL GOLF</option>
        <option value="CLUB MATTERS">CLUB MATTERS</option>
        <option value="OTHER">OTHER</option>
        </select>
        <DIV style="position:absolute;left:40px;top:260px;width :250px;height:15px;z-index:20" align="left">
        <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">AND CAN BE READ AND UNDERSTOOD THAT</FONT>
        </DIV>
        <TEXTAREA name="and it can be understood that:" style="position:absolute;left:40px;top:280px;width :430px;height:160px;font-family:Comic Sans MS;font-size:10px;z-index:21" rows=10 cols=82></TEXTAREA>
        <INPUT type="text" style="position:absolute;left:668px;top:120px;widt h:88px;color:#0000FF;font-family:Comic Sans MS;font-size:12px;z-index:22" size="14" name="Date" value="" maxlength="15">
        <DIV style="position:absolute;left:380px;top:510px;widt h:51px;height:18px;z-index:23" align="left">
        <STYLE type="text/css">
        .ThemeDefault8Menu,.ThemeDefault8SubMenuTable
        {
        font-family: Comic Sans MS, arial, sans-serif;
        font-size: 10px;
        color: #FFFFFF;
        background-color: #3C32B8;
        font-weight: normal;
        padding: 0;
        border: 0;
        cursor: pointer;
        }
        .ThemeDefault8SubMenu
        {
        position: absolute;
        visibility: hidden;
        z-index: 100;
        border: 0;
        padding: 0;
        }
        .ThemeDefault8SubMenuTable
        {
        border-top: 1px solid white;
        }
        .ThemeDefault8SubMenuTable TD
        {
        white-space: nowrap;
        }
        .ThemeDefault8MainItem,.ThemeDefault8MainItemHover ,.ThemeDefault8MainItemActive,
        .ThemeDefault8MenuItem,.ThemeDefault8MenuItemHover ,.ThemeDefault8MenuItemActive
        {
        white-space: nowrap;
        }
        .ThemeDefault8MainItemHover,.ThemeDefault8MainItem Active,
        .ThemeDefault8MenuItemHover,.ThemeDefault8MenuItem Active
        {
        color: #FF0000;
        background-color: #E2E2E2;
        font-weight: normal;
        font-size: 10px;
        }
        .ThemeDefault8MenuSplit
        {
        height: 1px;
        margin-top: 1px;
        margin-bottom: 1px;
        overflow: hidden;
        background-color: inherit;
        border-top: 1px solid white;
        }
        .ThemeDefault8MenuVSplit
        {
        width: 1px;
        margin: 0px;
        overflow: hidden;
        background-color: inherit;
        border-right: 1px solid white;
        }
        </STYLE>
        <SCRIPT type="text/javascript">
        <!--
        var bvMenu8 =
        [
        [null, 'H&nbsp;O&nbsp;M&nbsp;E', 'http://www.gnjgf.co.za/', '_self', 'H O M E']
        ];
        -->
        </SCRIPT>
        <DIV ID=MenuID8></DIV>
        <SCRIPT type="text/javascript">
        <!--
        var cmThemeDefault8 =
        {
        mainFolderLeft: '',
        mainFolderRight: '',
        mainItemLeft: '',
        mainItemRight: '',
        folderLeft: '',
        folderRight: '',
        itemLeft: '',
        itemRight: '',
        mainSpacing: 0,
        subSpacing: 0,
        delay: 100
        };
        var cmThemeDefault8HSplit = [_cmNoAction, '<TD colspan="3" style="height: 3px; overflow: hidden"><DIV class="ThemeDefault8MenuSplit"></DIV></TD>'];
        var cmThemeDefault8MainHSplit = [_cmNoAction, '<TD colspan="3"><div class="ThemeDefault8MenuSplit"></DIV></TD>'];
        var cmThemeDefault8MainVSplit = [_cmNoAction, '<DIV class="ThemeDefault8MenuVSplit"></DIV>'];
        cmDraw('MenuID8', bvMenu8, 'hbr', cmThemeDefault8, 'ThemeDefault8');
        -->
        </SCRIPT>
        </DIV>
        <INPUT type="submit" name="" value="Submit" style="position:absolute;left:40px;top:450px;width :60px;height:24px;z-index:24">
        <INPUT type="reset" name="RESET" value="Reset" style="position:absolute;left:700px;top:450px;widt h:60px;height:24px;z-index:25">
        </FORM>
        </DIV>
        <IMG src="Daisy.jpg" alt="" align="top" border="0" width="134" height="140" style="position:absolute;left:0px;top:0px;width:13 4px;height:140px;z-index:27">
        <HR noshade size="5" width="760" color="#0000FF" style="position:absolute;left:0px;top:147px;width: 760px;height:5px;z-index:28">
        <HR noshade size="3" width="760" color="#0000FF" style="position:absolute;left:0px;top:487px;width: 760px;height:3px;z-index:29">
        </DIV>
        </BODY>
        </HTML>
        Kind Regards
        Rob
        www.gnjgf.co.za
        www.oryan-projects.com

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #49
          Re: PHP question

          Ok Rob, you are somewhat confused aboyt forms.

          1. The script must NOT be in the same page as the form. If the form page is called. i.e. form.html, and the form action is "action.php" (as it is in your form), then the php script should be in the Thank you (or confirmation, call it as you like) page.
          2. Your script should be this one:

          <?PHP
          $email = $HTTP_POST_VARS[email];
          $mailto = "order@example.com";
          $mailsubj = "
          Enter Your Subject Here";
          $mailhead = "From: $email\n";
          reset ($HTTP_POST_VARS);
          $mailbody = "Values submitted from web site form :\n";
          while (list ($key, $val) = each ($HTTP_POST_VARS))
          {
          if ($key!="submit")
          {
          $mailbody .= "$key : $val\n";
          }
          }
          mail($mailto, $mailsubj, $mailbody, $mailhead);
          ?>


          replace the parts in Blue and ONLY THOSE with your own email address ans your mail subject.


          3. Place the above script, with the changes, to the Start of Page or Inside body of your confirmation or Thank you page.

          4. Delete the script from the above page (form page).


          Save the two pages and publish them.
          Navaldesign
          Logger Lite: Low Cost, Customizable, multifeatured Login script
          Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
          DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
          Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

          Comment

          • Rob (SA)
            Lieutenant Colonel

            • Nov 2006
            • 586

            #50
            Re: email in forms

            Hi George,

            Thanks for the replay re:script in forms.

            A question - If there are multiple forms for submission would I have to create seperate thank you notes (action forms)?

            When you refer to the action form can it be like any other file and not specifiaclly action?

            Regard
            Rob
            Kind Regards
            Rob
            www.gnjgf.co.za
            www.oryan-projects.com

            Comment

            • navaldesign
              General & Forum Moderator

              • Oct 2005
              • 12080

              #51
              Re: PHP question

              I never mentioned "action form", i mentioned "form action" which means the action that will take place when the form info is submitted.

              The action script can be stand alone (not embedded in any html page) and in that case the code should be somewhat modified, to send the visitor to the Thank you Page after sending the email, OR, it can be embedded in the Start of Page or in the Inside Body Tag of the Tankyou page itself. If you want to have error page as well, the script has to be also modified. And it MUSt be pasted in the Start of Page, it is no longer ok in the Inside Body.

              The name of of the script is not important, it can be "action.php" or "contact.php" or whatever you like. Just make sure that the form action (what you type in the field "action" of the form) is the same.

              Please understand that the script presented in the tutorial (the one you posted above) is a very essential script, used only for training purposes. It will work, but it doesn't offer any antispam security, nor error reporting, nor database storing. Tht's why ABVFP was born. It allows all of the above (plus many other cool features) without any scripting.

              Last, yes, if you don't mind creating a generic Thankyou page that would be ok for all your forms, then the same script and the same Thankyou page can be ok for all your forms. That's another advantage of ABVFP: it will allow personalized messages, emails, autoresponders, error pages and thenkyou pages for each form.
              Navaldesign
              Logger Lite: Low Cost, Customizable, multifeatured Login script
              Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
              DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
              Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

              Comment

              Working...
              X