37 users online (0 members and 37 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 0
  2. How to pass an array through a form?    Forum: CGI Perl Forum
    Replies: 1
  3. Replies: 3
  4. Pass variable between php scripts.    Forum: PHP Forum
    Replies: 5
  5. Get the querystring into input box    Forum: Javascript Forum
    Replies: 1
  1. #1
    davehendy's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    1

    Unhappy querystring pass info with link

    Problem
    The problem I am having at the moment is that i cannot find how to transfer information from one form to another i.e. price and name variables. I did start to make an order form for every product...but knew that this wasn't suitable!

    e.g. a customer clicks on a product, this has a link that opens the order form. the order form has hidden questions for both name and price which needs to be populated.

    below i have got the code for the 1st form {this form is on a page in my website with about 11 others- each one is a different product with a price and a name (as hidden variables price = bprice and name = bname)
    the example below has the name blue man and is 15

    Do you know how I get these variables into the order form? and get the order form to use these variables. I've put the code for the order form at the bottom of the email.
    I've read up on loads of stuff on the net- i think its called a querystring.


    Product form (1st form)
    Code:
    <!-- FORM: HEAD SECTION -->
     <link href="http://app.formassembly.com/wForms/3.0/css/abstract-green/wforms.css" rel="stylesheet" type="text/css"></link>
     <link href="http://app.formassembly.com/wForms/3.0/css/wforms-jsonly.css" rel="alternate stylesheet" title="This stylesheet activated by javascript" type="text/css"></link>
    <link href="http://app.formassembly.com/wForms/3.0/css/wforms-layout.css" rel="stylesheet" type="text/css"></link>
    <!--[if IE 7]>
    <link href="http://app.formassembly.com/wForms/3.0/css/wforms-layout-ie7.css" rel="stylesheet" type="text/css"></link>
    <![endif]-->
    <script type="text/javascript" src="http://app.formassembly.com/wForms/3.0/js/wforms.js"></script>
    <script type="text/javascript" src="http://app.formassembly.com/wForms/3.0/js/wforms_custom_validation.js"></script>
    <script type="text/javascript" src="http://app.formassembly.com/js/populate_form.js"></script>
    
    <style type="text/css">
     .saveAndResume {
      text-align:right;
      font-size: small;
     }
     .saveAndResume fieldset {
      text-align:left;
     }
     .saveAndResume #tfa_resumeEmail {
      width: 195px;
     }
     .saveAndResume #tfa_resumePassword {
      width: 195px;
     }
     .saveAndResume .actions  { 
      width: 200px !important; 
      text-align: right; 
     }
     .saveAndResume .actions input {
      font-weight: bold;
      font-size: 100%;
     }
     .saveAndResume .actions #tfa_resumeLater.wfHideSubmit {
      display: inline !important;
     }
     .onstate-resumelater { display: block }
     .errorMessage {
      color:red;
      background-color:white;
      padding:5px;
      border:1px solid #F77;
      font-family:sans-serif;
     }
    </style>
    <div class="wForm">
    <div class="codesection" id="code-"></div>
    <form method="post" action="http://app.formassembly.com/responses/processor" id="id2634495" class="labelsLeftAligned hintsTooltip">
    <input type="hidden" id="tfa_PriceofBalloon" name="tfa_PriceofBalloon" value="15" class="formula=15 calc-bprice"><input type="hidden" id="tfa_bname" name="tfa_bname" value="Blue Man" class="calc-bname"><div class="htmlsection" id="html-tmp-0164390109116"><p align="center"><strong><u><a href="Order.php">BUY NOW</a></u></strong></p><p align="center"><a href="Order.php">&nbsp; <img style="width: 133px; height: 171px" src="http://app.formassembly.com/forms/get_image/22695/PI0007_small.jpg" alt="" width="133" height="171" /></a></p><p align="center"><a href="Order.php">Blue Man &pound;15</a></p></div>
    <div class="actions">
    </div>
    </form>
    </div>
    <!-- FORM: BODY SECTION -->
    Order form (2nd part)
    Code:
    <!-- FORM: HEAD SECTION -->
     <link href="http://app.formassembly.com/wForms/3.0/css/abstract-green/wforms.css" rel="stylesheet" type="text/css"></link>
     <link href="http://app.formassembly.com/wForms/3.0/css/wforms-jsonly.css" rel="alternate stylesheet" title="This stylesheet activated by javascript" type="text/css"></link>
    <link href="http://app.formassembly.com/wForms/3.0/css/wforms-layout.css" rel="stylesheet" type="text/css"></link>
    <!--[if IE 7]>
    <link href="http://app.formassembly.com/wForms/3.0/css/wforms-layout-ie7.css" rel="stylesheet" type="text/css"></link>
    <![endif]-->
    <script type="text/javascript" src="http://app.formassembly.com/wForms/3.0/js/wforms.js"></script>
    <script type="text/javascript" src="http://app.formassembly.com/wForms/3.0/js/wforms_custom_validation.js"></script>
    <script type="text/javascript" src="http://app.formassembly.com/js/populate_form.js"></script>
    
    <style type="text/css">
     .saveAndResume {
      text-align:right;
      font-size: small;
     }
     .saveAndResume fieldset {
      text-align:left;
     }
     .saveAndResume #tfa_resumeEmail {
      width: 195px;
     }
     .saveAndResume #tfa_resumePassword {
      width: 195px;
     }
     .saveAndResume .actions  { 
      width: 200px !important; 
      text-align: right; 
     }
     .saveAndResume .actions input {
      font-weight: bold;
      font-size: 100%;
     }
     .saveAndResume .actions #tfa_resumeLater.wfHideSubmit {
      display: inline !important;
     }
     .onstate-resumelater { display: block }
     .errorMessage {
      color:red;
      background-color:white;
      padding:5px;
      border:1px solid #F77;
      font-family:sans-serif;
     }
    </style>
    <div class="wForm">
    <div class="codesection" id="code-"></div>
    <form method="post" action="http://app.formassembly.com/responses/processor" id="id2626281" class="labelsLeftAligned">
    <div id="tfa_1341640371112" class="">
    <input type="hidden" id="tfa_PriceofBalloon" name="tfa_PriceofBalloon" value="" class="formula=bprice"><input type="hidden" id="tfa_BalloonName" name="tfa_BalloonName" value="" class="formula=bname">
    </div>
    <div class="wfPage " id="wfPgIndex-1">
    <h3>Delivery Details</h3>
    <fieldset id="tfa_8989171907979" class="">
    <legend>This section refers to the DELIVERY name and address.</legend>
    <fieldset id="tfa_9350546080581" class=""><div class="oneField">
    <label for="tfa_Name" class="preField">Name
         <span class="reqMark">*</span></label><input type="text" id="tfa_Name" name="tfa_Name" value="" size="40" class="required"><div class="field-hint-inactive" id="tfa_Name-H"><span>i.e Miss J L Smith</span></div>
    <br><span class="errMsg" id="tfa_Name-E"></span>
    </div></fieldset>
    <fieldset id="tfa_Address" class="">
    <div class="oneField">
    <label for="tfa_StreetAddress" class="preField">Street Address
         <span class="reqMark">*</span></label><input type="text" id="tfa_StreetAddress" name="tfa_StreetAddress" value="" size="50" class="required"><div class="field-hint-inactive" id="tfa_StreetAddress-H"><span>i.e. 10 Balloon Street</span></div>
    <br><span class="errMsg" id="tfa_StreetAddress-E"></span>
    </div>
    <div class="oneField">
    <label for="tfa_Addresscontinued" class="preField">Address continued</label><input type="text" id="tfa_Addresscontinued" name="tfa_Addresscontinued" value="" size="50" class=""><br><span class="errMsg" id="tfa_Addresscontinued-E"></span>
    </div>
    <div class="oneField">
    <label for="tfa_City" class="preField">City/Town
         <span class="reqMark">*</span></label><input type="text" id="tfa_City" name="tfa_City" value="" size="" class="required"><div class="field-hint-inactive" id="tfa_City-H"><span>i.e. Balloonstaple</span></div>
    <br><span class="errMsg" id="tfa_City-E"></span>
    </div>
    <div class="oneField">
    <label for="tfa_County" class="preField">County
         <span class="reqMark">*</span></label><input type="text" id="tfa_County" name="tfa_County" value="" size="40" class="required"><div class="field-hint-inactive" id="tfa_County-H"><span>i.e. Balloonshire</span></div>
    <br><span class="errMsg" id="tfa_County-E"></span>
    </div>
    <div class="oneField">
    <label for="tfa_Postcode" class="preField">Postcode
         <span class="reqMark">*</span></label><input type="text" id="tfa_Postcode" name="tfa_Postcode" value="" size="8" class="required"><div class="field-hint-inactive" id="tfa_Postcode-H"><span>i.e. BA10 0LN </span></div>
    <br><span class="errMsg" id="tfa_Postcode-E"></span>
    </div>
    </fieldset>
    </fieldset>
    </div>
    <div class="oneField">
    <label for="tfa_YOURTOTAL" class="preField">YOUR TOTAL:</label><input type="text" id="tfa_YOURTOTAL" name="tfa_YOURTOTAL" value="" size="40" readonly class="formula=bprice"><br><span class="errMsg" id="tfa_YOURTOTAL-E"></span>
    </div>
    <div class="actions">
    <input type="submit" class="primaryAction" id="submit-" name="tfa_submitAction" value="Submit"><input type="hidden" value="33148" name="tfa_dbFormId" id="tfa_dbFormId"><input type="hidden" value="" name="tfa_dbResponseId" id="tfa_dbResponseId"><input type="hidden" value="794a7d8706ec117c6e2e8bfd9fbddc5d" name="tfa_dbControl" id="tfa_dbControl">
    </div>
    </form>
    </div>
    <!-- FORM: BODY SECTION -->
    Last edited by vinyl-junkie; 08-13-2008 at 06:12 AM. Reason: Added code tags

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: querystring pass info with link

    edited post:

    Since you are using a third party form gen, it may be best to get support from them.

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting



Tags for this Thread