Hi,
I have a database with a field called entryTerm that contains for example Fall 2002, I put the value into a variable that I would like to split the value into two variables so I can do something like the code below. Any ideas?
I have to option boxes:
<select name="entryTerm">
<option value="Fall" <? if ($entryTerm == "Fall" {print(" Selected"}?> > Fall </option>
<option value="Winter" <? if ($entryTerm == "Winter" {print(" Selected"}?> > Winter </option>
<option value="Spring" <? if ($entryTerm == "Spring" {print(" Selected"}?> > Spring </option>
<option value="Summer" <? if ($entryTerm == "Summer" {print(" Selected"}?> > Summer</option>
</select>
<select name="year">
<option value="1999" <? if ($entryTerm == "1999" {print(" Selected"}?> > 1999 </option>
<option value="2000" <? if ($entryTerm == "2000" {print(" Selected"}?> > 2000</option>
<option value="2001" <? if ($entryTerm == "2001" {print(" Selected"}?> > 2001</option>
<option value="2002" <? if ($entryTerm == "2002" {print(" Selected"}?> > 2002</option>
</select>
MAO
I have a database with a field called entryTerm that contains for example Fall 2002, I put the value into a variable that I would like to split the value into two variables so I can do something like the code below. Any ideas?
I have to option boxes:
<select name="entryTerm">
<option value="Fall" <? if ($entryTerm == "Fall" {print(" Selected"}?> > Fall </option>
<option value="Winter" <? if ($entryTerm == "Winter" {print(" Selected"}?> > Winter </option>
<option value="Spring" <? if ($entryTerm == "Spring" {print(" Selected"}?> > Spring </option>
<option value="Summer" <? if ($entryTerm == "Summer" {print(" Selected"}?> > Summer</option>
</select>
<select name="year">
<option value="1999" <? if ($entryTerm == "1999" {print(" Selected"}?> > 1999 </option>
<option value="2000" <? if ($entryTerm == "2000" {print(" Selected"}?> > 2000</option>
<option value="2001" <? if ($entryTerm == "2001" {print(" Selected"}?> > 2001</option>
<option value="2002" <? if ($entryTerm == "2002" {print(" Selected"}?> > 2002</option>
</select>
MAO