Jump to content

Dreamweaver 8.0, Checkboxes...and some.


Recommended Posts

I have several checkboxes that don't seem to do anything (but need to), now as the username states, I basically took an old nooblet beginner book and went to town.  I have this (see link below) so far, and all works well, except the check boxes. 

 

Note:  All checkboxes "could" be checked, or left blank, it is possible that the user may choose not to check them, which is ok.

 

I have attached the PHP file, and it is accessible here --> http://eparisek.com/training/form/ 

 

Also...

1.  Id rather have the YES/NO drop down menu be 2 radio buttons...

2.  If NO, then anything after "Real estate Broker/Agent Registration" should not be visible on the form, or print.

3.  Is it possible to generate a PDF on Submit, or email the date to the email address in the form (with a "Send a copy to email provided" checkbox) - which is not currently on the form.

 

Finally, I apologize if I left anything out, please ask.  This is for a mysql db.

Thanks a million for your help.

Nooblet

 

 

 

<---BEGIN PHP FILE--->

<html>

<style type="text/css">

<!--

.style2 {font-size: 14px}

.style4 {

color: #990000;

font-weight: bold;

}

.style5 {font-size: 14}

.style8 {font-size: 16px}

.style9 {font-size: 24px}

.style12 {font-size: 11px}

.style13 {font-size: 14px; font-weight: bold; }

-->

</style>

<script language='javascript'>

function FormatPhone(F)

{

var PH = F.value;

PH = PH.replace("(","");

PH = PH.replace(")","");

PH = PH.replace("-","");

PH = PH.replace(" ","");

 

      if(PH.length < 3)

      {

            F.value = "(" + PH;

      }

      if(PH.length > 3 && PH.length <= 6)

      {

            F.value = "(" + PH.substring(0,3) + ") " + PH.substring(3,6);

      }

      if(PH.length > 6)

      {

            F.value = "(" + PH.substring(0,3) + ") " + PH.substring(3,6) + "-" + PH.substring(6,10);

      }

}

 

</script>

<title>Positano Place Guest Registration Form</title><body bgcolor="#FFCC33" leftmargin="2" title="Positano Place Registration"

