Please Help!
Go to http://www.claudeweidner.com/Test2
login:
demo
demo
If you look at the area where you put in your description and compare it to the same area at
http://www.claudeweidner.com/Test1, same login. I want to have a drop down menu where I can select preset templates that are called from a htm file. and pass to the test.php once form is submitted along with all the other info.
the preset template will only be a htm file that has the "description" info
Below is the code I am trying to pass, I know it is missing info as I am not that good with php.
This will take the place of the desription text area:
<?
<tr>
<td>
Choose Template:
<?
$category = array(
1=> "Credit",
2=> "DVD",
3=> "Watch",
4=> "Cell Phone",
);
$category = str_replace(" ", " ", $category);
echo '<SELECT name=category>';
foreach ($category as $key => $value)
{
echo '<OPTION value='.$value.'> '.$value.'';
}
echo '</select>';
?>
</td>
</tr>
/?>
Or something like this:
<tr>
<td>
Choose Template:
<select name="template">
<option value="includes/templates/credit.htm">Credit</option>
<option value="includes/template/dvd.htm">DVD</option>
<option value="includes/template/watch.htm">Watch</option>
<option value="includes/template/cell.htm">Cell Phone</option>
</td>
</tr>
This is the code where I am sending it:
if($_POST['desc_style'] == "i"){ $code .="<i>"; }
$code .="<div style='font-size: ".$_POST['desc_size']."px; color: #".$_POST['desc_color']."; font-weight: ".$_POST['desc_density'].";'>";
foreach($line as $quote){ $code .= $quote."<br>"; }
$code .="</div>";
if($_POST['desc_style'] == "i"){ $code .="</i>"; }
$code .="<br>
I am not that familar with php. I had someone write this for me years ago and I am trying to make some changes to fit my needs.
I appreciate any input on this and if you need more info or files, I'll be glad to get it to you.
Thanks