Help With Registration Form

Hi
I have created a registration form, where on the first page
the user enters a user name and password, then they go to the next
page where they enter their name. This then goes to the next page
where they enter their address, then there contact details.
But I want all these details to go on to a page where they
can review their details, then press a submit button which inserts
the data into a mysql db.
But I need help with how I do this?
I have created the following Java script in the body. Or
should it be in the header? Or on another form? to insert their
details:-
<% Insert Data %>
<jrun:sql datasrc="regift">
INSERT INTO account VALUES ('<%=
request.getParameter("User_Name").trim() %>',
'<%= request.getParameter("Password").trim() %>',
INSERT INTO name VALUES ('<%=
request.getParameter("First_Name").trim() %>',
'<%= request.getParameter("Last_Name").trim() %>'
INSERT INTO address VALUES ('<%=
request.getParameter("House_Number").trim() %>',
'<%= request.getParameter("Street").trim() %>',
'<%= request.getParameter("Town").trim() %>',
'<%= request.getParameter("County").trim() %>',
'<%= request.getParameter("Postcode").trim() %>'
INSERT INTO contact_details VALUES ('<%=
request.getParameter("Email_Address").trim() %>',
'<%= request.getParameter("Telephone_Number").trim()
%>'
</jrun:sql>
Is this correct?
Thanks for all your help, Lou.

Your code is correct only for the first page. What you need
to do after the
initial record is entered is grab its ID and then on
subsequent pages you
would use and UPDATE sql statement
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"LoobieLouLou" <[email protected]> wrote in
message
news:emggvv$q67$[email protected]..
> Hi
>
> I have created a registration form, where on the first
page the user
> enters a
> user name and password, then they go to the next page
where they enter
> their
> name. This then goes to the next page where they enter
their address, then
> there contact details.
>
> But I want all these details to go on to a page where
they can review
> their
> details, then press a submit button which inserts the
data into a mysql
> db.
>
> But I need help with how I do this?
>
> I have created the following Java script in the body. Or
should it be in
> the
> header? Or on another form? to insert their details:-
>
> <% Insert Data %>
> <jrun:sql datasrc="regift">
>
> INSERT INTO account VALUES ('<%=
request.getParameter("User_Name").trim()
> %>',
> '<%= request.getParameter("Password").trim() %>',
>
> INSERT INTO name VALUES ('<%=
request.getParameter("First_Name").trim()
> %>',
> '<%= request.getParameter("Last_Name").trim() %>'
>
> INSERT INTO address VALUES ('<%=
> request.getParameter("House_Number").trim()
> %>',
> '<%= request.getParameter("Street").trim() %>',
> '<%= request.getParameter("Town").trim() %>',
> '<%= request.getParameter("County").trim() %>',
> '<%= request.getParameter("Postcode").trim() %>'
>
> INSERT INTO contact_details VALUES ('<%=
> request.getParameter("Email_Address").trim() %>',
> '<%= request.getParameter("Telephone_Number").trim()
%>'
> </jrun:sql>
>
> Is this correct?
>
> Thanks for all your help, Lou.
>
>

Similar Messages

  • Desperate for help: ADDT registration form

    New to ADTT and back again with another, more urgent problem.
    I have used ADDT to create a registration page, using UPDATE instead of INSERT (this is necessary because the users are already in our system as contacts).  To accomplish this I had to do some hand coding and I fear I may have gone awry.  Initially I kept getting a blank page with the message "error: internal server" message when the page loaded...currently I get "Fatal error: Call to a member function addField() on a non-object in /home/agciorg/public_html/events/2009/259/users_Registration.php on line 33."  Now I can no longer open the registration page in Dreamweaver -- freezes DW everytime.  So I'm trying to edit in Text Edit to get it back to a functioning page.  I've already rebuilt the page from scratch twice trying to get things to work and I'm on a major time crunch and just can't afford to do it again.  Below is the current code (I've also attached the php file as a .txt)...any help in resolving my issue would be much, MUCH appreciated!
    <?php require_once('../../../Connections/AGCI.php'); ?>
    <?php
    // Load the common classes
    require_once('../../../includes/common/KT_common.php');
    // Load the tNG classes
    require_once('../../../includes/tng/tNG.inc.php');
    // Make a transaction dispatcher instance
    $tNGs = new tNG_dispatcher("../../../");
    // Make unified connection variable
    $conn_AGCI = new KT_connection($AGCI, $database_AGCI);
    // Start trigger
    $formValidation = new tNG_FormValidation();
    $formValidation->addField("UserFirstName", true, "text", "", "", "", "");
    $formValidation->addField("UserLastName", true, "text", "", "", "", "");
    $formValidation->addField("UserTitle", true, "text", "", "", "", "");
    $formValidation->addField("UserOrganization", true, "text", "", "", "", "");
    $formValidation->addField("UserEmail", true, "text", "email", "", "", "");
    $formValidation->addField("UserPassword", true, "text", "", "", "", "");
    $formValidation->addField("UserPhone", true, "text", "", "", "", "");
    $formValidation->addField("UserAddress", true, "text", "", "", "", "");
    $formValidation->addField("UserCity", true, "text", "", "", "", "");
    $formValidation->addField("UserState", true, "text", "", "", "", "");
    $formValidation->addField("UserZip", true, "text", "zip_generic", "", "", "");
    $formValidation->addField("UserCountry", true, "text", "", "", "", "");
    $formValidation->addField("UserExpertise", true, "text", "", "", "", "");
    $formValidation->addField("UserArrivalDate", true, "date", "", "", "", "");
    $formValidation->addField("UserDepartureDate", true, "date", "", "", "", "");
    $formValidation1->addField("UserPassword", true, "text", "", "", "", "");
    $tNGs->prepareValidation($formValidation);
    // End trigger
    //start Trigger_CheckPasswords trigger
    //remove this line if you want to edit the code by hand
    function Trigger_CheckPasswords(&$tNG) {
      $myThrowError = new tNG_ThrowError($tNG);
      $myThrowError->setErrorMsg("Passwords do not match.");
      $myThrowError->setField("UserPassword");
      $myThrowError->setFieldErrorMsg("The two passwords do not match.");
      return $myThrowError->Execute();
    //end Trigger_CheckPasswords trigger
    //start Trigger_WelcomeEmail trigger
    //remove this line if you want to edit the code by hand
    function Trigger_WelcomeEmail(&$tNG) {
      $emailObj = new tNG_Email($tNG);
      $emailObj->setFrom("{KT_defaultSender}");
      $emailObj->setTo("{UserEmail}");
      $emailObj->setCC("");
      $emailObj->setBCC("[email protected]");
      $emailObj->setSubject("Registration Confirmation");
      //FromFile method
      $emailObj->setContentFile("includes/mailtemplates/welcome.html");
      $emailObj->setEncoding("ISO-8859-1");
      $emailObj->setFormat("HTML/Text");
      $emailObj->setImportance("Normal");
      return $emailObj->Execute();
    //end Trigger_WelcomeEmail trigger
    //start Trigger_ImageUpload trigger
    //remove this line if you want to edit the code by hand
    function Trigger_ImageUpload(&$tNG) {
      $uploadObj = new tNG_ImageUpload($tNG);
      $uploadObj->setFormFieldName("photo");
      $uploadObj->setDbFieldName("UserPhoto");
      $uploadObj->setFolder("../../../dB/ScientistPhotos/");
      $uploadObj->setResize("true", 200, 0);
      $uploadObj->setMaxSize(1500);
      $uploadObj->setAllowedExtensions("gif, jpg, jpeg, png");
      $uploadObj->setRename("custom");
      $uploadObj->setRenameRule("{rsUsers.UserFirstName}_{rsUsers.UserLastName}");
      return $uploadObj->Execute();
    //end Trigger_ImageUpload trigger
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;  
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_AGCI, $AGCI);
    $query_rsUsers = "SELECT * FROM users";
    $rsUsers = mysql_query($query_rsUsers, $AGCI) or die(mysql_error());
    $row_rsUsers = mysql_fetch_assoc($rsUsers);
    $totalRows_rsUsers = mysql_num_rows($rsUsers);
    // Make an update transaction instance
    $UserRegistration = new tNG_update($conn_AGCI);
    $tNGs->addTransaction($UserRegistration);
    // Register triggers
    $UserRegistration->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1");
    $UserRegistration->registerTrigger("END", "Trigger_Default_Redirect", 99, "redirect.php");
    $UserRegistration->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
    $UserRegistration->registerTrigger("AFTER", "Trigger_ImageUpload", 97);
    $UserRegistration->registerConditionalTrigger("{POST.UserPassword} != {POST.re_UserPassword}", "BEFORE", "Trigger_CheckPasswords", 50);
    $UserRegistration->registerTrigger("AFTER", "Trigger_WelcomeEmail", 60);
    // Add columns
    $UserRegistration->setTable("users");
    $UserRegistration->addColumn("UserContactType", "STRING_TYPE", "POST", "UserContactType");
    $UserRegistration->addColumn("UserEventID", "NUMERIC_TYPE", "POST", "UserEventID");
    $UserRegistration->addColumn("UserFirstName", "STRING_TYPE", "POST", "UserFirstName");
    $UserRegistration->addColumn("UserLastName", "STRING_TYPE", "POST", "UserLastName");
    $UserRegistration->addColumn("UserTitle", "STRING_TYPE", "POST", "UserTitle");
    $UserRegistration->addColumn("UserDepartment", "STRING_TYPE", "POST", "UserDepartment");
    $UserRegistration->addColumn("UserOrganization", "STRING_TYPE", "POST", "UserOrganization");
    $UserRegistration->addColumn("UserPhone", "STRING_TYPE", "POST", "UserPhone");
    $UserRegistration->addColumn("UserCellPhone", "STRING_TYPE", "POST", "UserCellPhone");
    $UserRegistration->addColumn("UserAddress", "STRING_TYPE", "POST", "UserAddress");
    $UserRegistration->addColumn("UserAddress2", "STRING_TYPE", "POST", "UserAddress2");
    $UserRegistration->addColumn("UserCity", "STRING_TYPE", "POST", "UserCity");
    $UserRegistration->addColumn("UserState", "STRING_TYPE", "POST", "UserState");
    $UserRegistration->addColumn("UserZip", "STRING_TYPE", "POST", "UserZip");
    $UserRegistration->addColumn("UserCountry", "STRING_TYPE", "POST", "UserCountry");
    $UserRegistration->addColumn("UserWebsite", "STRING_TYPE", "POST", "UserWebsite");
    $UserRegistration->addColumn("UserExpertise", "STRING_TYPE", "POST", "UserExpertise");
    $UserRegistration->addColumn("UserBio", "STRING_TYPE", "POST", "UserBio");
    $UserRegistration->addColumn("UserPhoto", "FILE_TYPE", "POST", "UserPhoto");
    $UserRegistration->addColumn("UserArrivalDate", "DATE_TYPE", "POST", "UserArrivalDate");
    $UserRegistration->addColumn("UserDepartureDate", "DATE_TYPE", "POST", "UserDepartureDate");
    $UserRegistration->addColumn("UserUnsureTravelDates", "CHECKBOX_YN_TYPE", "POST", "UserUnsureTravelDates");
    $UserRegistration->addColumn("User#AdultGuests", "NUMERIC_TYPE", "POST", "User_AdultGuests");
    $UserRegistration->addColumn("UserAdultGuestNames", "STRING_TYPE", "POST", "UserAdultGuestNames");
    $UserRegistration->addColumn("User#ChildGuests", "NUMERIC_TYPE", "POST", "User_ChildGuests");
    $UserRegistration->addColumn("UserChildGuestNames", "STRING_TYPE", "POST", "UserChildGuestNames");
    $UserRegistration->addColumn("UserUnsureGuests", "CHECKBOX_YN_TYPE", "POST", "UserUnsureGuests");
    $UserRegistration->addColumn("UserBookRoom", "CHECKBOX_YN_TYPE", "POST", "UserBookRoom");
    $UserRegistration->addColumn("UserComments", "STRING_TYPE", "POST", "UserComments");
    $UserRegistration->addColumn("UserRegistrationDate", "DATE_TYPE", "POST", "UserRegistrationDate");
    $UserRegistration->addColumn("UserEmail", "STRING_TYPE", "POST", "UserEmail", "{SESSION.kt_login_user}");
    $UserRegistration->addColumn("UserPassword", "STRING_TYPE", "POST", "UserPassword");
    // Make an update transaction instance
    $UsersRegistration = new tNG_update($conn_AGCI);
    $tNGs->addTransaction($UsersRegistration);
    // Execute all the registered transactions
    $tNGs->executeTransactions();
    // Get the transaction recordset
    $rsusers = $tNGs->getRecordset("users");
    $row_rsusers = mysql_fetch_assoc($rsusers);
    $totalRows_rsusers = mysql_num_rows($rsusers);
    ?>
    <!-----------------begin registration form----------------->
    <div id="RegistrationContainer">
          <form method="post" name="RegistrationForm" id="RegistrationForm" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>"> 
            <table width="515" border="0" align="right">
    <tr>
      <td height="135" colspan="2" valign="top" scope="col">
          <?php
    echo $tNGs->getErrorMsg();
    ?>
                    <h1 align="left">Registration Form</h1>
      <br>
        <span class="style5">Please read the logistics information prior to completing the registration form.</span><br />
           There are a limited number of spots available in this workshop.  To secure a spot, please fill out this registration form to the best of your ability as soon as possible.  Please notify AGCI of any subsequent changes to the information submitted below.
                    </td>
    </tr>
          <tr>
            <td height="37" colspan="2" scope="col"><strong>Create a Password</strong></td>
           </tr>
    <tr>
            <td height="53" colspan="2" valign="top" scope="col">
    <table cellpadding="2" cellspacing="0" class="KT_tngtable">
      <tr>
    <td width="127" class="KT_th"><label for="UserPassword">Password:</label></td>
    <td width="248">
    <input type="password" name="UserPassword" id="UserPassword" value="" size="32" />
    <?php echo $tNGs->displayFieldHint("UserPassword");?>
    <?php echo $tNGs->displayFieldError("users", "UserPassword"); ?>
    </td>
    </tr>
    <tr>
    <td class="KT_th"><label for="re_UserPassword">Re-type Password:</label></td>
    <td>
    <input type="password" name="re_UserPassword" id="re_UserPassword" value="" size="32" />
    </td>
    </tr>
      <tr>
    <td class="KT_th"><label for="UserEmail">Email (username):</label></td>
    <td>
    <input type="text" name="UserEmail" id="UserEmail" value="<?php echo $_SESSION['kt_login_user']; ?>" size="32" />
    <?php echo $tNGs->displayFieldHint("UserEmail");?>
    <?php echo $tNGs->displayFieldError("users", "UserEmail"); ?>
    </td>
    </tr>
    </table>
    </td>
           </tr>
    <tr>
            <td height="37" colspan="2" scope="col"><strong>Contact/Personal Information</strong></td>
           </tr>
    <tr>
    <td width="229" height="323" align="right" valign="top" scope="col">
    <input name="UserContactType" type="hidden" value="Scientist">
    <input name="UserEventID" type="hidden" value="259"> <!---NEEDS TO BE CHANGED FOR EACH WORKSHOP--->
    <?php $date = getdate(); ?>
    <input name="UserRegistrationDate" type="hidden"  value="<?php echo $date ?>" >
              <p align="right"><span class="style5">*</span>First name:
                <input type=text name="firstname" value="<?php echo $_SESSION['kt_UserFirstName']; ?>"></p>
       <p align="right"><span class="style5">*</span>Last Name:
               <input type=text name="lastname" value="<?php echo $_SESSION['kt_UserLastName']; ?>"></p>
              <p align="right"><span class="style5">*</span> Job Title:
                <input type=text name="title"></p>
              <p align="right">Department:
               <input type=text name="department"></p>
             <p align="right"><span class="style5">*</span>Organization:
               <input type=text name="organization"></p>
             <p align="right"><span class="style5">*</span>Office Phone:
               <input type=text name="officephone"></p> 
              <p align="right">Cell Phone:
               <input type=text name="cellphone"></p>     
                </td>
                    <td width="255" height="323" valign="top" scope="col">
             <p align="right"><span class="style5">*</span>Address 1:
                <input type=text name="address1"></p>
             <p align="right">Address 2:
               <input type=text name="address2"></p>
              <p align="right"><span class="style5">*</span>City:
                <input type=text name="city"></p>
             <p align="right"><span class="style5">*</span>State / Province:
               <input type=text name="state"></p>
             <p align="right"><span class="style5">*</span>Zip / Postal Code:
               <input type=text name="zipcode"></p>
             <p align="right"><span class="style5">*</span>Country:
               <select name="req_country">
                  <option value="Argentina">Argentina
                  <option value="Australia">Australia
                  <option value="Austria">Austria
                  <option value="Belgium">Belgium
                  <option value="Brazil">Brazil
                  <option value="Canada">Canada
                  <option value="Caribbean_Islands">Caribbean Islands
                  <option value="Chile">Chile
                  <option value="China">China
                  <option value="Colombia">Colombia
                  <option value="Denmark">Denmark
                  <option value="Ecuador">Ecuador
                  <option value="Egypt">Egypt
                  <option value="Finland">Finland
                  <option value="France">France
                  <option value="Germany">Germany
                  <option value="Greece">Greece
                  <option value="Greenland">Greenland
                  <option value="Hong_Kong">Hong Kong
                  <option value="Iceland">Iceland
                  <option value="India">India
                  <option value="Indonesia">Indonesia
                  <option value="Ireland">Ireland
                  <option value="Israel">Israel
                  <option value="Italy">Italy
                  <option value="Japan">Japan
                  <option value="Korea">Republic of Korea
                  <option value="Luxembourg">Luxembourg
                  <option value="Malaysia">Malaysia
                  <option value="Mexico">Mexico
                  <option value="Netherlands">Netherlands
                  <option value="New_Zealand">New Zealand
                  <option value="Norway">Norway
                  <option value="Philippines">Philippines
                  <option value="Portugal">Portugal
                  <option value="Russian">Russian Federation
                  <option value="Saudi_Arabia">Saudi Arabia
                  <option value="Singapore">Singapore
                  <option value="South_Africa">South Africa
                  <option value="Spain">Spain
                  <option value="Sweden">Sweden
                  <option value="Switzerland">Switzerland
                  <option value="China">Province Of China Taiwan
                  <option value="Thailand">Thailand
                  <option value="Turkey">Turkey
                  <option value="United Kingdom">United Kingdom
                  <option value="US" selected="selected">United States
                  <option value="Venezuela">Venezuela
                  <option value="Viet_Nam">Viet Nam
                  <option value="N/A">Not listed
              </select></p>
                <p align="right">Website:
               <input type=text name="website"></p>
                <p align="right"><span class="style5">*</span>Expertise:
                <input type=text name="expertise"></p>
              <br>        
              </td>
    </tr>
       <tr>
              <td colspan="2" align="right" valign="top" scope="col">
                <p><strong>Attach bio:</strong>
      Please type or cut and paste a short professional bio. <br>
      <textarea name="bio" rows="20" style="width:100%"></textarea> <br>
    </p>
    <br>
    <p><strong>Upload photo:</strong>
                  <input class="noformstyle" type="file" name="photo" size="30" ><br>
    (max. 1.5Mb; allowed file types: *.jpg, *.gif, *png only)</p>
    <br>
    <div class="lineDiv"></div>
    <br>
    </td>
           </tr>
          <tr>
              <td height="66" align="right" valign="top" scope="col"><p><strong><span class="style5">*</span>Travel</strong></p>
    <p>Arrival Date:
               <input name="arrivaldate" id="arrivaldate" value="" size="11"><a href="javascript:void(0)" onClick="if(self.gfPop)gfPop.fPopCalendar(document.RegistrationForm.arrivaldate);return false;" ><img class="PopcalTrigger" align="absmiddle" src="http://www.agci.org/JavaScript/calendar/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                </p>          
                </td>
                <td height="66" align="right" valign="top" scope="col">
                  <div align="right">
                    <p> </p>
                    <p>Departure Date:
                      <input name="departuredate" id="departuredate" value="" size="11"><a href="javascript:void(0)" onClick="if(self.gfPop)gfPop.fPopCalendar(document.RegistrationForm.departuredate);return false;" ><img class="PopcalTrigger" align="absmiddle" src="http://www.agci.org/JavaScript/calendar/calbtn.gif" width="34" height="22" border="0" alt=""></a>
                    </p>
                  </div>
                </td>
    </tr>
          <tr>
              <td height="34" colspan="2" align="right" valign="top" scope="col">
                <label>
                <input type="checkbox" name="travel" id="checkbox" value="unsure of travel dates at this time" class="noformstyle" />
                  I do not know my planned travel dates at this time.
                  </label>
              I will notify AGCI as soon as I have made my travel arrangements (see Logistics for information on travel and how to book your travel with AGCI's travel agent).
               </td>
            </tr>
              <td height="184" colspan="2" valign="bottom" scope="col">
                  <br>
    <div class="lineDiv"></div>
    <br>
    <p><span class="style5">*</span><strong>I will be bringing the following guests:</strong></p>
                <p># of Adults:    <select name="adultguests" size="1">
                  <option value="0">0</option>
                  <option value="1">1</option>
                  <option value="2">2</option>
                  <option value="3">3</option>
                  <option value="4">4</option>
                </select>  Names: <input type=text name="adultguestnames">
                </p>
                <p># of Children: <select name="childguests" size="1">
                  <option value="0">0</option>
                  <option value="1">1</option>
                  <option value="2">2</option>
                  <option value="3">3</option>
                  <option value="4">4</option>
                </select>  Names:
                <input type=text name="childguestnames">
                 <br />
                 <br />
                 <input type="checkbox" name="guests" id="checkbox2" value="unsure about guests at this time" class="noformstyle"/>
                     I am not sure about guests at this time. I will let AGCI know at a later date if I decide to bring a guest or child.
                  </td>
            </tr>
          <tr>
            <td height="182" colspan="2" valign="bottom" scope="col">
    <br>
    <div class="lineDiv"></div>
    <br>
                    <p><span class="style5">*</span><strong>Lodging</strong></p>
              <input type="radio" name="book a room?" value="yes" class="noformstyle">
                 <strong>Please reserve a room for me and my guest(s) at the Molly Gibson Lodge.</strong>  A lodging confirmation will be sent to you once you are
    registered. If you plan on extending your stay before or after the workshop dates, please let us know so that we can make appropriate arrangements with the hotel.<br />
    <br />
              <input type="radio" name="book a room?" value="no" class="noformstyle">
                  <strong> I do not require lodging at the Molly Gibson. </strong>I will notify AGCI of where I intend to stay,
    and I understand the reimbursement procedures as described in the logistics information.        
    </td>
           </tr>
          <tr>
              <td height="218" colspan="2" valign="bottom" scope="col">
                <p><strong>Comments:</strong><br>
                <textarea name="comments" cols="400" rows="3"></textarea></p>
                </td>
           </tr>
          <tr>
             <td height="57" colspan="2" valign="middle" scope="col">
                <span class="style5">* required field</span>
               </td>
            </tr>
          <tr>
             <td height="20" colspan="2" valign="bottom" scope="col">
            <input class="submit" type="submit" name="KT_Insert1" id="KT_Insert1" value="Register"></td>
           </tr>
          <tr>
            <td height="121" colspan="2" valign="bottom" scope="col">
              </td>
           </tr>
         </table>
    </form>
    </div>
    <!-----------------end registration form----------------->

    Actually if you do not need a public registration form, its much more practical to use the "Create Dynamic List" and "Create Dynamic Form" behaviors in your site administration back end. And it really only takes about two minutes to set up.
    This will give you the ability to add, delete and edit all your users.
    Brad Lawryk
    Community Expert: Dreamweaver
    Usergroup Manager: Northern British Columbia Adobe Usersgroup

  • Help - pet registration form

    Hi, i have two tables: pet_owner and pet...trying to make a pet registration form....owner might have more than one pet.
    ho do i create a form with the owner's details at the top, then a drop down, how many pet would you like to register? [1][2][3] and depending on the selection made, 1, 2 or 3 sets of input fields appear below?
    similar to : http://www.virginvet.co.uk/register-your-pet.php
    this is making my head hurt.

    Your code is correct only for the first page. What you need
    to do after the
    initial record is entered is grab its ID and then on
    subsequent pages you
    would use and UPDATE sql statement
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "LoobieLouLou" <[email protected]> wrote in
    message
    news:emggvv$q67$[email protected]..
    > Hi
    >
    > I have created a registration form, where on the first
    page the user
    > enters a
    > user name and password, then they go to the next page
    where they enter
    > their
    > name. This then goes to the next page where they enter
    their address, then
    > there contact details.
    >
    > But I want all these details to go on to a page where
    they can review
    > their
    > details, then press a submit button which inserts the
    data into a mysql
    > db.
    >
    > But I need help with how I do this?
    >
    > I have created the following Java script in the body. Or
    should it be in
    > the
    > header? Or on another form? to insert their details:-
    >
    > <% Insert Data %>
    > <jrun:sql datasrc="regift">
    >
    > INSERT INTO account VALUES ('<%=
    request.getParameter("User_Name").trim()
    > %>',
    > '<%= request.getParameter("Password").trim() %>',
    >
    > INSERT INTO name VALUES ('<%=
    request.getParameter("First_Name").trim()
    > %>',
    > '<%= request.getParameter("Last_Name").trim() %>'
    >
    > INSERT INTO address VALUES ('<%=
    > request.getParameter("House_Number").trim()
    > %>',
    > '<%= request.getParameter("Street").trim() %>',
    > '<%= request.getParameter("Town").trim() %>',
    > '<%= request.getParameter("County").trim() %>',
    > '<%= request.getParameter("Postcode").trim() %>'
    >
    > INSERT INTO contact_details VALUES ('<%=
    > request.getParameter("Email_Address").trim() %>',
    > '<%= request.getParameter("Telephone_Number").trim()
    %>'
    > </jrun:sql>
    >
    > Is this correct?
    >
    > Thanks for all your help, Lou.
    >
    >

  • Help with PDF form responses

    Hey there!
    I have two issues with online form data collection and am completely stumped. It's a real struggle to find useful documentation for Acrobat forms!
    #1 - I have created a form uploaded it to Acrobat.com, and have been able to collect test form data. In the local responses portfolio, I'm able to use the 'Update' button to bring the latest form data into the portfolio. But I would like to have a colleague be responsible for monitoring the form data and we're running into problems. He's able to open the portfolio and has full access, however the 'Update' button is greyed out so he is unable to bring in new form data. We've already updated his 'Acrobat.com' username/password in Acrobat preferences to match mine, but still no luck. Any help?
    #2 - Some computers are having issues with electronic submission. My best guess is that this is to do with Acrobat versions, as the issues all seem to come from computers where the form is completed using Acrobat Reader 8. The form was created with Pro 9, and form submission works for both Pro 9 and also Reader 9. Is there something I can do here? (And yes I know that it's a free upgrade to 9, but 8 is still in the official build for our organisation and I don't really have time to wait for them to complete an upgrade!)
    Thanks in advance for any help you can give.
    Jarrod

    Hello Paul,
    Thank you for your reply.
    I use Ipower for my hosting.  I see they use sendmail and the path on the server is - /usr/sbin/sendmail.  Would this work?
    The way I would like this to work would be:
    1) I e-mail the PDF form to the client
    2) Client opens and fills in the form
    3) They hit submit and the form information eventually gets e-mailed to my business e-mail
    I chose to use the HTTP method instead of e-mail because the PDF form says it can not be saved and if the client uses an internet beased e-mail like Yahoo it gets kind of messy.
    But, does the HTTP delivery method make it more difficult since this is not embedded in a website?
    Sorry, I did not realise this would be as involved as it is.  Your help would be greatly appreciated.

  • Livecycle design 8 Help with PDF forms

    I am new to Livecycle 8. I have created a simple PDF form in Livecycle 8 which was orignally an excel form. I set it up with a submit button to submit by email to a designated person. The form is housed on an internal web site for viewers with adobe reader to open and fill out and then submit by email. The goal is for the designated receiver to receive the the same PDF form with the information filled out by the previous viewer. I was successful with the form being emailed to the designated person as long as the peson submitting the form was using adobe professional. If the viewer only has adobe reader, the form would not submit to the designated receiver. Please help? 

    Reader does not allow a local save of the form and data by default. To be able to add the attachment o an email message a local save must occur. You can Reader Extend your form to allow for this. Open th eform in Acrobat Pro. Under the Advanced menu choose the "Extend Features in Adobe Reader". Follow the wizard and save the result PDF as a different name ....I like to put RE in the name so I know it is Reader Extended. Try the new file.
    paul

  • Help with Parameter Form

    Hello, I have a somewhat complicated Report and I am hoping that I can create the Parameter Form in Reports (I would rather not use Forms because I don't know it as well)
    Here's my problem:
    Right now I have 2 fields that I need help with.
    The first one is called "Report Name" and I have it coded to a bind variable that will search for a series of "work units" such as 02% or 03%
    This works as coded, the problem comes with the other "Work Unit" field. What I have right now is a LOV that queries for work units that start in either 02 or 03. This variable will narrow down the report findings to the specific work unit selected. What I want is for this list to be dependant on what the user choses for report name.
    For example if the user choses ReportName1 the report query finds work units with 02%, but the "work unit" field still displays the list of work units 02% and 03% and the user must know to only chose the certain work units for the specific "Report Name" selected.
    If there is a way to somehow have the "Work Unit" field be dependant on the "Report Name" field please give me soem ideas of how to do it.

    Thats what I was worried about.
    Well I have been trying to learn forms for some time now but I can't quite get the hang of it yet.
    I don't really have anyone who knows it here, so I'm kind of learning on my own.
    Thanks for the response.
    Arin

  • HELP WITH A FORM

    Ok here is the problem,
    I am trying to make a form in my existing fla document and
    the form will not function.
    I have created the form and used the exact same php script in
    a seperate flash movie and the form worked fine but I can not get
    it to work in my existing fla.
    I would reall appreciate any help with this issue.....
    I need my file
    (download my file at
    http://66.70.213.43/testsite/main3.fla
    to have a working email submission form.
    this file has no working form on it now and the existing form
    can be modified but I would like to keep the submit and the reset
    buttons as is if possable.
    I would like to use the php email style that is in the lesson
    on gotoandlearn.com ( the lesson is listed as sending mail with php
    but I am willing to accept other methods if needed.
    The Movie clip symbol of the actual form with the submit and
    reset button is call P5_s7
    The Movie clip symbol of the page which contains the form is
    called PAGE 5
    I will edit the php and the flash script after you send the
    file to me to reflect the email addresses that I want to use so for
    testing purposes you can use any email that you want.
    I would really appreciate it if someone with more flash
    experience could help me out and post a working copy of my file and
    the php script that the form links to so that I could re download
    then.
    Thank you in advance
    Please note that there may be some $$$ in it for you if you
    can help me.......

    Don't think you're going to find anyone here who will just be
    willing to do the work for you. You might want to check out the
    Flash and PHP Integration sample file that comes with Flash 8 for
    some pointers on how to get this started.
    If you have specific questions later, write back! Good luck!

  • Help with Login Form (JSP DB Java Beans Session Tracking)

    Hi, I need some help with my login form.
    The design of my authetication system is as follows.
    1. Login.jsp sends login details to validation.jsp.
    2. Validation.jsp queries a DB against the parameters received.
    3. If the query result is good, I retrieve some information (login id, name, etc.) from the DB and store it into a Java Bean.
    4. The bean itself is referenced with the current session.
    5. Once all that's done, validation.jsp forwards to main.jsp.
    6. As a means to maintain state, I prefer to use url encoding instead of cookies for obvious reasons.I need some help from step 3 onwards please! Some code snippets will do as well!
    If you think this approach is not a good practice, pls let me know and advice on better practices!
    Thanks a lot!

    Alright,here is an example for you.
    Assume a case where you don't want to give access to any JSP View/HTML Page/Servlet/Backing Bean unless user logging system and let assume you are creating a View Object with the name.
    checkout an example (Assuming the filter is being applied to a pattern * which means when a resource is been accessed by webapplication using APP_URL the filter would be called)
    public doFilter(ServletRequest req,ServletResponse res,FilterChain chain){
         if(req instanceof HttpServletRequest){
                HttpServletRequest request = (HttpServletRequest) req;
                HttpSession session = request.getSession();
                String username = request.getParameter("username");
                String password = request.getParameter("password");
                String method = request.getMethod();
                String auth_type  = request.getAuthType();
                if(session.getAttribute("useInfoBean") != null)
                    request.getRequestDispatcher("/dashBoard").forward(req,res);
                else{
                        if(username != null && password != null && method.equaIsgnoreCase("POST") && (auth_type.equalsIgnoreCase("FORM_AUTH") ||  auth_type.equalsIgnoreCase("CLIENT_CERT_AUTH")) )
                             chain.doFilter(req,res);
                        else 
                          request.getRequestDispatcher("/Login.jsp").forward(req,res);
    }If carefully look at the code the autherization is given only if either user is already logged in or making an attempt to login in secured way.
    to know more insights about where these can used and how these can be used and how ?? the below links might help you.
    http://javaboutique.internet.com/tutorials/Servlet_Filters/
    http://e-docs.bea.com/wls/docs92/dvspisec/servlet.html
    http://livedocs.adobe.com/jrun/4/Programmers_Guide/filters3.htm
    http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
    http://www.servlets.com/soapbox/filters.html
    http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
    and coming back to DAO Pattern hope the below link might help you.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
    http://java.sun.com/blueprints/patterns/DAO.html
    http://www.javapractices.com/Topic66.cjp
    http://www.ibm.com/developerworks/java/library/j-dao/
    http://www.javaworld.com/javaworld/jw-03-2002/jw-0301-dao.html
    On the whole(:D) it is always a good practice to get back to Core Java/J2EE Patterns.and know answers to the question Why are they used & How do i implement them and where do i use it ??
    http://www.fluffycat.com/java-design-patterns/
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
    http://www.cmcrossroads.com/bradapp/javapats.html
    Hope that might help :)
    REGARDS,
    RaHuL

  • Help with xfa-form

    Hello,
    I am a developer (VB6 ASP),
    Please, I need to know, What I need to populate/read an xfa-form, that was created for another company.
    I do not know what is the tool that I need to investigate, or a component. (the pdf form it was created with liveCycle)
    The original empty pdf form is in xfa-form and I need fill in and the resulted file is delivered to another person that stamp digital signature,
    I can fill this pdf form manually with adobe reader 9, but i need this task programmatically.
    has any idea for this?
    Thank you in advance!
    (sorry for my english)
    Clarisa

    Thank you Hodmi!
    Another question, I new in adobe Technologies, and I am lost in the family of LiveCycle products,
    I need pre-populate the pdf that I have attached, xfa-form1.pdf
    for example,
    1- I download this pdf from an external site,
    2- I have to pre-populate with 2 Fields that I obtain from my Database,
    3- I embed this pdf file in aspx page(ASP.NET)
    4- the user 1 must put their signature.
    4- the user 2 must put their signature.
    End
    I saw code that manipulate programmatically .xdp files with pdf forms, but I do not know if I can manipulate this pdf that I have attached, please, could you help me, If in theory I Can do that?
    (I have to do with ASP.NET)
    Best Regards!
    Clarisa

  • Help with web form script. PHP, CGI, Perl???

    anyone willing to help with a web form script? I have a form built, but cant seem to figure out the scripting! Should I be using Perl, CGI, PHP... What do I need to enable? I am a complete novice when it comes to scripts. Looking for a little friendly help.

    Here is a simple bit of PHP to stick in the page your form posts to. You would need to edit the first three variables to your liking, and add the html you want to serve afterwards:
    <pre>
    <?php
    $emailFrom = '[email protected]';
    $emailTo = '[email protected]';
    $emailSubject = 'Subject';
    $date = date('l, \t\h\e dS \o\f F, Y \a\t g:i A');
    $browser = $HTTPSERVER_VARS['HTTP_USERAGENT'];
    $hostname = $HTTPSERVER_VARS['REMOTEADDR'];
    $message = "$date\n\nAddress: $hostname\nBrowser: $browser\n\n";
    foreach ($_POST as $key => $value) {
    $message .= $key . ": " . $value . "\n";
    $mailResult = mail($emailTo,$emailSubject,$message,"From: $emailFrom");
    ?>
    </pre>
    This script will grab the server's date and the submitter's address and browser type. It will then list the name and value of each form field you have put on your form.
    Also, this script expects your form method="post".
    Lastly, you can offer alternate text later on in your html page based on the success of the above script with a snippet like this:
    <pre><?php
    if ($mailResult) {
    echo "Your comments have been received thank you.";
    } else {
    echo "There was an error. Please try again or contact us using an alternate method.";
    ?></pre>

  • Help with Scripting forms when additional characters added

    Hi,
    I am new to scripting in adobe professional, I thank anyone in advance for any advice or help they can give me.
    I am trying to use the calcuations within the forms that I am putting fields onto.  In the process I discovered that the program the forms are within are attaching a pipe and additional characters after the actual name that I have named them.  So, I am not able to use even the simple calculations within adobe to "sum" fields.   For example: I named the field "1_1Text" and this is what displays when you go into the calculations and pick the fields you want.  But the actual name is "1_1Text|1234567" so the calculations will not work.
    I take it then I need to use the advanced scripting but I am unsure of the format for a routine such as this.  I have a little knowledge of javascript but it has been awhile.  There must be a scan to find the pipe and then you should be able to chop off the extra characters since I will never know the characters the program adds on so then I can do calculations on these fields. Then you would have to put them into an array or something to save them?   Any help with a script or hints would surely be appreciated.
    Thanks!

    Could explain more fully how you are creating your forms and what programs you are using from the creation of the base document to which program and how you are adding fields.
    I think you are misunderstanding me.   I use Adobe Acrobat Professional 6.0.  I can get the calculations to work correctly if I use the form as it is after creating it. 
    But these forms are put into an SQL database and they get selected within a VB.net program or ASP.net program (both are used).  So these programs (VB.net or ASP.net) are adding the extra characters at the end, hence I do not know the names of the fields when the forms are being filled in.  So the calculations do not work with the "original names" that I created for the fields.
    I just figured if I created a routine that looped through and chopped off the extra characters these programs put on the end I would be able to do the calcuations and they would work.  I believe there is a substring operation within javascript.

  • Help with contact form

    Hi,
    there is a contact form on my site and it works to submit a message, but it always has my name as sender in it and my email adress to reply to!
    This is a form where customers are booking appointments, the shop always thinks that the emails are coming from me!
    I checked site manager - system emails - but what am I supposed to put in as from email? It should use the customers email, which will change all the time.
    I need help with that fast!
    Thanks in advance
    cheers
    Cat

    Hello Cat
    The "From" email is the email that will be displayed as the sender of the email (although the email is always sent from our servers), so it is not the customer's email address. You can set it to any email address, that can be your client's email address too, so when a reply is sent, the reply would be sent to the client. This is about the email that is sent to the visitors of the site, also known as the "Autoresponder" email.
    Cheers
    Parikshit

  • Problems with registration form for Make It Video webinars

    I want to register for your Make It Video webinars. But I can't, since 'State/Province' is a required field in the registration form - but there are no Danish options available.

    You may refer to this:
    Welcome to Adobe Forum,
    Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
    So you need to login with your Adobe ID and password to activate the cloud membership.
    Log out & log back in of the CC Desktop App.
    In case it is not signing in successfully please try the following:
    I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
       Windows:
       In windows 7 navigate to following location:
         /windows/system32/drivers/etc
       1. look out for "Hosts" file
       2. Open it with notepad
       3. Check if you have any entry for Adobe
       4. Remove the entries and try again launching any product from CC
       On Windows XP navigate to following location:
       \windows\system32\drivers\etc
       1. look out for "Hosts" file
       2. Open it with notepad
       3. Check if you have any entry for Adobe
       4. Remove the entries and try again launching any product from CC
       Mac:
       1. Please click on "Go" and navigate to /private/etc
       2. Open "hosts" file and check out for any entries for Adobe.com
       3. Remove the entries and save the file
       4.  try again launching any product from CC
    You can refer :
    http://helpx.adobe.com/creative-cloud/kb/ccm-prompt-serial-number.html
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-i ssues.html.
    Please let us know if it worked.
    Regards,
    Rajshree

  • Help with Custom Forms Report

    Hi there,
    I recently created a new custom web form in BC that appears to be working fine.
    My problem is that when I go to custom reports, in filter criteria I can't see my new form under the 'Custom CRM Form Filter'. All my other forms are appearing here however.
    Am I just missing one small step?
    Thanks for the help!

    Yor form must not have any custom fields, which is why it isn't in that
    dropdown. You can use the case subject to filter the cases where the case
    subject is the webform name.
    Cheers,
    Mario
    www.twoblokeswithapostie.com

  • Help with registration page

    Hi, I had a couple of questions with making a registration
    page. First, I'm having trouble figuring out how to make it so that
    when someone submits there email address, it has to be a valid one
    to continue, or even just an email address to begin with. Also, how
    to prevent a user from using numbers when a user types in their
    name as well as not let them type less than 3 characters. My last
    question if anyone can answer it is how do you send an email to the
    user after they submit the form, and make it so they have to click
    on a link before they can access the website, so that what they put
    in the form does not go into my database until they have clicked
    the link. Thanks, sorry for asking so many questions, any help for
    any of the questions would be greatly appreciated.

    The fundamental problem is that the OP is asking questions about Servlet and JSP development without fully understanding the basics of containers and the rendezvous method of data sharing, life-cycle, data scope, and the like.
    It is better that (s)he read up on the basics.

Maybe you are looking for

  • TDS Certificate, Challan Payment Issue and BSR Code Issue

    Hi All, I have configured Extended withholding tax as follows and encountered some issues 1. Specify Document Type (Accounts Payable): Here I have given Document type as SA and I am able to Pay the remittance challan through Post Vendor challan trans

  • All bookmarks used to appear in a dropdown on the right side of Bookmark Toolbar, now they do not

    All my bookmarks used to appear in a drop down automatically from an icon at the right end of the Bookmark Toolbar. These were not just the additional toolbar bookmarks, but all the bookmarks as you'd get from going to Bookmarks in the menu bar. Now

  • FB08 Print of reversal.

    Hi Gurus, If I have reversed an FI invoice with TC OB08, I cannot print it. I have tried to print with the same correspondence type as the invoice and also the correspondence type for credit memo, but get the error. No relevant item in document xxx;

  • What is sent as web adress??

    Hi. I have a script to a Fox Board and I would like to know what is sent out from this code I have. I believe it is sent something like this: http://192.168.0.90/7000/DL1 I guess it send something else in the end but i cant figure it out. Is there an

  • Blue patches in shadow areas when viewing .cr2 files in Develop module

    LR newbie. The last batch of images imported from my Canon 7D are all showing blue patches in the shadow areas. LR 5.2, Camera Raw 8.2 I am wondering if it is linked to lens profiles, as it appears to have started since I have begun using the Sigma 3