PHP expert |
|
<?php
$foto = array('foto1', 'foto2', 'foto3');
?>
<form name='userform' method='post' action='".FUSION_SELF."'>
<table align='center' cellpadding='0' cellspacing='0' class='tbl'>
<select align='center' name='picture' onChange='showimage()' class='textbox' style='width:200px;'>
<?php
for ($i = 0; $i < count($foto); $i++)
{
?>
<option value='<?php echo $i; ?>'><?php echo $foto[$i]; ?></option>
<?php
}
?>
</select>
...
<?php $foto = array('foto1', 'foto2', 'foto3'); ?> <form name='userform' method='post' action='".FUSION_SELF."'> <table align='center' cellpadding='0' cellspacing='0' class='tbl'> <select align='center' name='picture' onChange='showimage()' class='textbox' style='width:200px;'> <?php for ($i = 0; $i < count($foto); $i++) { ?> <option value=' <?php echo $i; ?>'> <?php echo $foto[$i]; ?></option> <?php } ?> </select> ...
Kan je dan uitlezen gebruikmakend van dezelfde array. Anders kan je gewoon de array waardes als value meegeven... |