<form action="insert.php" method="post" target="_blank">

  <table width="607" border="0">

    <tr>

      <th width="332" scope="col"><div align="left" class="style9">Client Information</div></th>

      <th width="259" scope="col"><div align="right" class="style8">Date: <? print(Date("l, F d, Y")); ?></div></th>

    </tr>

  </table>

  <table width="607" border="0" bordercolordark="#000000">

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2">First Name:</div></td>

    <td width="410" height="0"><span class="style2">

      <input name="fname" type="text" value="<?php echo ucfirst($row_Recordset1['fname']); ?>" />

      Last Name:

      <input name="lname" type="text" value="<?php echo ucfirst($row_Recordset1['lname']); ?>" />

      </span></td>

    </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2">Address:</div></td>

    <td height="0"><input name="address" type="text" value="<?php echo ucfirst($row_Recordset1['address']); ?>" /></td>

    </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2">City: </div></td>

    <td height="0"><span class="style2">   

 

      <input name="city" type="text" value="<?php echo $row_Recordset1['city']; ?>" />

      State:

        <input name="state" type="text" value="<?php echo ucwords($row_Recordset1['state']); ?>" size="2" maxlength="2" />

        Postal Code:

        <input name="postal" type="text" value="<?php echo $row_Recordset1['postal']; ?>" size="5" />

    </span></td>

    </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2">Country:</div></td>

    <td height="0"><input name="country" type="text" value="<?php echo $row_Recordset1['country']; ?>" /></td>

    </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2">Home:</div></td>

    <td height="0"><span class="style2">

      <input name="home" type="text"  onkeyup='FormatPhone(home);'>

     

      Business:

      <input name="business" type="text" onkeyup='FormatPhone(business);'>

      </span></td>

    </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2">Cellular:</div></td>

    <td height="0"><span class="style2">

      <input name="cellular" type="" onkeyup='FormatPhone(cellular);'>

      E-mail:

      <input name="email" type="" value="<?php echo $row_Recordset1['email']; ?>" />

      </span></td>

    </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2"><strong>Condo Size:</strong></div></td>

    <td height="0" valign="middle"><span class="style2">

      <select name="condo_size" size="<?php echo $row_Recordset1['condo_size']; ?>" multiple>

        <option value="0" selected>No Preference</option>

        <option value="1">1 BR / 1 Bath</option>

        <option value="2">2 BR / 2 Bath</option>

        <option>3 BR / 2 Bath</option>

      </select>

      </label>

      <strong>Preferred Floor:

      <select name="pref_floor" size="<?php echo $row_Recordset1['pref_floor']; ?>" multiple>

        <option value="0" selected>No Preference</option>

        <option value="1">1st</option>

        <option value="2">2nd</option>

        <option value="3">3rd</option>

      </select>

      </strong></span></td>

    </tr>

  <tr>

    <td height="0" colspan="2" valign="middle"><div align="right" class="style2"><strong>Preferred View:</strong></div></td>

    <td height="0"><span class="style2">

      <select name="pref_view" size="<?php echo $row_Recordset1['pref_view']; ?>">

        <br>

        <option value="0" selected>No Preference</option>

        <option value="1">Lake view</option>

        <option value="2">Preserve view</option>

        <option value="3">Street/Landscape view</option>

      </select>

    </span> </td>

    </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2"><strong>Anticipated Purchase Date </strong></div></td>

    <td height="0"><span class="style2">

      <select name="antic_purch" size="<?php echo $row_Recordset1['antic_purch']; ?>">

        <br>

        <option value="0" selected>No Preference</option>

        <option value="1">Immediately</option>

        <option value="2">Within 1 to 2 months</option>

        <option value="3">Within 3 to 6 months</option>

      </select>

    </span></td>

    </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2"><strong>Reason for purchase:</strong></div></td>

    <td height="0"><span class="style2">

      <select name="reas_purch" size="<?php echo $row_Recordset1['reas_purch']; ?>">

        <br>

        <option value="0" selected>No Preference</option>

        <option value="1">Primary Residence</option>

        <option value="2">Secondary/Vacation home</option>

        <option value="3">Rental revenue</option>

      </select>

    </span></td>

  </tr>

  <tr>

    <td height="0" colspan="2"><div align="right" class="style2"><strong>Financing:</strong></div></td>

    <td height="0"><span class="style5"><span class="style2"><strong><strong>

      <select name="_finance" size="<?php echo $row_Recordset1['reas_purch']; ?>">

        <br>

        <option value="0">No Preference</option>

        <option value="1">Cash</option>

        <option value="2">Mortgage</option>

        <option value="3">Pre-approved</option>

      </select>

      </strong>      </strong></span></span></td>

  </tr>

  <tr>

    <td height="0" colspan="3"><div align="left" class="style2">

      <hr>

      <strong>      I discovered this community through the following resources:</strong></div></td>

    </tr>

  <tr>

    <td height="0" colspan="3"><span class="style2">

      <label>

        <input type="checkbox" name="d_sign_sign" value="d_sign_sign">

        Sign/Drive by</label>

        <label><input type="checkbox" name="d_sign_web" value="d_sign_web">

        </label>

        Website at www.positanoplace.com

        <label><input type="checkbox" name="d_sign_net" value="d_sign_net">

