In a nutshell, my company is using several different programs that use a string of data regarding personal appearance information for different TV/movie character. This data need to be read in a very strict manner. (The following example is exactly how we need to input the information... including all brackets and greater/lessthan symbols.

Example:

[Performer=Character]<gender.age>.<ethnicity.skin.tone>.<height>.<bodyhair>.<haircolor.hairlength.hairtexture>.<eye.color> etc...etc...etc...

[Sylvester.Stallone=Rocky.Balboa]<male.man.guy.middle.aged.adult>.<white.Caucasian.Italian.medium.mid.tone.toned.skin>.<average.height.stature>.<bare.smooth.hairless.chest>.<black.medium.mid.length.wavy.hair>.<brown.eyed.eyes> etc...

Currently, my boss has half the company using shortcut keys to type all of this in manual. Absolutely ridiculous!!! So over the weekend I broke out my old HTLM/Javascript books and tried to make a simple webpage/form w/ multiple dropdowns or checkboxes that will hopefully speed up the process. The input dropdowns/checkboxes are at the top of the page w/ a box at the bottom that will post the correct string (including proper brackets,periods,<>,etc).... with a "Generate" and "Reset button in between. I'm using PHP (process.php) to process the data, put it in the correct order and then post it back in the box (treated as a separate page.) The problem I'm having is the the Javascript strips away the < and > (greater/lessthan) symbols no matter what I try. I can't get it to post the data w/ these symbols attached. It just treats is as code and posts only the words.

I haven't tried programming in quite some time... so any and all help is greatly appreciated!!! If there's a simpler/easier method, I'll start from scratch if need be. But preferably I'd like to find a simple fix and be done with this.

Thank you!!
DaFunkyBeats

*** UPDATE:  Below, I've posted the code for my index.html & process.php  ***

In a nutshell, my company is using several different programs that use a string of data regarding personal appearance information for different TV/movie character. This data need to be read in a very strict manner. (The following example is exactly how we need to input the information... including all brackets and greater/lessthan symbols.

Example:

[Performer=Character]<gender.age>.<ethnicity.skin.tone>.<height>.<bodyhair>.<haircolor.hairlength.hairtexture>.<eye.color> etc...etc...etc...

[Sylvester.Stallone=Rocky.Balboa]<male.man.guy.middle.aged.adult>.<white.Caucasian.Italian.medium.mid.tone.toned.skin>.<average.height.stature>.<bare.smooth.hairless.chest>.<black.medium.mid.length.wavy.hair>.<brown.eyed.eyes> etc...

Currently, my boss has half the company using shortcut keys to type all of this in manual. Absolutely ridiculous!!! So over the weekend I broke out my old HTLM/Javascript books and tried to make a simple webpage/form w/ multiple dropdowns or checkboxes that will hopefully speed up the process. The input dropdowns/checkboxes are at the top of the page w/ a box at the bottom that will post the correct string (including proper brackets,periods,<>,etc).... with a "Generate" and "Reset button in between. I'm using PHP (process.php) to process the data, put it in the correct order and then post it back in the box (treated as a separate page.) The problem I'm having is the the Javascript strips away the < and > (greater/lessthan) symbols no matter what I try. I can't get it to post the data w/ these symbols attached. It just treats is as code and posts only the words.

I haven't tried programming in quite some time... so any and all help is greatly appreciated!!! If there's a simpler/easier method, I'll start from scratch if need be. But preferably I'd like to find a simple fix and be done with this.

Thank you!!
DaFunkyBeats

I've been more of the idea man behind this, whereas my unemployed roommate has gotten off the couch to do most of the coding. He's been stuck on this for over a week now and isn't the type to ask for help. If you see major errors that won't give the required results in the above example then by all means feel free to point out his mistakes. I know this can be done, but he's been dancing around the issue... and without the proper bracket,periods, etc the entire thing is useless. So I'm taking the initiative. Any and all help is appreciated. I'd even be willing to PayPal someone for there time and effort if they could just put this together in a nice little site/desktop app. You can use the site prefix at g mail to if need be. This beta ver is @ bjones.site11.com Thanx again!!!

***********
** INDEX **
***********



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script language ="Javascript" src="/dropdown.js"></script>

<script src="/SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<script src="/SpryAssets/SpryValidationCheckbox.js" type="text/javascript"></script>
<link href="/SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<link href="/SpryAssets/SpryValidationCheckbox.css" rel="stylesheet" type="text/css" />
</head>

<body>
<form action="/process.php" method="post" target="blank" name="formname">

<table width="984" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="4" bgcolor="#00FFFF">Performer:</td>
    </tr>
  <tr>
    <td><div align="center">Gender
      <select name="Gender" id="Gender" onchange="javascript:
dropdownlist2(this.options[this.selectedIndex].value);">

        <option value="">N/A</option>
        <option value="male">Male</option>
        <option value="female">Female</option>
        </select>
      </div>

  </td>
    <td width="255" colspan="-1"><div align="center">Age
  <script type="text/javascript" language="JavaScript">
 document.write('<select name="Age"><option value=""></option></select>')
 </script>

      <noscript>      
      <select name="Age" id="Age"></select>
      </div> </noscript>   </td>
    <td width="266" colspan="-1"><div align="center">Eyes      
      <label for="Eyes"></label>
      <select name="Eyes" id="Eyes">
        <option value=" ">N/A</option>
        <option value="blue">Blue</option>
        <option value="brown">Brown</option>

        <option value="green">Green</option>
        <option value="hazel">Hazel</option>
        <option value="black">Black</option>
        <option value="gray">Gray</option>
        <option value="red">Red</option>
        </select>

      </div></td>
    <td width="241" colspan="-1">      <div align="center">
      Height
      <label for="Height"></label>
      <select name="Height" id="Height">
        <option value=" ">N/A</option>
        <option value="<short.small.little.tiny.height.stature>">Short</option>
        <option value="<average.height.stature>">Average</option>

        <option value="<tall.big.height.stature>">Tall</option>
      </select></td>
  </tr>
  <tr>
    <td height="24">
<div align="center">Hair Color
      <label for="HairColor"></label>
      <select name="HairColor" id="HairColor">
        <option value=" ">N/A</option>

        <option value="<blonde.blond.fair.">Blonde F</option>
        <option value="<blond.fair.">Blond M</option>
        <option value="<brunet.brunette.brown.">Brown F</option>
        <option value="<brunet.brown.">Brown M</option>
        <option value="<dark.black.">Black</option>
        <option value="<redhead.red.">Red</option>

        <option value="<salt.and.pepper.">Salt/Pepper</option>
        <option value="<gray.grey.">Gray</option>
      </select>
      </div>
<!--<div>Other
  <label for="HairColorOther"></label>
      <input type="text" name="HairColorOther" id="HairColorOther" />
  </div>--></td>
    <td colspan="-1"><div align="center">Hair Length
        <label for="HairLength"></label>
        <select name="HairLength" id="HairLength">
          <option value=" ">N/A</option>

          <option value="very.short">Very Short</option>
          <option value="short">Short</option>
          <option value="medium">Medium</option>
          <option value="long">Long</option>
          <option value="very.long">Very Long</option>
        </select>

      </div></td>
    <td colspan="-1"><label for="Age"></label> 
      <div align="center">Hair Texture
        <label for="HairTexture"></label>
        <select name="HairTexture" id="HairTexture">
          <option value=" ">N/A</option>
          <option value="wavy">Wavy</option>
          <option value="straight">Straight</option>

          <option value="curly">Curly</option>
        </select>
      </div></td>
    <td colspan="-1"><div align="center">Bald?
      <label for="HairStyle"></label>
      <select name="HairBald" id="HairBald">
        <option value=" ">N/A</option>
        <option value="<bald>">Bald</option>

        <option value="<balding.receding.hairline>">Balding</option>
      </select>
    </div></td>
  </tr>


  <tr>
    <td><div align="center">Ethnicity 1
        <select name="Ethnicity" id="Ethnicity" onchange="javascript:
dropdownlist1(this.options[this.selectedIndex].value);">
          <option value="">N/A</option>

          <option value="white">White</option>
          <option value="black">Black</option>
          <option value="hispanic">Hispanic</option>
          <option value="asian">Asian</option>
        </select>
    </div></td>
    <td colspan="-1">

      <label for="Ethnicy 2"></label>
      <div align="center">Ethnicity 2
    <script type="text/javascript" language="JavaScript">
 document.write('<select name="Ethnicity_Sub"><option value=""></option></select>')
 </script>
 <noscript><select name="Ethnicity_Sub" id="Ethnicity_Sub" >
 <option value=""></option>
 </select>
 </noscript></td>
<td colspan="-1"><div align="center">Skin Tone
        <select name="Skin" id="Skin">
          <option value=" ">N/A</option>
          <option value="pale.pasty.light.tone.toned.skin>">Pale/Pasty</option>

          <option value="light.fair.tone.toned.skin>">Light/Fair</option>
          <option value="medium.mid.tone.toned.skin>">Midtone</option>
          <option value="tan.tanned.medium.mid.tone.toned.skin>">Tanned</option>
          <option value="dark.tone.toned.skin>">Dark</option>
        </select>
      </div></td>
    <td colspan="-1"><div align="center">Facial Hair
        <label for="FacialFeatures"></label>

      <select name="FacialHair" id="FacialHair">
        <option value=" ">N/A</option>
        <option value="beard">Beard</option>
        <option value="goatee">Goatee</option>
      </select>
    </div></td>
  </tr>

  <tr>
    <td><div align="center">Body Nudity
      <label for="BodyNudity"></label>
      <select name="BodyNudity" id="BodyNudity">
        <option value=" ">N/A</option>
        <option value="full.nudity">Full</option>
        <option value="partial.nudity">Partial</option>
      </select>

    </div></td>
    <td colspan="-1"><div align="center">Body View
            <select name="BodyView" id="BodyView">
          <option value="">N/A</option>
          <option value="frontal">Frontal</option>
          <option value="rear">Rear</option>
        </select>
    </div></td>

    <td colspan="-1">      <label for="BodyArea_Sub"></label>
      <div align="center">Body Hair
<select name="BodyHair" id="BodyHair" >
  <option value=" ">N/A</option>
  <option value="test">Test</option>
</select>
</td>
    <td colspan="-1"><div align="center">
        Body Type
        <label for="Body"></label>

        <select name="BodyType" id="BodyType">
          <option value=" ">N/A</option>
          <option value="slender">Slender</option>
          <option value="average">Average</option>
          <option value="toned">Toned/Athletic</option>
          <option value="muscular">Muscular</option>

          <option value="curvy">Curvy</option>
          <option value="obese">Obese</option>
        </select>
    </div></td>
  </tr>
  <tr>
    <td><div align="center">Nudity Butt
      <label for="NudityButt"></label>

      <select name="NudityButt" id="NudityButt">
        <option value=" ">N/A</option>
        <option value="full">Full</option>
        <option value="partial">Partial</option>
      </select>
    </div></td>
    <td colspan="-1"><div align="center">Butt Area
      <label for="ButtArea"></label>

      <select name="ButtArea" id="ButtArea">
        <option value=" ">N/A</option>
        <option value="bottemless">Bottomless</option>
        <option value="not.bottomless">Not Bottomless</option>
      </select>
    </div></td>
    <td colspan="-1"><div align="center">Butt Size
      <label for="ButtSize"></label>

      <select name="ButtSize" id="ButtSize">
        <option value=" ">N/A</option>
        <option value="large">Large</option>
        <option value="small">Small</option>
      </select>
    </div></td>
    <td colspan="-1"><div align="center">Pubic Hair
      <label for="PenisPubicHair"></label>

      <select name="MalePubicHair" id="MalePubicHair">
        <option value=" ">N/A</option>
        <option value="hairy">Hairy</option>
        <option value="trimmed">Trimmed</option>
        <option value="shaven">Shaven</option>
      </select>
    </div></td>

  </tr>
  <tr>
    <td><div align="center">Nudity Breasts
      <label for="BreastNudity"></label>
      <select name="BreastNudity" id="BreastNudity">
        <option value=" ">N/A</option>
        <option value="full">Full</option>
        <option value="partial">Partial</option>

      </select>
    </div></td>
    <td colspan="-1"><div align="center">Breast Type
      <label for="BreastType"></label>
      <select name="BreastType" id="BreastType">
        <option value=" ">N/A</option>
        <option value="real">Real</option>
        <option value="fake">Fake</option>

      </select>
    </div></td>
    <td colspan="-1"><div align="center">Breast Size
      <label for="BreastSize"></label>
      <select name="BreastSize" id="BreastSize">
        <option value=" ">N/A</option>
        <option value="large">Large</option>
        <option value="small">Small</option>

      </select>
    </div></td>
    <td colspan="-1"><div align="center">Nipples
      <label for="Nipples"></label>
      <select name="Nipples" id="Nipples">
        <option value=" ">N/A</option>
        <option value="areola">Areola</option>
        <option value="perky">Perky</option>

      </select>
    </div></td>
  </tr>
  <tr>
    <td><div align="center">Nudity Penis
      <label for="NudityPenis"></label>
      <select name="NudityPenis" id="NudityPenis">
        <option value=" ">N/A</option>
        <option value="full">Full</option>

        <option value="partial">Partial</option>
      </select>
    </div></td>
    <td colspan="-1"><div align="center">Penis Size
      <label for="PenisSize"></label>
      <select name="PenisSize" id="PenisSize">
        <option value=" ">N/A</option>
        <option value="small">Small</option>

        <option value="long">Long</option>
      </select>
    </div></td>
    <td colspan="-1"><div align="center">Penis Firmness
      <label for="PenisFirmness"></label>
      <select name="PenisFirmness" id="PenisFirmness">
        <option value=" ">N/A</option>
        <option value="hard">Hard</option>

        <option value="semi.hard">Semi Hard</option>
        <option value="soft">Soft</option>
      </select>
    </div></td>
    <td colspan="-1"><div align="center">
      <input name="Vagina" type="checkbox" id="Vagina" value="vagina" />
      <label for="Vagina"></label>
      Vagina
      <input name="Clitteress" type="checkbox" id="Clitteress" value="clitteress" />

          <label for="Clitteress"></label>
      Clitteress</div></td>
  </tr>
  <tr>
    <td><div align="center">Lips
      <label for="Lips"></label>
      <select name="Lips" id="Lips">
        <option value=" ">N/A</option>

        <option value="small">Small</option>
        <option value="fat">Fat</option>
      </select>
    </div></td>
    <td colspan="-1"><div align="center">Legs
      <label for="Legs"></label>
      <select name="Legs" id="Legs">
        <option value=" ">N/A</option>

        <option value="long">Long</option>
        <option value="short">Short</option>
      </select>
    </div></td>
    <td colspan="-1" align="center">      <label>
        CPSkin</label>
      <label for="CPSkin"></label>

      <select name="CPSkin" id="CPSkin">
        <option value=" ">N/A</option>
        <option value="cpskin.male">Male</option>
        <option value="cpskin.female">Female</option>
      </select></td>
    <td colspan="-1" align="center"></td>
  </tr>

  <tr>
    <td></td>
    <td colspan="-1">&nbsp;</td>
    <td colspan="-1">&nbsp;</td>
    <td colspan="-1">&nbsp;</td>
  </tr>
</table>

<p>
  <input type="submit" name="Submit" id="Submit" value="Submit" />

  <INPUT TYPE="button" VALUE="Reset" onClick="history.go(0)">
<br />
</p>
</form>
<iframe name="blank" src="http://bjones.site11.com/blank.html" width="50%"
scrolling="yes"></iframe>
</body>



</html>

<!-- [url]www.000webhost.com[/url] Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com    /count.php" alt="web hosting" /></a></noscript>

<!-- End Of Analytics Code -->



*****************************
*******  PROCESS.PHP  *******
*****************************


<?php


//Used for multiple check boxes in HTML form must add [] in the name fied of the
checkbox  <input type="checkbox" name="TestGroup[]" value=" " id="TestGroup_2"     />

    //$testgroup = implode('.',$_POST['TestGroup']);

$first      = trim($_POST['FirstName']);
$middle             = trim($_POST['Middle']);
$last               = trim($_POST['Last']);
$personal           = trim($_POST['Persona1']);
$persona2           = trim($_POST['Persona2']);
$persona3           = trim($_POST['Persona3']);
$persona4           = trim($_POST['Persona4']);
$suffix             = trim($_POST['Suffix']);
$prefix             = trim($_POST['Prefix']);
$military           = trim($_POST['Military']);
$gender             = trim($_POST['Gender']);
$rank               = trim($_POST['Rank']);
$ethnicity          = trim($_POST['Ethnicity']);
$age                = trim($_POST['Age']);
$skin               = trim($_POST['Skin']);
$height             = trim($_POST['Height']);
$bodytype               = trim($_POST['BodyType']);
$haircolor          = trim($_POST['HairColor']);
$hairlength         = trim($_POST['HairLength']);
$haircolorother     = trim($_POST['HairColorOther']);
$testgroup          = trim($testgroup);
$cpskin             = trim($_POST['CPSkin']);
$hairtexture        = trim($_POST['HairTexture']);
$hairstyle          = trim($_POST['HairStyle']);
$ethnicitysub       = trim($_POST['Ethnicity_Sub']);
$facialhair         = trim($_POST['FacialHair']);
$facialfeatures     = trim($_POST['FacialFeatures']);
$bodynudity         = trim($_POST['BodyNudity']);
$bodyview           = trim($_POST['BodyView']);
$bodyhair           = trim($_POST['BodyHair']);
$breastnudity           = trim($_POST['BreastNudity']);
$breasttype         = trim($_POST['BreastType']);
$breastsize         = trim($_POST['BreastSize']);
$nipples            = trim($_POST['Nipples']);
$nuditypenis            = trim($_POST['NudityPenis']);
$penissize          = trim($_POST['PenisSize']);
$penisfirmness          = trim($_POST['PenisFirmness']);
$malepubichair          = trim($_POST['MalePubicHair']);
$nudityvagina           = trim($_POST['NudityVagina']);
$vagina             = trim($_POST['Vagina']);
$clitteress             = trim($_POST['Clitteress']);
$nuditybutt             = trim($_POST['NudityButt']);
$buttarea               = trim($_POST['ButtArea']);
$buttsize               = trim($_POST['ButtSize']);
$lips               = trim($_POST['Lips']);
$legs               = trim($_POST['Legs']);
$hairbald               = trim($_POST['HairBald']);
$eyes               = trim($_POST['Eyes']);



if(empty($legs)) { $legs = $legs; }
  else
$legs = $legs.'.';

if(empty($buttsize)) { $buttsize = $buttsize; }
  else
    $buttsize = $buttsize.'.';

if(empty($nuditybutt)) { $nuditybutt = $nuditybutt; }
  else
    $nuditybutt = $nuditybutt.'.';

if(empty($vagina)) { $vagina = $vagina; }
  else
    $vagina = $vagina.'.';

if(empty($malepubichair)) { $malepubichair = $malepubichair; }
  else
    $malepubichair = $malepubichair.'.';

if(empty($penissize)) { $penissize = $penissize; }
  else
    $penissize = $penissize.'.';

if(empty($nipples)) { $nipples = $nipples; }
  else
    $nipples = $nipples.'.';

if(empty($breasttype)) { $breasttype = $breasttype; }
  else
    $breasttype = $breasttype.'.';


if(empty($bodyhair)) { $bodyhair = $bodyhair; }
  else
    $bodyhair = $bodyhair.'.';


if(empty($bodynudity)) { $bodynudity = $bodynudity; }
  else
    $bodynudity = $bodynudity.'.';

if(empty($ethnicitysub)) { $ethnicitysub = $ethnicitysub; }
  else
    $ethnicitysub = $ethnicitysub.'.';

if(empty($hairtexture)) { $hairtexture = $hairtexture; }
  else
    $hairtexture = $hairtexture.'.';

if(empty($first)) { $first = $first; }
  else
    $first = $first.'.';

if(empty($middle)) { $middle = $middle; }
  else
    $middle = $middle.'.';

if(empty($last)) { $last = $last; }
  else
    $last = $last.'.';

if(empty($persona1)) { $persona1 = $persona1; }
  else
    $persona1 = $persona1.'.';

if(empty($persona2)) { $persona2 = $persona2; }
  else
    $persona2 = $persona2.'.';

if(empty($persona3)) { $persona3 = $persona3; }
  else
    $persona3 = $persona3.'.';

if(empty($persona4)) { $persona4 = $persona4; }
  else
    $persona4 = $persona4.'.';

if(empty($suffix)) { $suffix = $suffix; }
  else
    $suffix = $suffix.'.';

if(empty($military)) { $military= $military; }
  else
    $military = $military.'.';

if(empty($gender)) { $gender= $gender; }
  else
    $gender = $gender.'.';

if(empty($prefix)) { $prefix= $prefix; }
  else
    $prefix = $prefix.'.';

if(empty($rank)) { $rank= $rank; }
  else
    $rank = $rank.'.';

if(empty($ethnicity)) { $ethnicity= $ethnicity; }
  else
    $ethnicity = $ethnicity.'.';


if(empty($skin)) { $skin= $skin; }
  else
    $skin = $skin.'.';

if(empty($age)) { $age= $age; }
  else
    $age = $age.'.';

if(empty($height)) { $height= $height; }
  else
    $height = $height.'.';

if(empty($bodytype)) { $bodytype= $bodytype; }
  else
    $bodytype = $bodytype.'.';

if(empty($hairshade)) { $hairshade= $hairshade; }
  else
    $hairshade = $hairshade.'.';

if(empty($hairlength)) { $hairlength= $hairlength; }
  else
    $hairlength = $hairlength.'.';

if(empty($haircolor)) { $haircolor= $haircolorother; }
else
    $haircolor = $haircolor.'.';


if(empty($haircolorother)) { $haircolorother= $haircolorother; }
  else
    $haircolor = $haircolorother.'.';

if(empty($cpskin)) { $cpskin= $cpskin; }
  else
    $cpskin = $cpskin.'.';

if(empty($eyes)) { $eyes= $eyes; }
  else
    $eyes = $eyes.'.';

if(empty($hairstyle)) { $hairstyle= $hairstyle; }
  else
    $hairstyle = $hairstyle.'.';

    if(empty($facialhair)) { $facialhair= $facialhair; }
  else
    $facialhair = $facialhair.'.';

    if(empty($bodyview)) { $bodyview= $bodyview; }
  else
    $bodyview = $bodyview.'.';

    if(empty($breastnudity)) { $breastnudity= $breastnudity; }
  else
    $breastnudity = $breastnudity.'.';

    if(empty($breastsize)) { $breastsize= $breastsize; }
  else
    $breastsize = $breastsize.'.';

    if(empty($nuditypenis)) { $nuditypenis= $nuditypenis; }
  else
    $nuditypenis = $nuditypenis.'.';

    if(empty($penisfirmness)) { $penisfirmness= $penisfirmness; }
  else
    $penisfirmness = $penisfirmness.'.';

    if(empty($nudityvagina)) { $nudityvagina= $nudityvagina; }
  else
    $nudityvagina = $nudityvagina.'.';

        if(empty($clitteress)) { $clitteress= $clitteress; }
  else
    $clitteress = $clitteress.'.';

        if(empty($buttarea)) { $buttarea= $buttarea; }
  else
    $buttarea = $buttarea.'.';

        if(empty($lips)) { $lips= $lips; }
  else
    $lips = $lips.'.';

        if(empty($hairbald)) { $hairbald= $hairbald; }
  else
    $hairbald = $hairbald.'.';


echo "{$first}{$middle}{$last}{$cpskin}{$age}{$gender}{$ethnicity}{$ethnicitysub}
{$skin}{$height}{$bodynudity}{$bodyview}{$bodytype}{$bodyhair}{$haircolor}{$hairlength}
{$hairtexture}{$hairbald}{$eyes}{$facialhair}{$lips}{$breastnudity}{$breasttype}
{$breastsize}{$nipples}{$nuditybutt}{$buttarea}{$buttsize}{$nuditypenis}{$penissize}
{$penisfirmness}{$nudityvagina}{$vagina}{$clitteress}{$malepubichair}{$legs}{$persona2}
{$persona3}{$persona4}{$prefix}{$suffix}{$military}{$rank}<br>\n";
 ?>

You need to add all your code in between these tags [ code ] [/ code ] Just to give us an easy time to debug errors in your code.

Cheers,

some special characters are indeed a bit troublesome when handled in web pages, i imagine the same goes for brackets. you could try using the so-called specialchars.
In PHP you could use htmlspecialchars
(http://php.net/manual/en/function.htmlspecialchars.php)

Now, i'm not quite sure wether there's a JScript equivelant, but here is what i would do:
taking a string, then explode it so i get an array with each entry containing exactly one letter.
Then i loop through the array, checking if that one letter matches a letter i call special, and if it is one of those, replace it with a so-called special char.

Dunno if that's the official name, but a special char is set of characters used to represent one special character in HTML. for example, insert &amp; in an HTML page, and it would give an & (ampersand).
A complete list of special characters can be found here:
http://www.utexas.edu/learn/html/spchar.html

I'l make an example loop for you, using an imaginary field called "myField"

$myField = document.getElementByID("myField").value
//might be innerHTML instead of value

expArray = explode("", $myField)
//expArray is now an array, where each entry is exactly one letter long.

for (x = 0;x < count(expArray); x++)
{
  switch(expArray[x])
  {
    case "<":
       expArray[x] = "&lt;"
    case ">":
        expArray[x] = "&rt;"
  }
  // continue making cases for all the weird symbols, you could also do this using   if - else if, else-if etc, but this is quicker and shorter.
}

$myfield = implode($expArray)
//this takes the entire array, and from this point forward you can use it as if it never changed
Member Avatar for diafol

Is this your idea of a joke? Or is it your friend? Or your boss?

if(empty($breastsize)) { $breastsize= $breastsize; }
else
$breastsize = $breastsize.'.';

if(empty($nuditypenis)) { $nuditypenis= $nuditypenis; }
else
$nuditypenis = $nuditypenis.'.';

if(empty($penisfirmness)) { $penisfirmness= $penisfirmness; }
else
$penisfirmness = $penisfirmness.'.';

if(empty($nudityvagina)) { $nudityvagina= $nudityvagina; }
else
$nudityvagina = $nudityvagina.'.';

if(empty($clitteress)) { $clitteress= $clitteress; }
else
$clitteress = $clitteress.'.';

Probably not family friendly then. Sounds like a celebrity skin site. No thanks.

@ardav.. Good pick-up on the code. That code just makes me laugh for a bit lol. Surprisingly enough, I didn't bother going through the code line by line because it was NOT readable enough.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.