PHP: Copy Uploaded File URL Into field

  • Amsinger
  • Born
  • Born
  • Amsinger
  • Posts: 2

Post 3+ Months Ago

Hi All, I am creating through FileMaker Pro Advanced an online questionnaire that when it submits it automatically inserts the information into a new record in a database. The last part of the questionnaire is the option to upload 2 photos which are saved onto my server into a designated folder. I also have script setup to email me the information that is submitted. However, I am trying to setup some additional coding to capture the url of each image uploaded and insert the url into a field so when the submitted form is emailed to me it will have the links to the image uploaded. Currently those fields that I want to have the url go into are container fields. I am not sure if this is correct or if they need to be text fields. However, I need help writing the code to grab the url of each image uploaded and paste the url into a specified field. I was able to setup on the confirmation page (the page the user will see once they hit submit) that provides to them 2 urls of the images they uploaded so I just want the same exact thing except I want it to show the actual url so I know the file name. I have provided my code below for my add record.php which is the questionnaire they fill out. Then the code for my confirmation.php which performs the tasks of uploading the images, submitting the data to my database into a new record, and then emails me the information submitted and then will show them a confirmation page displaying all their answers to the questions and lastly links to the images they uploaded. Any help with this would be great as I am totally new to PHP and some how has been able to get this much put together and this is the last bit I need to complete this project.

addrecord.php Code:
Code: [ Select ]
<?php

  /**
  * FileMaker PHP Site Assistant Generated File
  */

  require_once 'fmview.php';
  require_once 'FileMaker.php';
  require_once 'error.php';

  $cgi = new CGI();
  $cgi->storeFile();
  
  $databaseName = 'questionnaire';
  $layoutName = 'Questionnaire5';

  $userName = $cgi->get('userName');
  $passWord = $cgi->get('passWord');

  $fm = & new FileMaker();
  $fm->setProperty('database', $databaseName);
  $fm->setProperty('username', $userName);
  $fm->setProperty('password', $passWord);
  
  ExitOnError($fm);
  $layout = $fm->getLayout($layoutName);
  ExitOnError($layout);

  // formats for dates and times
  $displayDateFormat = '%m/%d/%Y';
  $displayTimeFormat = '%I:%M:%S %P';
  $displayDateTimeFormat = '%m/%d/%Y %I:%M:%S %P';
  $submitDateOrder = 'mdy';
  
  $file1 = 'file';
  $file2 = 'file2';

  class EmptyRecord {
    function getRelatedSet($relationName) {
      return array(new EmptyRecord());
    }

    function getField($field, $repetition = 0) {
    }

    function getRecordId() {
    }
  }

  $record = new EmptyRecord();