Internet<br>

        </label>

 

        <label><input type="checkbox" name="d_sign_adv" value="d_sign_adv">

        Newspaper/Magazine/TV-Radio</label>

 

  <label><input type="checkbox" name="d_sign_eml" value="d_sign_eml">

        E-mail notification </label>

        <br>

        <label><input type="checkbox" name="d_sign_fly" value="d_sign_fly">

        Flyer/Brochure</label>

  <label><input type="checkbox" name="d_sign_wom" value="d_sign_wom">

        Word-of-mouth</label>

  <label><input type="checkbox" name="d_sign_rea" value="d_sign_rea">

        Real Estate Agent</label>

  <label><input type="checkbox" name="d_sign_oth" value="d_sign_oth">

        Other</label>

  <input name="d_sign_other" type="text" value="<?php echo $row_Recordset1['d_sign_other']; ?>" />

    </span></td>

  </tr>

  <tr>

    <td height="0" colspan="3"><hr>      <span class="style2"><strong>      Most Important Feature(s):</strong> </span></td>

  </tr>

  <tr>

    <td height="0" colspan="3"><span class="style2">

      <label>

        <input type="checkbox" name="f_location" value="No">

        </label>

        Location

        <label><input type="checkbox" name="f_price" value="yea">

        </label>

        Price 

        <label><input type="checkbox" name="f_amenities" value="yup">

        </label>

        Amenities 

        <label><input type="checkbox" name="f_design" value="yes">

        </label>

        Design 

        <label><input type="checkbox" name="f_schools" value="f_schools"> </label>

        Schools 

        <label><input type="checkbox" name="f_other" value="f_other"> </label>

        Other 

        <input name="f_other_desc" type="text" value="<?php echo $row_Recordset1['f_other_desc']; ?>" />

       

    </span></td>

  </tr>

  <tr>

    <td height="0" colspan="3"><span class="style2">Are you a party to an exclusive agreement with a Florida real eastate licensee?     

        <label><strong><strong>

        <select name="f_agree" size="<?php echo $row_Recordset1['f_agree']; ?>">

          <br>

          <option value="1">Yes</option>

          <option value="0">No</option>

        </select>

        </strong></strong></label>

    </span></td>

  </tr>

  <tr>

    <td height="0" colspan="3"><span class="style2">If yes, please have agent complete the Agent Registration section below or attach his/her business card. </span>

      <hr></td>

  </tr>

  <tr>

    <td height="0" border="1" colspan="3" bordercolor="#000000" bgcolor="#FFFFFF"><div align="center" class="style13">Real estate Broker/Agent Registration</div></td>

  </tr>

  <tr>

    <td height="0" bordercolor="#000000"><span class="style2">

      <label>

        <input type="checkbox" name="<?php echo $row_Recordset1['agt_co_broke']; ?>" value="checkbox">

        Co-broke comission: 3% </label>

    </span></td>

    <td height="0" colspan="2" bordercolor="#000000"><span class="style2">

      <label>

      <input type="checkbox" name="<?php echo $row_Recordset1['agt_referral']; ?>" value="checkbox">

      Referral fee (Out-of-State Agents): 1% of purchase price</label>

    </span></td>

    </tr>

  <tr>

    <td width="186" height="0" bordercolor="#000000"><span class="style2">Broker (firm)<br>

        <label>

        <input type="text" name="<?php echo $row_Recordset1['agt_broker']; ?>">

        </label>

    </span></td>

    <td height="0" colspan="2" bordercolor="#000000"><span class="style2">Address<br>

        <input type="text" name="<?php echo $row_Recordset1['address']; ?>">

    </span></td>

    </tr>

  <tr>

    <td height="0" colspan="2" bordercolor="#000000"><span class="style2">      Agent Name<br>

        <input type="text" name="<?php echo $row_Recordset1['agt_name']; ?>">

    </span></td>

    <td height="0" bordercolor="#000000"><span class="style2">Office phone<br>

        <input type="text" name="<?php echo $row_Recordset1['agt_office']; ?>">

    </span></td>

  </tr>

  <tr>

    <td height="0" bordercolor="#000000"><span class="style2">FL RE Lic. #

        <br>

        <input type="text" name="<?php echo $row_Recordset1['agt_out_lic']; ?>">

    </span></td>

    <td height="0" colspan="2" bordercolor="#000000"><span class="style2">Out-of-state RE Lic.# <br>

        <input type="text" name="<?php echo $row_Recordset1['agt_out_lic']; ?>">

    </span></td>

    </tr>

  <tr>

    <td height="0" colspan="3" bordercolor="#000000"><span class="style12"><u>Florida Real Estate Agents:</u> If you cannot accompany your buyer on the frst visit, please complete both the buyer and co-operating broker information (see insert box) to register your buyer prior to their first visit to protect your co-broke commission for 180 days from the earlier of the date the guest registration is received or the buyyer's first visit. <br>

      <br>

      <u>Out-of-State Real Estate Agents:</u> please complete both the buyer and referring broker information (see insert box) abnd submit prior to the referred buyer's first visit. Your referral fee will be protected for 180 days from the earlier of the date guest registration is received or the referred buyer's first visit. </span></td>

    </tr>

</table>

<input type="submit" />

<span class="style4">Print page before submitting to retain a copy.</span>

</form>

</body>

</html>

<---END PHP FILE--->

Link to comment
Share on other sites

  • 3 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.