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.
>
>

Similar Messages

  • 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.
    >
    >

  • 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

  • Need help with php registration form! (Dreamweaver cs5)

    Im creating an advanced php registration form in dreamweaver. I need the following code for:
    ZIP / Postal code, date of birth.
                      or
    if u can help me how to create the entire form with the following fields That will be nice! Im a Newbie:
    First name, lastname, country, zip / postal code, date of birth, username, password, email, verified, and token.
    This is the database i have in mysql:
    User_id, INT, (10), UNSIGNED, NOT NULL, A_INCREMENT
    Firstname, VARCHAR, (50), NOT NULL
    Lastname, VARCHAR, (50), NOT NULL
    Country, VARCHAR, (20), NOT NULL
    Zip, INT, (12), NOT NULL
    Birth_date, DATE, NOT NULL    
    Username, VARCHAR, (15), NOT NULL
    Password, VARCHAR, (40), NOT NULL
    Email, VARCHAR, (100), NOT NULL
    Verified, ENUM, ('n','y'), NOT NULL
    Token, VARCHAR, (40), NOT NULL
    I need to know how to apply the insert recorset server behavior in dreamweaver cs5 so I can get it to run.
    I have been trying diff ways and i just can't get it right.
    Please help! Thanks!!!

    I'm not sure how much you know but first you have to connect your form to the database
    $con = mysql_connect("hostname","admin_name","password");
    Then you have to choose the database you want information be added to.
    mysql_select_db("database name goes here", $con);
    Then you have to write an sql function which will write it in the appropiate columns in your database
    $sql="INSERT INTO what column e.g members (First name, Last name, age, etc)
    VALUES (the names of the textfields on your form), actually double check that part
    ('$_POST[firstname]','$_POST[lastname]','$_POST[age]')";
    $result = mysql_query($sql);
    This is the first and most basic part just to give you an idea how it works.
    Within these snippets you will have to write much more which will beef up the security aswell as check if everything has been entered correctly etc

  • New G5 (to me) PPC, completely reformatted but can't get on the internet.  Can't find a registration form for Apple. Help?

    I've completely reformattted and installed Tiger 4.2, and am connected to my WiFi router but Safari informs me that it "failed to open page ...apple.com.startpage/ because it could not connect to the server "www.apple.com"
    Network Setup Assistant tells me "Congratulations you are Connected".
    When I was formatting the HD, they offered  me a registration page and said I could register later, which I choose, now I can't find a registration form anywhere. 
    I have a 20" G5 PowerMac 8.1, late August 2005, 1.8 GHz; 80GB; 600MHz; SerialNo. WxxxxxxVS9T; 1GB SDRAM
    TIA ....goldie

    There is no need to register an older Mac - but you should update to the final version of Tiger, 10.4.11.
    General advice on updating Tiger:
    It is worth noting that it is an extreme rarity for updates to cause upsets to your system, as they have all been extensively beta-tested, but they may well reveal pre-existing ones, particularly those of which you may have been unaware. If you are actually aware of any glitches, make sure they are fixed before proceeding further.
    So before you do anything else:
    If you can, make a full backup first to an external hard disk. Ideally you should always have a bootable clone of your system that enables you to revert to the previous pre-update state.
    Turn off sleep mode for both screen and hard disk.
    Disconnect all peripherals except your keyboard and mouse.
    1. Repair Permissions (in Disk Utility)
    2. Verify the state of your hard disk using Disk Utility. If any faults are reported, restart from your install disk (holding down the C key), go to Disk Utility, and repair your startup disk. Restart again to get back to your startup disk.
    At least you can now be reasonably certain that your system does not contain any obvious faults that might cause an update/upgrade to fail.
    3. Download the correct version of the COMBO update from the Apple download site. If your car runs on gasoline you would not want to fill the tank with diesel, so don’t try to install the PPC updater on an Intel Mac!
    The 10.4.11 Combo Updater for PPC Macs is here:  http://support.apple.com/kb/DL170
    And for Intel Macs here:  http://support.apple.com/kb/DL172
    If you prefer to download updates via Software Update in the Apple menu (which would ensure that the correct version for your Mac was being downloaded), it is not recommended to allow SU to install major (or even minor) updates automatically. Set Software Update to just download the updater without immediately installing it. There is always the possibility that the combined download and install (which can be a lengthy process) might be interrupted by a power outage or your cat walking across the keyboard, and an interrupted install will almost certainly cause havoc. Once it is downloaded, you can install at a time that suits you. You should make a backup copy of the updater on a CD in case you ever need a reinstall.
    Full details about the 10.4.11 update here:  http://support.apple.com/kb/TA24901?viewlocale=en_US
    More information on using Software Updater here:
    http://support.apple.com/kb/TA24901?viewlocale=en_US
    Using the Combo updater ensures that all system files changed since the original 10.4.0 are included, and any that may have been missed out or subsequently damaged will be repaired. The Delta updater, although a temptingly smaller download, only takes you from the previous version to the new one, i.e. for example from 10.4.10 to 10.4.11. Software Update will generally download the Delta updater only. The preferable Combo updater needs to be downloaded from Apple's download site.
    Now proceed as follows:
    4. Close all applications and turn off energy saving and screensaver.
    5. Unplug all peripherals except your keyboard and mouse.
    6. Install the update/upgrade. Do not under any circumstances interrupt this procedure. Do not do anything else on your computer while it is installing. Be patient.
    7. When it ask for a restart to complete the installation, click restart. This can take longer than normal, there are probably thousands of files to overwrite and place in the correct location. Do nothing while this is going on.
    8. Once your Mac is awake, repair permissions again, and you should be good to go!
    If your Mac seems slightly sluggish or ‘different’, perform a second restart. It can’t hurt and is sometimes efficacious!
    9. Open a few of your most used applications and check that all is OK. In this connection please remember that not all manufacturers of third party applications and plug-ins, add-ons, haxies etc, will have had time to do any necessary rewrites to their software to make them compliant with the latest version of your operating system. Give them a weeks or two while you regularly check their websites for updates. This applies particularly to plug-ins for Safari 3.
    N.B. Do not attempt to install two different updates at the same time as each may have different routines and requirements. Follow the above recommendations for each update in turn.
    Lastly, Apple's own article on the subject of Software Update may also be useful reading:
    http://docs.info.apple.com/article.html?artnum=106695
    If you are updating Safari (or just have):
    Input Managers from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up.  If you have installed an OS update and Safari is crashing, the very first thing to do is clear out your InputManagers folders (both in your own Library and in the top-level /Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4 or, if you downloaded it, Safari 3.0.3 beta. Safari 10.4.11 used Safari 3.0.4 which was not a beta. If Safari 3.1.2 on 10.4.11 is not the fastest browser you have ever used, then something is wrong!
    Moreover, trying to revert to Safari 3.0.4 (or worse still, version 2) when running 10.4.11 or 10.5 can have repercussions, as Safari 3.1.1 uses a completely different webkit on which other applications like iChat, Mail and Dashboard Widgets etc also rely, and may entail you having to reinstall an earlier operating system.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on. Two such add-on that have been frequently mentioned here for causing such problems are Piclens and Pithhelmet. If you have them, trash them.
    Additional tips on software installation here:
    http://docs.info.apple.com/article.html?artnum=106692
    To reiterate, Input Managers reach right into an application and alter its code. This puts the behavior of the affected application outside the control and responsibility of its developers: a recipe for  problems. That's not to say that issues absolutely will ensue as a result of Input Managers, but you, as a user, must decide. If the functionality of a specific Input Manager or set thereof is really important to you, you may well choose to assume the associated risk.
    Again, the advice is to remove all Input Managers from the following directories:
    /Library/InputManagers
    ~/Library/InputManagers
    especially prior to system updates (they can always be added back one-by-one later).

  • How to make registration form in vb 2010 express that is link in database access 2007

    Please help me to make a registration form. The project must have different user and each has username and password will be saved in
    my database but only the admin can add users. Thank you in advance.

    Your question needs to be more specific. We can help with Visual Basic code questions but your question is beyond the scope of that. You may want to look at the options from the below Google link. It looks like there are some YouTube videos that can help
    you with your project.
    https://www.google.com/search?hl=en&as_q=registration+form+access+database&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=&as_occt=any&safe=images&tbs=&as_filetype=&as_rights=&gws_rd=ssl#hl=en&as_qdr=all&q=registration+form+access+database+vb.net
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • Event registration form

    Is there a way that I can create an event registration form were users log in and post an event through a registration form then use a seperate page to search those events for results. They should be displayed in a table structure with submit and search buttons and multiple registration and search fields.

    How good are you with server-side programming and databases?  If you're good with backend coding, visit the Application Development Forum for help.
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
    As an alternative to hand coding, you might use WordPress with an event registration plug-in.
    http://eventespresso.com/features/?gclid=CJCXi4Wp3a4CFQ-ChwodY09nXQ
    http://wordpress.org/extend/plugins/event-registration/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How do i get my registration form to post with MD5

    Hi
    I have a registration form which posts to my, mysql database via this code:
    <?php
    define('DB_NAME','');
    define('DB_USER','');
    define('DB_PASSWORD','');
    define('DB_HOST','');
    define('DB_TABLE','user00');
    $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_TABLE);
    if (!$link){
              die ('Could not connect: ' . mysql_error());
    $db_selected = mysql_select_db(DB_NAME, $link);
    if (!$db_selected) {
              die('can\'t use' . DB_NAME . ': ' . mysql_error());
    $value1 = $_POST['Name'];
    $value2 = $_POST['EmailAddress'];
    $value3 = $_POST['Username'];
    $value4 = $_POST['Password'];
    $sql = "INSERT INTO user00 (Name, EmailAddress, Username, Password) VALUES ('$value1', '$value2', '$value3', '$value4')";
    echo 'connected successfully';
    if (!mysql_query($sql)){
              die('Error: ' . mysql_error());
    mysql_close();
    ?>
    The code works fine but i have just noticed that I have missed out the MD5 encryption that I want the password format to be in within the database.
    Any help would be appreaciated.

    AFAIK GoDaddy scripts do not provide support for anti-spam measures.  I'm pretty sure you would need to use a custom or 3rd party script.
    Or is there a better way to protect my form from spam bots?
    Yes.  IMO Captchas are not user friendly and should be used only as a last resort.
    The hidden Field Trick - Feeding an automated bot a field hidden with CSS. If it contains anything the message is deleted or flagged as spam.
    Form Timer - If the form is submitted too quickly (automated submission), it is deleted or marked as spam.
    See Formailer.php from DB Masters
    http://www.dbmasters.net/node/18
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Customer registration form won't display in testing environment.

    Hi everyone,
    I am using DWCS3 with the free version of MAMP.
    I have put a customer registration form together and have just started to add the php $mailSent code.
    In design view everything seems to be o.k the three gold shields are displayed at the top of my page.
    However when I try to view the page in my local testing environment, the page doesn't display at all I just get a white screen. I was also getting an error message suggesting my site url's weren't mapped properly, or, my server wasn't serving pages with a .php extension.
    I checked my datetest page and that is displaying today's date, I also checked my phpinfo page and that is also displaying.
    I also checked that my site url's are mapped properly, I would say they are because my other site pages e.g. index page, links page, about page ect are opening up in my testing browser.
    I have added my code for anyone to take a look at;
    the 1st block of code I added at the top of the document before the <!DOCTYPE> (suggested in The Essential Guide to Dreamweaver CS3)
    the 2nd block of code is added just after the page's main heading.
    the 3rd line of code is added to the form action in the opening form tag.
    Could someone please help, as I am stumped.
    Thankyou.
    <?php
    if (array_key_exists('send', $_POST)) {
    //mail processing script
    $to = '[email protected]';
    $subject = 'Customer Registration from HLPhotography';
    //process the $_POST variables
    $name = $_POST['name'];
    $email = $_POST['email'];
    $postcode = $_POST['postcode'];
    //build the message
    $message = "Name: $name\n\n";
    $message .= "Email: $email\n\n";
    $message .= "Postcode: $postcode";
    //limit line length to 70 characters
    $message = wordwrap($message, 70);
    //send it
    $mailSent = mail($to, $subject, $message);
    ?>
       <?php
    if ($_POST && !$mailSent) {
    ?>
        <p class="warning">Sorry there was a problem sending your message, please try later.</p>
        <?php
    elseif ($_POST && $mailSent) {
    ?>
        <p><strong>Your message has been sent thankyou for registering your details.
        </strong></p>
        <?php } ?>
    <form id="formcusrg" name="formcusrg" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?">

    Sorry, I can't help with your question, I'm not a php guru  :-)   but you may want to edit out that email address if it's a live one - it will get hit by the bots if left here too long !
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • Need to put out of Box password policy in self registration form.

    Hi All,
    I create a self registration workflow in i put a self gistration form. In the validation section of password field i apply check method of com.waveset.policy.stringQualityPolicy to apply out of box Password policy. But i got an error while running the workflow from configurator interface. i put the trace below. please help.
    <defvar name='policy'>
    </defvar> --> null
    <defvar name='policyChecker'>
    </defvar> --> null
    <invoke name='check'>
    <ref>policyChecker</ref>
    [<defvar name='policyChecker'>]
    <new class='com.waveset.policy.StringQualityPolicy'>
    </new> --> com.waveset.policy.StringQualityPolicy@af914c
    [</defvar>] --> com.waveset.policy.StringQualityPolicy@af914c --> com.wavese
    t.policy.StringQualityPolicy@af914c
    <ref>policy</ref>
    [<defvar name='policy'>]
    <invoke name='getObject'>
    <rule name='getCallerSession'>
    <Rule name='getCallerSession'>
    <block trace='true'>
    <select>
    <ref>context</ref> --> com.waveset.session.LocalSession@6c2a78
    </select> --> com.waveset.session.LocalSession@6c2a78
    </block> --> com.waveset.session.LocalSession@6c2a78
    </Rule> --> com.waveset.session.LocalSession@6c2a78
    </rule> --> com.waveset.session.LocalSession@6c2a78
    <invoke name='findType' class='com.waveset.object.Type'>
    <s>Policy</s> --> Policy
    </invoke> --> Policy
    <ref>policyName</ref> --> Password Policy
    </invoke> --> Policy:Password Policy
    [</defvar>] --> Policy:Password Policy --> Policy:Password Policy
    <ref>userPassword</ref>Resolved variables.user.userPassword to aaa
    --> aaa
    <null/> --> null
    <null/> --> null
    <ref>accountId</ref>Resolved variables.user.accountId to aaaaaaa
    --> aaaaaaaXPRESS <invoke> exception:
    com.waveset.util.WavesetException: Can't call method check on class com.waveset.
    policy.StringQualityPolicy
    ==> java.lang.NullPointerException:
    </invoke> --> null
    Thanks in advance.
    Any pointer will really be helpful.
    Edited by: Amit_Bansal on Feb 27, 2008 3:05 PM

    Hello,
    Has anyone been successful at displaying the "View PAssword Policy" on the self registration form? Or is this not possible to get done?
    Thanks
    Khanh

  • Incorrect total is being added up on registration form and submitted to PayPal as an incorrect amount

    We have an Adobe Central registration form for our event and when people total the cost and submit payment they are being billed an incorrect amount.  Pay Pal says this is an Adobe Forms issue.  Can you help?
    Thanks
    Susan

    Hi,
      Please provide the additional information that I requested via email.
    Thanks,
    Lucia

  • Flash Pro cs5.5, MySQL, login and registration form

    Hi.
    I just started to use Adobe Flash CS5.5 and i want to make my new homepage based on flash. Only problem at the moment is that i don't know how to make flash login and registration form what takes data from MySQL. I am messed with this about 3 days but without any results(form is done, but don't know how to make it communicate with MySQL).
    Sorry for my bad english.
    Can anybody please help me?
    Thanks in advance for helping.

    You should really start by some literature if you can't even draw a form. I don't mean to be cruel but otherwise you'll never learn flash. If you like the technology, start from the start like everybody else. If you'll have some questions, or will be confused about something you learned, I'll be happy to explain it to you. But don't expect people to program your app for you - this is not learning.
    You can start with adobe tv: http://tv.adobe.com/search/?q=flash&product=17&topic=0&version=10&sortby=relevancy
    Great page with tutorials: http://gotoandlearn.com/
    More tutorials: http://active.tutsplus.com/category/tutorials/
    Or you can find professional tutoring videos at www.lynda.com (but they are not free)

  • Registration form won't work on a Mac - Designed on PC

    Using LC CS5, built a registration form (windows machine) and they work great except for those using a mac. they can't submit by clicking on "submit by email" it does nothing, and when they just attach the form it comes in blank on my end unless I click in the fields then I can see their information, but as soon as i tab to  the next field it disappears again. I thought the fomrs were coming in blank at first. I cannot get them to to automatically go to the response file either.
    Any help would be much appreciated, I really need these forms to work for both platforms, What do I need to do or what do they need to do to get the form to   work
    Thank you
    C

    My guess is that you are not using ADobe Reader to read the forms on the Mac but you are using the PDF viewer that ships with the Mac. That product has trouble reading XFA forms .....so make sure you use Adobe viewers and your forms will be filled properly. Regarding the email issue ... depending on how you setup your email button will determine whther this will work on a Mac or not. If you submit to a mailto:email address URL then it shoudl work. If you use other methods then that relys on a windows API called Mapi to inetract with a mail client. This technique will obviously not work on a Mac. Make sure you are using the mailto technique....all though I do not have a Mac to test with and verify.
    Paul

  • Registration form appears every time I open,

    I re-intalled and reregistered my Photoshop CS2 according to instructions but the registration screen appears every time I open.  How do I stop it

    Hi,I need help
    My question was answered with another question which I answered in the affirmative. then the forum  showed that my problem was solved, not so. I deactivated and re activated my licensed cs2 as directed and the registration form re appears every time I open.
    Adobe directed me to the forum for a solution to my problem because they no longer support cs2. ????
    Thanks for hearing my problem
    Chuck Kane

  • Custom registration form

    Hi,
    Can anyone please help me with the following?
    I need to build a class registration form for my client.
    Classes broken-down on: private sessions and group sessions, so 2 different prices for each class.
    Group pricing starts at 3 people and more but up to 15 people per class.
    There is a discount for the person who brings his/her own board to the class. So let’s say there is a group of 3 people and 2 of them have a board then there is a $5.00 discount for each board, in this case equals $10.00 off.
    What is the best way to create such form?
    I saw http://css-tricks.com/examples/DynamicOrderForm as a possible solution, a great start but it doesn't have everything that I need. Also http://dabrook.org/examples/cdia/javascript/05/form.html had some help but if anyone has a more complete approaches for a jquery newbie would be greatly appreciated.
    Also, how to tie this custom registration form to the BC platform.
    Thank you.
    Lana

    Thank you,
    using this method would the Capacity: ...(....% booked) change accordingly. Let's say someone booked 7 seats and the total available is 14 would it show for the next person 50% booked?
    Thanks,
    Lana

Maybe you are looking for