?>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>
      New Client Registration Form
    </title>
    <link rel="stylesheet" type="text/css" media="screen" href="white.css">
  </head>
  <body>
    <div id="header">
      <!-- HEADER -->
      <div id="headerlogo">
        Samantha's Table Matchmaking
        <div id="headercaption">
          <!--Caption for the Company-->
        </div>
      </div>
    </div>
    <div id="content">
      <!--Navigation Menu-->
      <?php include_once 'navigation.php'; ?><!-- Page Body -->
      <table cellpadding="0" cellspacing="0" class="contentbg">
        <tr>
          <td class="contentbgleft">
          </td>
          <td class="contentmidrecords">
            <div id="contenttitlebg">
              <h1>
                New Client Registration Form
              </h1>
            </div>
            <table class="curvedbg">
              <tr>
                <td>
                </td>
              </tr>
            </table>
            <div class="scrolladd">
              <table cellpadding="1" cellspacing="0" class="recwidth">
                <tr>
                  <td valign="top">
                    <form method="post" action="confirmation.php" enctype="multipart/form-data">
                      <div>
                        <?php $dbName = "questionnaire";?><?php $layName = "Questionnaire5";?><input type="hidden" name="-db" value=
                        "<?php echo htmlentities($dbName,ENT_NOQUOTES,'UTF-8',false);?>"> <input type="hidden" name="-lay" value=
                        "<?php echo htmlentities($layName,ENT_NOQUOTES,'UTF-8',false);?>"> <input type="hidden" name="-action" value="new">
                      </div>
                      <table cellpadding="1" cellspacing="3" class="record">
                        <!-- Display record field values -->
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('First Name:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class"field">
                          <td class="field_data">
                            <?php $fieldName = 'NameFirst'?><?php $fieldValue =     $record->getField('NameFirst', 0) ; ?><input class=
                            "fieldinput" type="text" size="60" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
                            value="<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Last Name:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'NameLast';?><?php $fieldValue =     $record->getField('NameLast', 0) ; ?><input class="fieldinput"
                            type="text" size="60" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
                            "<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Email:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Email';?><?php $fieldValue =     $record->getField('Email', 0) ; ?><input class="fieldinput" type=
                            "text" size="60" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
                            "<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Phone Number:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Phone 1';?><?php $fieldValue =     $record->getField('Phone 1', 0) ; ?><input class=
                            "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
                            value="<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Age:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Age';?><?php $fieldValue =     $record->getField('Age', 0) ; ?><input class="fieldinput" type=
                            "text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
                            "<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where you are from originally?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'OriginallyFrom';?><?php $fieldValue =     $record->getField('OriginallyFrom', 0) ; ?><input class=
                            "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
                            value="<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where do you live currently?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'CurrentlyLive';?><?php $fieldValue =     $record->getField('CurrentlyLive', 0) ; ?><input class=
                            "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
                            value="<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('College/grad school attended?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'SpecificEducation';?><?php $fieldValue =     $record->getField('SpecificEducation', 0) ; ?><input class="fieldinput"
                            type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
                            "<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Occupation?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Occupation';?><?php $fieldValue =     $record->getField('Occupation', 0) ; ?><input class=
                            "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
                            value="<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where do you work?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Work';?><?php $fieldValue =     $record->getField('Work', 0) ; ?><input class="fieldinput" type=
                            "text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
                            "<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('What is your income level?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'IncomeLevel';?><?php $fieldValue =     $record->getField('IncomeLevel', 0) ; ?><select class=
                            "fieldinput" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'POPUPLIST', 'text');?>">
                              <?php $menuOptions = getMenu($layout->getValueListTwoFields('IncomeLevel', (isset($master_record)) ? $master_record->getRecordId() : $record->getRecordId()), $fieldValue, $fieldName, 'text', $submitDateOrder);
                                       if ($fieldValue == "") {
                                        $selected = "selected";
                                       } else {
                                        $selected = "";
                                       }
                                       $selected = "selected";
                                       $menuOptions .= "<option value='' $selected></option>";
                                       echo $menuOptions;?>
                            </select>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Service',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Service';?><?php $fieldValue =     $record->getField('Service', 0) ; ?><select
                            class="fieldinput" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'POPUPLIST', 'text');?>">
                              <?php $menuOptions = getMenu($layout->getValueListTwoFields('Service Options', (isset($master_record)) ? $master_record->getRecordId() : $record->getRecordId()), $fieldValue, $fieldName, 'text', $submitDateOrder);
                                       if ($fieldValue == "") {
                                        $selected = "selected";
                                       } else {
                                        $selected = "";
                                       }
                                       $selected = "selected";
                                       $menuOptions .= "<option value='' $selected></option>";
                                       echo $menuOptions;?>
                            </select>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Have you tried online dating and/or used other matchmakers (which ones)?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'OtherMatchmakingServices';?><?php $fieldValue =     $record->getField('OtherMatchmakingServices', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('What are your hobbies?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Hobbies';?><?php $fieldValue =     $record->getField('Hobbies', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Do you have pets? If so, describe:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Pets';?><?php $fieldValue =     $record->getField('Pets', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('How you heard about the service? (specifically)',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Referral';?><?php $fieldValue =     $record->getField('Referral', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('What is your marital status?',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'MaritalStatus';?><?php $fieldValue =     $record->getField('MaritalStatus', 0) ; ?><input class=
                            "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
                            value="<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Children: (do you want them, do you have them, will you date someone who has them and does not want more)',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'KidStatus';?><?php $fieldValue =     $record->getField('KidStatus', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Religion:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'Religion';?><?php $fieldValue =     $record->getField('Religion', 0) ; ?><input class="fieldinput"
                            type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
                            "<?php echo $fieldValue;?>">
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Your Height/Weight/Look:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'YourLookDescrip';?><?php $fieldValue =     $record->getField('YourLookDescrip', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Age/Type of person you want to meet:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'DateType';?><?php $fieldValue =     $record->getField('DateType', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Other comments:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_data">
                            <?php $fieldName = 'MICS';?><?php $fieldValue =     $record->getField('MICS', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Upload Image 1:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                          </tr>
                        <tr class="field">
                          <td class="field_data img">
                            <input type="file" name="file" id="file" />
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('Upload Image 2:',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                          </tr>
                        <tr class="field">
                          <td class="field_data img">
                            <input type="file" name="file2" id="file2" />
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('REGISTRATION WILL ONLY BE COMPLETE ONCE WE RECEIVE YOUR PHOTOS. Unfortunately, we will only be able to respond to your inquiry after you have uploaded your photos.',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                          </tr>
                            <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('You should expect to hear a reply from us within 7 to 10 days from when you submit your form.',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <tr class="field">
                          <td class="field_name">
                            <?php echo str_replace(' ', '&nbsp; ',htmlentities('*Network membership is subject to verification of the information provided, determination of the suitability of the service for the applicant and a face-to-face interview.',ENT_NOQUOTES,'UTF-8',false));?>
                          </td>
                        </tr>
                        <!--Display record form controls-->
                        <tr class="field">
                          <td class="field_name">
                            &nbsp;
                          </td>
                          <td class="field_data">
                            <input type="submit" class="buttons" name="-new" value="Submit"> <input type="reset" class="buttons" name="Reset"
                            value="Reset"> <input type="button" class="buttons" onclick="window.location='home.php'" name="Cancel" value="Cancel">
                          </td>
                        </tr>
                      </table>
                    </form>
                  </td>
                </tr>
              </table>
            </div>
          </td>
          <td class="contentbgright">
            &nbsp;
          </td>
        </tr>
        <tr>
          <td class="contentbgfooterleft">
            &nbsp;
          </td>
          <td class="contentfooter">
            &nbsp;
          </td>
          <td class="contentbgfotterright">
            &nbsp;
          </td>
        </tr>
      </table>
    </div>
    <!-- Footer -->
    <table class="footerwidth" cellspacing="0" cellpadding="0">
      <tr>
        <td>
          <?php include_once 'footer.php' ?>
        </td>
      </tr>
    </table>
  </body>
</html>
  1. <?php
  2.   /**
  3.   * FileMaker PHP Site Assistant Generated File
  4.   */
  5.   require_once 'fmview.php';
  6.   require_once 'FileMaker.php';
  7.   require_once 'error.php';
  8.   $cgi = new CGI();
  9.   $cgi->storeFile();
  10.   
  11.   $databaseName = 'questionnaire';
  12.   $layoutName = 'Questionnaire5';
  13.   $userName = $cgi->get('userName');
  14.   $passWord = $cgi->get('passWord');
  15.   $fm = & new FileMaker();
  16.   $fm->setProperty('database', $databaseName);
  17.   $fm->setProperty('username', $userName);
  18.   $fm->setProperty('password', $passWord);
  19.   
  20.   ExitOnError($fm);
  21.   $layout = $fm->getLayout($layoutName);
  22.   ExitOnError($layout);
  23.   // formats for dates and times
  24.   $displayDateFormat = '%m/%d/%Y';
  25.   $displayTimeFormat = '%I:%M:%S %P';
  26.   $displayDateTimeFormat = '%m/%d/%Y %I:%M:%S %P';
  27.   $submitDateOrder = 'mdy';
  28.   
  29.   $file1 = 'file';
  30.   $file2 = 'file2';
  31.   class EmptyRecord {
  32.     function getRelatedSet($relationName) {
  33.       return array(new EmptyRecord());
  34.     }
  35.     function getField($field, $repetition = 0) {
  36.     }
  37.     function getRecordId() {
  38.     }
  39.   }
  40.   $record = new EmptyRecord();
  41. ?>
  42. <html>
  43.   <head>
  44.     <meta http-equiv="content-type" content="text/html; charset=utf-8">
  45.     <title>
  46.       New Client Registration Form
  47.     </title>
  48.     <link rel="stylesheet" type="text/css" media="screen" href="white.css">
  49.   </head>
  50.   <body>
  51.     <div id="header">
  52.       <!-- HEADER -->
  53.       <div id="headerlogo">
  54.         Samantha's Table Matchmaking
  55.         <div id="headercaption">
  56.           <!--Caption for the Company-->
  57.         </div>
  58.       </div>
  59.     </div>
  60.     <div id="content">
  61.       <!--Navigation Menu-->
  62.       <?php include_once 'navigation.php'; ?><!-- Page Body -->
  63.       <table cellpadding="0" cellspacing="0" class="contentbg">
  64.         <tr>
  65.           <td class="contentbgleft">
  66.           </td>
  67.           <td class="contentmidrecords">
  68.             <div id="contenttitlebg">
  69.               <h1>
  70.                 New Client Registration Form
  71.               </h1>
  72.             </div>
  73.             <table class="curvedbg">
  74.               <tr>
  75.                 <td>
  76.                 </td>
  77.               </tr>
  78.             </table>
  79.             <div class="scrolladd">
  80.               <table cellpadding="1" cellspacing="0" class="recwidth">
  81.                 <tr>
  82.                   <td valign="top">
  83.                     <form method="post" action="confirmation.php" enctype="multipart/form-data">
  84.                       <div>
  85.                         <?php $dbName = "questionnaire";?><?php $layName = "Questionnaire5";?><input type="hidden" name="-db" value=
  86.                         "<?php echo htmlentities($dbName,ENT_NOQUOTES,'UTF-8',false);?>"> <input type="hidden" name="-lay" value=
  87.                         "<?php echo htmlentities($layName,ENT_NOQUOTES,'UTF-8',false);?>"> <input type="hidden" name="-action" value="new">
  88.                       </div>
  89.                       <table cellpadding="1" cellspacing="3" class="record">
  90.                         <!-- Display record field values -->
  91.                         <tr class="field">
  92.                           <td class="field_name">
  93.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('First Name:',ENT_NOQUOTES,'UTF-8',false));?>
  94.                           </td>
  95.                         </tr>
  96.                         <tr class"field">
  97.                           <td class="field_data">
  98.                             <?php $fieldName = 'NameFirst'?><?php $fieldValue =     $record->getField('NameFirst', 0) ; ?><input class=
  99.                             "fieldinput" type="text" size="60" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
  100.                             value="<?php echo $fieldValue;?>">
  101.                           </td>
  102.                         </tr>
  103.                         <tr class="field">
  104.                           <td class="field_name">
  105.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Last Name:',ENT_NOQUOTES,'UTF-8',false));?>
  106.                           </td>
  107.                         </tr>
  108.                         <tr class="field">
  109.                           <td class="field_data">
  110.                             <?php $fieldName = 'NameLast';?><?php $fieldValue =     $record->getField('NameLast', 0) ; ?><input class="fieldinput"
  111.                             type="text" size="60" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
  112.                             "<?php echo $fieldValue;?>">
  113.                           </td>
  114.                         </tr>
  115.                         <tr class="field">
  116.                           <td class="field_name">
  117.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Email:',ENT_NOQUOTES,'UTF-8',false));?>
  118.                           </td>
  119.                         </tr>
  120.                         <tr class="field">
  121.                           <td class="field_data">
  122.                             <?php $fieldName = 'Email';?><?php $fieldValue =     $record->getField('Email', 0) ; ?><input class="fieldinput" type=
  123.                             "text" size="60" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
  124.                             "<?php echo $fieldValue;?>">
  125.                           </td>
  126.                         </tr>
  127.                         <tr class="field">
  128.                           <td class="field_name">
  129.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Phone Number:',ENT_NOQUOTES,'UTF-8',false));?>
  130.                           </td>
  131.                         </tr>
  132.                         <tr class="field">
  133.                           <td class="field_data">
  134.                             <?php $fieldName = 'Phone 1';?><?php $fieldValue =     $record->getField('Phone 1', 0) ; ?><input class=
  135.                             "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
  136.                             value="<?php echo $fieldValue;?>">
  137.                           </td>
  138.                         </tr>
  139.                         <tr class="field">
  140.                           <td class="field_name">
  141.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Age:',ENT_NOQUOTES,'UTF-8',false));?>
  142.                           </td>
  143.                         </tr>
  144.                         <tr class="field">
  145.                           <td class="field_data">
  146.                             <?php $fieldName = 'Age';?><?php $fieldValue =     $record->getField('Age', 0) ; ?><input class="fieldinput" type=
  147.                             "text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
  148.                             "<?php echo $fieldValue;?>">
  149.                           </td>
  150.                         </tr>
  151.                         <tr class="field">
  152.                           <td class="field_name">
  153.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where you are from originally?',ENT_NOQUOTES,'UTF-8',false));?>
  154.                           </td>
  155.                         </tr>
  156.                         <tr class="field">
  157.                           <td class="field_data">
  158.                             <?php $fieldName = 'OriginallyFrom';?><?php $fieldValue =     $record->getField('OriginallyFrom', 0) ; ?><input class=
  159.                             "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
  160.                             value="<?php echo $fieldValue;?>">
  161.                           </td>
  162.                         </tr>
  163.                         <tr class="field">
  164.                           <td class="field_name">
  165.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where do you live currently?',ENT_NOQUOTES,'UTF-8',false));?>
  166.                           </td>
  167.                         </tr>
  168.                         <tr class="field">
  169.                           <td class="field_data">
  170.                             <?php $fieldName = 'CurrentlyLive';?><?php $fieldValue =     $record->getField('CurrentlyLive', 0) ; ?><input class=
  171.                             "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
  172.                             value="<?php echo $fieldValue;?>">
  173.                           </td>
  174.                         </tr>
  175.                         <tr class="field">
  176.                           <td class="field_name">
  177.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('College/grad school attended?',ENT_NOQUOTES,'UTF-8',false));?>
  178.                           </td>
  179.                         </tr>
  180.                         <tr class="field">
  181.                           <td class="field_data">
  182.                             <?php $fieldName = 'SpecificEducation';?><?php $fieldValue =     $record->getField('SpecificEducation', 0) ; ?><input class="fieldinput"
  183.                             type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
  184.                             "<?php echo $fieldValue;?>">
  185.                           </td>
  186.                         </tr>
  187.                         <tr class="field">
  188.                           <td class="field_name">
  189.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Occupation?',ENT_NOQUOTES,'UTF-8',false));?>
  190.                           </td>
  191.                         </tr>
  192.                         <tr class="field">
  193.                           <td class="field_data">
  194.                             <?php $fieldName = 'Occupation';?><?php $fieldValue =     $record->getField('Occupation', 0) ; ?><input class=
  195.                             "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
  196.                             value="<?php echo $fieldValue;?>">
  197.                           </td>
  198.                         </tr>
  199.                         <tr class="field">
  200.                           <td class="field_name">
  201.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where do you work?',ENT_NOQUOTES,'UTF-8',false));?>
  202.                           </td>
  203.                         </tr>
  204.                         <tr class="field">
  205.                           <td class="field_data">
  206.                             <?php $fieldName = 'Work';?><?php $fieldValue =     $record->getField('Work', 0) ; ?><input class="fieldinput" type=
  207.                             "text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
  208.                             "<?php echo $fieldValue;?>">
  209.                           </td>
  210.                         </tr>
  211.                         <tr class="field">
  212.                           <td class="field_name">
  213.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('What is your income level?',ENT_NOQUOTES,'UTF-8',false));?>
  214.                           </td>
  215.                         </tr>
  216.                         <tr class="field">
  217.                           <td class="field_data">
  218.                             <?php $fieldName = 'IncomeLevel';?><?php $fieldValue =     $record->getField('IncomeLevel', 0) ; ?><select class=
  219.                             "fieldinput" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'POPUPLIST', 'text');?>">
  220.                               <?php $menuOptions = getMenu($layout->getValueListTwoFields('IncomeLevel', (isset($master_record)) ? $master_record->getRecordId() : $record->getRecordId()), $fieldValue, $fieldName, 'text', $submitDateOrder);
  221.                                        if ($fieldValue == "") {
  222.                                         $selected = "selected";
  223.                                        } else {
  224.                                         $selected = "";
  225.                                        }
  226.                                        $selected = "selected";
  227.                                        $menuOptions .= "<option value='' $selected></option>";
  228.                                        echo $menuOptions;?>
  229.                             </select>
  230.                           </td>
  231.                         </tr>
  232.                         <tr class="field">
  233.                           <td class="field_name">
  234.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Service',ENT_NOQUOTES,'UTF-8',false));?>
  235.                           </td>
  236.                         </tr>
  237.                         <tr class="field">
  238.                           <td class="field_data">
  239.                             <?php $fieldName = 'Service';?><?php $fieldValue =     $record->getField('Service', 0) ; ?><select
  240.                             class="fieldinput" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'POPUPLIST', 'text');?>">
  241.                               <?php $menuOptions = getMenu($layout->getValueListTwoFields('Service Options', (isset($master_record)) ? $master_record->getRecordId() : $record->getRecordId()), $fieldValue, $fieldName, 'text', $submitDateOrder);
  242.                                        if ($fieldValue == "") {
  243.                                         $selected = "selected";
  244.                                        } else {
  245.                                         $selected = "";
  246.                                        }
  247.                                        $selected = "selected";
  248.                                        $menuOptions .= "<option value='' $selected></option>";
  249.                                        echo $menuOptions;?>
  250.                             </select>
  251.                           </td>
  252.                         </tr>
  253.                         <tr class="field">
  254.                           <td class="field_name">
  255.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Have you tried online dating and/or used other matchmakers (which ones)?',ENT_NOQUOTES,'UTF-8',false));?>
  256.                           </td>
  257.                         </tr>
  258.                         <tr class="field">
  259.                           <td class="field_data">
  260.                             <?php $fieldName = 'OtherMatchmakingServices';?><?php $fieldValue =     $record->getField('OtherMatchmakingServices', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
  261.                           </td>
  262.                         </tr>
  263.                         <tr class="field">
  264.                           <td class="field_name">
  265.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('What are your hobbies?',ENT_NOQUOTES,'UTF-8',false));?>
  266.                           </td>
  267.                         </tr>
  268.                         <tr class="field">
  269.                           <td class="field_data">
  270.                             <?php $fieldName = 'Hobbies';?><?php $fieldValue =     $record->getField('Hobbies', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
  271.                           </td>
  272.                         </tr>
  273.                         <tr class="field">
  274.                           <td class="field_name">
  275.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Do you have pets? If so, describe:',ENT_NOQUOTES,'UTF-8',false));?>
  276.                           </td>
  277.                         </tr>
  278.                         <tr class="field">
  279.                           <td class="field_data">
  280.                             <?php $fieldName = 'Pets';?><?php $fieldValue =     $record->getField('Pets', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
  281.                           </td>
  282.                         </tr>
  283.                         <tr class="field">
  284.                           <td class="field_name">
  285.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('How you heard about the service? (specifically)',ENT_NOQUOTES,'UTF-8',false));?>
  286.                           </td>
  287.                         </tr>
  288.                         <tr class="field">
  289.                           <td class="field_data">
  290.                             <?php $fieldName = 'Referral';?><?php $fieldValue =     $record->getField('Referral', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
  291.                           </td>
  292.                         </tr>
  293.                         <tr class="field">
  294.                           <td class="field_name">
  295.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('What is your marital status?',ENT_NOQUOTES,'UTF-8',false));?>
  296.                           </td>
  297.                         </tr>
  298.                         <tr class="field">
  299.                           <td class="field_data">
  300.                             <?php $fieldName = 'MaritalStatus';?><?php $fieldValue =     $record->getField('MaritalStatus', 0) ; ?><input class=
  301.                             "fieldinput" type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>"
  302.                             value="<?php echo $fieldValue;?>">
  303.                           </td>
  304.                         </tr>
  305.                         <tr class="field">
  306.                           <td class="field_name">
  307.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Children: (do you want them, do you have them, will you date someone who has them and does not want more)',ENT_NOQUOTES,'UTF-8',false));?>
  308.                           </td>
  309.                         </tr>
  310.                         <tr class="field">
  311.                           <td class="field_data">
  312.                             <?php $fieldName = 'KidStatus';?><?php $fieldValue =     $record->getField('KidStatus', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
  313.                           </td>
  314.                         </tr>
  315.                         <tr class="field">
  316.                           <td class="field_name">
  317.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Religion:',ENT_NOQUOTES,'UTF-8',false));?>
  318.                           </td>
  319.                         </tr>
  320.                         <tr class="field">
  321.                           <td class="field_data">
  322.                             <?php $fieldName = 'Religion';?><?php $fieldValue =     $record->getField('Religion', 0) ; ?><input class="fieldinput"
  323.                             type="text" size="30" name="<?php echo getFieldFormName($fieldName, 0, $record, true, 'EDITTEXT', 'text');?>" value=
  324.                             "<?php echo $fieldValue;?>">
  325.                           </td>
  326.                         </tr>
  327.                         <tr class="field">
  328.                           <td class="field_name">
  329.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Your Height/Weight/Look:',ENT_NOQUOTES,'UTF-8',false));?>
  330.                           </td>
  331.                         </tr>
  332.                         <tr class="field">
  333.                           <td class="field_data">
  334.                             <?php $fieldName = 'YourLookDescrip';?><?php $fieldValue =     $record->getField('YourLookDescrip', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
  335.                           </td>
  336.                         </tr>
  337.                         <tr class="field">
  338.                           <td class="field_name">
  339.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Age/Type of person you want to meet:',ENT_NOQUOTES,'UTF-8',false));?>
  340.                           </td>
  341.                         </tr>
  342.                         <tr class="field">
  343.                           <td class="field_data">
  344.                             <?php $fieldName = 'DateType';?><?php $fieldValue =     $record->getField('DateType', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
  345.                           </td>
  346.                         </tr>
  347.                         <tr class="field">
  348.                           <td class="field_name">
  349.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Other comments:',ENT_NOQUOTES,'UTF-8',false));?>
  350.                           </td>
  351.                         </tr>
  352.                         <tr class="field">
  353.                           <td class="field_data">
  354.                             <?php $fieldName = 'MICS';?><?php $fieldValue =     $record->getField('MICS', 0) ; ?><?php echoTextArea($fieldName, 0, $record, true, 'SCROLLTEXT', 'text', $fieldValue)?>
  355.                           </td>
  356.                         </tr>
  357.                         <tr class="field">
  358.                           <td class="field_name">
  359.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Upload Image 1:',ENT_NOQUOTES,'UTF-8',false));?>
  360.                           </td>
  361.                           </tr>
  362.                         <tr class="field">
  363.                           <td class="field_data img">
  364.                             <input type="file" name="file" id="file" />
  365.                         </tr>
  366.                         <tr class="field">
  367.                           <td class="field_name">
  368.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('Upload Image 2:',ENT_NOQUOTES,'UTF-8',false));?>
  369.                           </td>
  370.                           </tr>
  371.                         <tr class="field">
  372.                           <td class="field_data img">
  373.                             <input type="file" name="file2" id="file2" />
  374.                         </tr>
  375.                         <tr class="field">
  376.                           <td class="field_name">
  377.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('REGISTRATION WILL ONLY BE COMPLETE ONCE WE RECEIVE YOUR PHOTOS. Unfortunately, we will only be able to respond to your inquiry after you have uploaded your photos.',ENT_NOQUOTES,'UTF-8',false));?>
  378.                           </td>
  379.                           </tr>
  380.                             <tr class="field">
  381.                           <td class="field_name">
  382.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('You should expect to hear a reply from us within 7 to 10 days from when you submit your form.',ENT_NOQUOTES,'UTF-8',false));?>
  383.                           </td>
  384.                         </tr>
  385.                         <tr class="field">
  386.                           <td class="field_name">
  387.                             <?php echo str_replace(' ', '&nbsp; ',htmlentities('*Network membership is subject to verification of the information provided, determination of the suitability of the service for the applicant and a face-to-face interview.',ENT_NOQUOTES,'UTF-8',false));?>
  388.                           </td>
  389.                         </tr>
  390.                         <!--Display record form controls-->
  391.                         <tr class="field">
  392.                           <td class="field_name">
  393.                             &nbsp;
  394.                           </td>
  395.                           <td class="field_data">
  396.                             <input type="submit" class="buttons" name="-new" value="Submit"> <input type="reset" class="buttons" name="Reset"
  397.                             value="Reset"> <input type="button" class="buttons" onclick="window.location='home.php'" name="Cancel" value="Cancel">
  398.                           </td>
  399.                         </tr>
  400.                       </table>
  401.                     </form>
  402.                   </td>
  403.                 </tr>
  404.               </table>
  405.             </div>
  406.           </td>
  407.           <td class="contentbgright">
  408.             &nbsp;
  409.           </td>
  410.         </tr>
  411.         <tr>
  412.           <td class="contentbgfooterleft">
  413.             &nbsp;
  414.           </td>
  415.           <td class="contentfooter">
  416.             &nbsp;
  417.           </td>
  418.           <td class="contentbgfotterright">
  419.             &nbsp;
  420.           </td>
  421.         </tr>
  422.       </table>
  423.     </div>
  424.     <!-- Footer -->
  425.     <table class="footerwidth" cellspacing="0" cellpadding="0">
  426.       <tr>
  427.         <td>
  428.           <?php include_once 'footer.php' ?>
  429.         </td>
  430.       </tr>
  431.     </table>
  432.   </body>
  433. </html>


confirmation.php code:
Code: [ Select ]
<?php
/**
* FileMaker PHP Site Assistant Generated File
*/
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 20000))
{
if ($_FILES["file"]["error"] > 0)
{
echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
}
else
{
if (file_exists("upload/" . $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
$file1 = "upload/" .$_FILES["file"]["name"]);
}
}
}
else
{
echo "";
}

if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 20000))
{
if ($_FILES["file"]["error"] > 0)
{
echo "Return Code: " . $_FILES["file2"]["error"] . "<br />";
}
else
{
if (file_exists("upload/" . $_FILES["file2"]["name"]))
{
echo $_FILES["file2"]["name"] . " already exists. ";
}
else
{
move_uploaded_file($_FILES["file2"]["tmp_name"],
$file2 = "upload/" . $_FILES["file2"]["name"]);
}
}
}
else
{
echo "";
}
require_once 'fmview.php';
require_once 'FileMaker.php';
require_once 'error.php';
require_once 'class.phpmailer.php';
$cgi = new CGI();
$cgi->storeFile();
$databaseName = 'questionnaire';
$layoutName = 'Questionnaire5';
$userName = $cgi->get('userName');
$passWord = $cgi->get('passWord');
$fm = & new FileMaker();
$fm->setProperty('database', $databaseName);
$fm->setProperty('username', $userName);
$fm->setProperty('password', $passWord);
Exitonerror($fm);
$layout = $fm->getLayout($layoutName);
Exitonerror($layout);
// formats for dates and times
$displayDateFormat = '%m/%d/%Y';
$displayTimeFormat = '%I:%M:%S %P';
$displayDateTimeFormat = '%m/%d/%Y %I:%M:%S %P';
$submitDateOrder = 'mdy';
// create the new add command
$newrecordrequest = $fm->newAddCommand($layoutName);
Exitonerror($newrecordrequest);
// get the submitted record data
$recorddata = $cgi->get('recorddata');
if (isset ($recorddata)) {
// submit the data to the db
$result = submitRecordData($recorddata, $newrecordrequest, $cgi, $layout->listFields());
// clear the stored record data
$cgi->clear('recorddata');
Exitonerror($result);
if ($result->getFetchCount() > 0) {
$records = $result->getRecords();
$record = $records[0];
}
}
Exitonerror($record);

$findCom =& $fm->newFindCommand($layoutName);
$findCom->addFindCriterion('rec_num','5');
$findCom->addSortRule('rec_num', 1,FILEMAKER_SORT_ASCEND);
$findCom->setScript('SendEmail');
$result =$findCom->execute();
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" media="screen" href="white.css">
<title>
Samantha's Table Registration Form Submission Successful!
</title>
</head>
<body>
<div id="header">
<!-- HEADER -->
<div id="headerlogo">
Samantha's Table
<div id="headercaption">
<!--Caption for the Company-->
</div>
</div>
</div>
<div id="content">
<!--Navigation Menu-->
<?php include_once 'navigation.php' ?>
<table cellpadding="0" cellspacing="0" class="contentbg">
<tr>
<td class="contentbgleft">
</td>
<td class="contentmidrecords">
<div id="contenttitlebg">
<!-- PAGE BODY -->
<h1>
Registration Form Confirmation
</h1>
</div>
<table class="message" cellpadding="0" cellspacing="0">
<tr>
<td class="messagedisplay">
Thank you for filling out the registration form. If you have filled out the form and uploaded your photos then we will be in touch with you shortly.

If you have not yet uploaded your photos then please email your photos within 24 to 48 hours to. Your registration will only be complete once we receive your photos.
</td>
</tr>
</table>
<table class="curvedbg">
<tr>
<td>
</td>
</tr>
</table>
<div class="scrolladd">
<table cellpadding="1" cellspacing="0" class="recwidth">
<tr>
<td valign="top">
<table cellpadding="1" cellspacing="6" class="record">
<!-- Display record field values -->
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('First Name:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('NameFirst', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Last Name:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('NameLast', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Email:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Email', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Phone Number:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Phone 1', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Age:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Age', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Where you are from originally?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('OriginallyFrom', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Where do you live currently?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('CurrentlyLive', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('College/grad school attended?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('SpecificEducation', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Occupation?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Occupation', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Where do you work?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Work', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('What is your income level?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('IncomeLevel', 0, $record, true, 'POPUPLIST', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Service',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Service', 0, $record, true, 'POPUPLIST', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Have you tried online dating and/or used other matchmakers (which ones)?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('OtherMatchmakingServices', 0, $record, true, 'SCROLLTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('What are your hobbies?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Hobbies', 0, $record, true, 'SCROLLTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Do you have pets? If so, describe:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Pets', 0, $record, true, 'SCROLLTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('How you heard about the service? (specifically)',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Referral', 0, $record, true, 'SCROLLTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('What is your marital status?',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('MaritalStatus', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Children',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('KidStatus', 0, $record, true, 'SCROLLTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Religion:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data" id="Religion">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Religion', 0, $record, true, 'EDITTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Your Height / Weight / Look:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('YourLookDescrip', 0, $record, true, 'SCROLLTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Age / Type of person you want to meet:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('DateType', 0, $record, true, 'SCROLLTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Other Comments:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('MICS', 0, $record, true, 'SCROLLTEXT', 'text')))?>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Uploaded Image 1:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<a href="<?php echo $file1; ?>">Successful Upload: Image1</a>
</td>
</tr>
<tr class="field">
<td class="field_name">
<?php echo str_replace(' ', '&nbsp; ',htmlentities('Uploaded Image 2:',ENT_NOQUOTES,'UTF-8',false));?>
</td>
</tr>
<tr class="field">
<td class="field_data">
<a href="<?php echo $file2; ?>">Successful Upload: Image2</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td class="contentbgright">
</td>
</tr>
<tr>
<td class="contentbgfooterleft">
</td>
<td class="contentfooter">
</td>
<td class="contentbgfotterright">
</td>
</tr>
</table>
</div>
<!-- Footer-->
<table class="footerwidth" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php include_once 'footer.php' ?>
</td>
</tr>
</table>
</body>
</html>
  1. <?php
  2. /**
  3. * FileMaker PHP Site Assistant Generated File
  4. */
  5. if ((($_FILES["file"]["type"] == "image/gif")
  6. || ($_FILES["file"]["type"] == "image/jpeg")
  7. || ($_FILES["file"]["type"] == "image/pjpeg"))
  8. && ($_FILES["file"]["size"] < 20000))
  9. {
  10. if ($_FILES["file"]["error"] > 0)
  11. {
  12. echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
  13. }
  14. else
  15. {
  16. if (file_exists("upload/" . $_FILES["file"]["name"]))
  17. {
  18. echo $_FILES["file"]["name"] . " already exists. ";
  19. }
  20. else
  21. {
  22. move_uploaded_file($_FILES["file"]["tmp_name"],
  23. $file1 = "upload/" .$_FILES["file"]["name"]);
  24. }
  25. }
  26. }
  27. else
  28. {
  29. echo "";
  30. }
  31. if ((($_FILES["file"]["type"] == "image/gif")
  32. || ($_FILES["file"]["type"] == "image/jpeg")
  33. || ($_FILES["file"]["type"] == "image/pjpeg"))
  34. && ($_FILES["file"]["size"] < 20000))
  35. {
  36. if ($_FILES["file"]["error"] > 0)
  37. {
  38. echo "Return Code: " . $_FILES["file2"]["error"] . "<br />";
  39. }
  40. else
  41. {
  42. if (file_exists("upload/" . $_FILES["file2"]["name"]))
  43. {
  44. echo $_FILES["file2"]["name"] . " already exists. ";
  45. }
  46. else
  47. {
  48. move_uploaded_file($_FILES["file2"]["tmp_name"],
  49. $file2 = "upload/" . $_FILES["file2"]["name"]);
  50. }
  51. }
  52. }
  53. else
  54. {
  55. echo "";
  56. }
  57. require_once 'fmview.php';
  58. require_once 'FileMaker.php';
  59. require_once 'error.php';
  60. require_once 'class.phpmailer.php';
  61. $cgi = new CGI();
  62. $cgi->storeFile();
  63. $databaseName = 'questionnaire';
  64. $layoutName = 'Questionnaire5';
  65. $userName = $cgi->get('userName');
  66. $passWord = $cgi->get('passWord');
  67. $fm = & new FileMaker();
  68. $fm->setProperty('database', $databaseName);
  69. $fm->setProperty('username', $userName);
  70. $fm->setProperty('password', $passWord);
  71. Exitonerror($fm);
  72. $layout = $fm->getLayout($layoutName);
  73. Exitonerror($layout);
  74. // formats for dates and times
  75. $displayDateFormat = '%m/%d/%Y';
  76. $displayTimeFormat = '%I:%M:%S %P';
  77. $displayDateTimeFormat = '%m/%d/%Y %I:%M:%S %P';
  78. $submitDateOrder = 'mdy';
  79. // create the new add command
  80. $newrecordrequest = $fm->newAddCommand($layoutName);
  81. Exitonerror($newrecordrequest);
  82. // get the submitted record data
  83. $recorddata = $cgi->get('recorddata');
  84. if (isset ($recorddata)) {
  85. // submit the data to the db
  86. $result = submitRecordData($recorddata, $newrecordrequest, $cgi, $layout->listFields());
  87. // clear the stored record data
  88. $cgi->clear('recorddata');
  89. Exitonerror($result);
  90. if ($result->getFetchCount() > 0) {
  91. $records = $result->getRecords();
  92. $record = $records[0];
  93. }
  94. }
  95. Exitonerror($record);
  96. $findCom =& $fm->newFindCommand($layoutName);
  97. $findCom->addFindCriterion('rec_num','5');
  98. $findCom->addSortRule('rec_num', 1,FILEMAKER_SORT_ASCEND);
  99. $findCom->setScript('SendEmail');
  100. $result =$findCom->execute();
  101. ?>
  102. <html>
  103. <head>
  104. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  105. <link rel="stylesheet" type="text/css" media="screen" href="white.css">
  106. <title>
  107. Samantha's Table Registration Form Submission Successful!
  108. </title>
  109. </head>
  110. <body>
  111. <div id="header">
  112. <!-- HEADER -->
  113. <div id="headerlogo">
  114. Samantha's Table
  115. <div id="headercaption">
  116. <!--Caption for the Company-->
  117. </div>
  118. </div>
  119. </div>
  120. <div id="content">
  121. <!--Navigation Menu-->
  122. <?php include_once 'navigation.php' ?>
  123. <table cellpadding="0" cellspacing="0" class="contentbg">
  124. <tr>
  125. <td class="contentbgleft">
  126. </td>
  127. <td class="contentmidrecords">
  128. <div id="contenttitlebg">
  129. <!-- PAGE BODY -->
  130. <h1>
  131. Registration Form Confirmation
  132. </h1>
  133. </div>
  134. <table class="message" cellpadding="0" cellspacing="0">
  135. <tr>
  136. <td class="messagedisplay">
  137. Thank you for filling out the registration form. If you have filled out the form and uploaded your photos then we will be in touch with you shortly.
  138. If you have not yet uploaded your photos then please email your photos within 24 to 48 hours to. Your registration will only be complete once we receive your photos.
  139. </td>
  140. </tr>
  141. </table>
  142. <table class="curvedbg">
  143. <tr>
  144. <td>
  145. </td>
  146. </tr>
  147. </table>
  148. <div class="scrolladd">
  149. <table cellpadding="1" cellspacing="0" class="recwidth">
  150. <tr>
  151. <td valign="top">
  152. <table cellpadding="1" cellspacing="6" class="record">
  153. <!-- Display record field values -->
  154. <tr class="field">
  155. <td class="field_name">
  156. <?php echo str_replace(' ', '&nbsp; ',htmlentities('First Name:',ENT_NOQUOTES,'UTF-8',false));?>
  157. </td>
  158. </tr>
  159. <tr class="field">
  160. <td class="field_data">
  161. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('NameFirst', 0, $record, true, 'EDITTEXT', 'text')))?>
  162. </td>
  163. </tr>
  164. <tr class="field">
  165. <td class="field_name">
  166. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Last Name:',ENT_NOQUOTES,'UTF-8',false));?>
  167. </td>
  168. </tr>
  169. <tr class="field">
  170. <td class="field_data">
  171. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('NameLast', 0, $record, true, 'EDITTEXT', 'text')))?>
  172. </td>
  173. </tr>
  174. <tr class="field">
  175. <td class="field_name">
  176. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Email:',ENT_NOQUOTES,'UTF-8',false));?>
  177. </td>
  178. </tr>
  179. <tr class="field">
  180. <td class="field_data">
  181. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Email', 0, $record, true, 'EDITTEXT', 'text')))?>
  182. </td>
  183. </tr>
  184. <tr class="field">
  185. <td class="field_name">
  186. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Phone Number:',ENT_NOQUOTES,'UTF-8',false));?>
  187. </td>
  188. </tr>
  189. <tr class="field">
  190. <td class="field_data">
  191. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Phone 1', 0, $record, true, 'EDITTEXT', 'text')))?>
  192. </td>
  193. </tr>
  194. <tr class="field">
  195. <td class="field_name">
  196. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Age:',ENT_NOQUOTES,'UTF-8',false));?>
  197. </td>
  198. </tr>
  199. <tr class="field">
  200. <td class="field_data">
  201. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Age', 0, $record, true, 'EDITTEXT', 'text')))?>
  202. </td>
  203. </tr>
  204. <tr class="field">
  205. <td class="field_name">
  206. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where you are from originally?',ENT_NOQUOTES,'UTF-8',false));?>
  207. </td>
  208. </tr>
  209. <tr class="field">
  210. <td class="field_data">
  211. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('OriginallyFrom', 0, $record, true, 'EDITTEXT', 'text')))?>
  212. </td>
  213. </tr>
  214. <tr class="field">
  215. <td class="field_name">
  216. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where do you live currently?',ENT_NOQUOTES,'UTF-8',false));?>
  217. </td>
  218. </tr>
  219. <tr class="field">
  220. <td class="field_data">
  221. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('CurrentlyLive', 0, $record, true, 'EDITTEXT', 'text')))?>
  222. </td>
  223. </tr>
  224. <tr class="field">
  225. <td class="field_name">
  226. <?php echo str_replace(' ', '&nbsp; ',htmlentities('College/grad school attended?',ENT_NOQUOTES,'UTF-8',false));?>
  227. </td>
  228. </tr>
  229. <tr class="field">
  230. <td class="field_data">
  231. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('SpecificEducation', 0, $record, true, 'EDITTEXT', 'text')))?>
  232. </td>
  233. </tr>
  234. <tr class="field">
  235. <td class="field_name">
  236. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Occupation?',ENT_NOQUOTES,'UTF-8',false));?>
  237. </td>
  238. </tr>
  239. <tr class="field">
  240. <td class="field_data">
  241. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Occupation', 0, $record, true, 'EDITTEXT', 'text')))?>
  242. </td>
  243. </tr>
  244. <tr class="field">
  245. <td class="field_name">
  246. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Where do you work?',ENT_NOQUOTES,'UTF-8',false));?>
  247. </td>
  248. </tr>
  249. <tr class="field">
  250. <td class="field_data">
  251. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Work', 0, $record, true, 'EDITTEXT', 'text')))?>
  252. </td>
  253. </tr>
  254. <tr class="field">
  255. <td class="field_name">
  256. <?php echo str_replace(' ', '&nbsp; ',htmlentities('What is your income level?',ENT_NOQUOTES,'UTF-8',false));?>
  257. </td>
  258. </tr>
  259. <tr class="field">
  260. <td class="field_data">
  261. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('IncomeLevel', 0, $record, true, 'POPUPLIST', 'text')))?>
  262. </td>
  263. </tr>
  264. <tr class="field">
  265. <td class="field_name">
  266. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Service',ENT_NOQUOTES,'UTF-8',false));?>
  267. </td>
  268. </tr>
  269. <tr class="field">
  270. <td class="field_data">
  271. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Service', 0, $record, true, 'POPUPLIST', 'text')))?>
  272. </td>
  273. </tr>
  274. <tr class="field">
  275. <td class="field_name">
  276. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Have you tried online dating and/or used other matchmakers (which ones)?',ENT_NOQUOTES,'UTF-8',false));?>
  277. </td>
  278. </tr>
  279. <tr class="field">
  280. <td class="field_data">
  281. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('OtherMatchmakingServices', 0, $record, true, 'SCROLLTEXT', 'text')))?>
  282. </td>
  283. </tr>
  284. <tr class="field">
  285. <td class="field_name">
  286. <?php echo str_replace(' ', '&nbsp; ',htmlentities('What are your hobbies?',ENT_NOQUOTES,'UTF-8',false));?>
  287. </td>
  288. </tr>
  289. <tr class="field">
  290. <td class="field_data">
  291. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Hobbies', 0, $record, true, 'SCROLLTEXT', 'text')))?>
  292. </td>
  293. </tr>
  294. <tr class="field">
  295. <td class="field_name">
  296. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Do you have pets? If so, describe:',ENT_NOQUOTES,'UTF-8',false));?>
  297. </td>
  298. </tr>
  299. <tr class="field">
  300. <td class="field_data">
  301. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Pets', 0, $record, true, 'SCROLLTEXT', 'text')))?>
  302. </td>
  303. </tr>
  304. <tr class="field">
  305. <td class="field_name">
  306. <?php echo str_replace(' ', '&nbsp; ',htmlentities('How you heard about the service? (specifically)',ENT_NOQUOTES,'UTF-8',false));?>
  307. </td>
  308. </tr>
  309. <tr class="field">
  310. <td class="field_data">
  311. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Referral', 0, $record, true, 'SCROLLTEXT', 'text')))?>
  312. </td>
  313. </tr>
  314. <tr class="field">
  315. <td class="field_name">
  316. <?php echo str_replace(' ', '&nbsp; ',htmlentities('What is your marital status?',ENT_NOQUOTES,'UTF-8',false));?>
  317. </td>
  318. </tr>
  319. <tr class="field">
  320. <td class="field_data">
  321. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('MaritalStatus', 0, $record, true, 'EDITTEXT', 'text')))?>
  322. </td>
  323. </tr>
  324. <tr class="field">
  325. <td class="field_name">
  326. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Children',ENT_NOQUOTES,'UTF-8',false));?>
  327. </td>
  328. </tr>
  329. <tr class="field">
  330. <td class="field_data">
  331. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('KidStatus', 0, $record, true, 'SCROLLTEXT', 'text')))?>
  332. </td>
  333. </tr>
  334. <tr class="field">
  335. <td class="field_name">
  336. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Religion:',ENT_NOQUOTES,'UTF-8',false));?>
  337. </td>
  338. </tr>
  339. <tr class="field">
  340. <td class="field_data" id="Religion">
  341. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('Religion', 0, $record, true, 'EDITTEXT', 'text')))?>
  342. </td>
  343. </tr>
  344. <tr class="field">
  345. <td class="field_name">
  346. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Your Height / Weight / Look:',ENT_NOQUOTES,'UTF-8',false));?>
  347. </td>
  348. </tr>
  349. <tr class="field">
  350. <td class="field_data">
  351. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('YourLookDescrip', 0, $record, true, 'SCROLLTEXT', 'text')))?>
  352. </td>
  353. </tr>
  354. <tr class="field">
  355. <td class="field_name">
  356. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Age / Type of person you want to meet:',ENT_NOQUOTES,'UTF-8',false));?>
  357. </td>
  358. </tr>
  359. <tr class="field">
  360. <td class="field_data">
  361. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('DateType', 0, $record, true, 'SCROLLTEXT', 'text')))?>
  362. </td>
  363. </tr>
  364. <tr class="field">
  365. <td class="field_name">
  366. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Other Comments:',ENT_NOQUOTES,'UTF-8',false));?>
  367. </td>
  368. </tr>
  369. <tr class="field">
  370. <td class="field_data">
  371. <?php echo nl2br(str_replace(' ', '&nbsp; ', storeFieldNames('MICS', 0, $record, true, 'SCROLLTEXT', 'text')))?>
  372. </td>
  373. </tr>
  374. <tr class="field">
  375. <td class="field_name">
  376. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Uploaded Image 1:',ENT_NOQUOTES,'UTF-8',false));?>
  377. </td>
  378. </tr>
  379. <tr class="field">
  380. <td class="field_data">
  381. <a href="<?php echo $file1; ?>">Successful Upload: Image1</a>
  382. </td>
  383. </tr>
  384. <tr class="field">
  385. <td class="field_name">
  386. <?php echo str_replace(' ', '&nbsp; ',htmlentities('Uploaded Image 2:',ENT_NOQUOTES,'UTF-8',false));?>
  387. </td>
  388. </tr>
  389. <tr class="field">
  390. <td class="field_data">
  391. <a href="<?php echo $file2; ?>">Successful Upload: Image2</a>
  392. </td>
  393. </tr>
  394. </table>
  395. </td>
  396. </tr>
  397. </table>
  398. </div>
  399. </td>
  400. <td class="contentbgright">
  401. </td>
  402. </tr>
  403. <tr>
  404. <td class="contentbgfooterleft">
  405. </td>
  406. <td class="contentfooter">
  407. </td>
  408. <td class="contentbgfotterright">
  409. </td>
  410. </tr>
  411. </table>
  412. </div>
  413. <!-- Footer-->
  414. <table class="footerwidth" cellspacing="0" cellpadding="0">
  415. <tr>
  416. <td>
  417. <?php include_once 'footer.php' ?>
  418. </td>
  419. </tr>
  420. </table>
  421. </body>
  422. </html>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 85 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.