A voir également:
- Php select
- Easy php - Télécharger - Divers Web & Internet
- Reboot and select proper boot device asus - Forum Matériel & Système
- Please select boot device ✓ - Forum Windows
- Php natif - Forum PHP
- Get_magic_quotes_gpc php 8 ✓ - Forum PHP
2 réponses
Oui bien sur.
<form name="formulaire" method="get">
<select id="flux_univers" name="flux_univers" style="width: 230px" onChange="location.href='flux.php'">
<option value="">Sélectionnez un univers</option>
<?php
$queryFlux = "select flux_id, flux_nom from $flux_db.flux where flux_code like 'XLS%'";
$resFlux = mysql_query($queryFlux);
while($rowFlux = mysql_fetch_array($resFlux))
{
for($i=1;$i=7;$i++){
echo '<option value="'.$rowFlux['flux_id'].'" name="flux'.$i.'" >'.$rowFlux['flux_nom'].'</option>';
echo($i);
}
}
?>
</select>
</form>
<select NAME="source">
<option value="Manuel">Manuel</option>
<?
if(isset($_GET['flux$i'])){
$select_sources = "SELECT DISTINCT(source)
FROM fashion.produits
WHERE LENGTH(pr_source)>=1
GROUP BY source
ORDER BY source";
$result_sources = mysql_query($select_sources,$link) or die ('Erreur : '.mysql_error() );
while($row_sources= mysql_fetch_array($result_sources))
{
if ($pr_source==$row_sources['pr_source']) {
$tmp['sel']=' SELECTED';
}
echo '<OPTION VALUE="'.$row_sources['source'].'"'.$tmp['sel'].'>'.$row_sources['source'].'</OPTION>';
unset($tmp['sel']);
}
}
?>
<option value="autre">Autre</option>
</select>
<form name="formulaire" method="get">
<select id="flux_univers" name="flux_univers" style="width: 230px" onChange="location.href='flux.php'">
<option value="">Sélectionnez un univers</option>
<?php
$queryFlux = "select flux_id, flux_nom from $flux_db.flux where flux_code like 'XLS%'";
$resFlux = mysql_query($queryFlux);
while($rowFlux = mysql_fetch_array($resFlux))
{
for($i=1;$i=7;$i++){
echo '<option value="'.$rowFlux['flux_id'].'" name="flux'.$i.'" >'.$rowFlux['flux_nom'].'</option>';
echo($i);
}
}
?>
</select>
</form>
<select NAME="source">
<option value="Manuel">Manuel</option>
<?
if(isset($_GET['flux$i'])){
$select_sources = "SELECT DISTINCT(source)
FROM fashion.produits
WHERE LENGTH(pr_source)>=1
GROUP BY source
ORDER BY source";
$result_sources = mysql_query($select_sources,$link) or die ('Erreur : '.mysql_error() );
while($row_sources= mysql_fetch_array($result_sources))
{
if ($pr_source==$row_sources['pr_source']) {
$tmp['sel']=' SELECTED';
}
echo '<OPTION VALUE="'.$row_sources['source'].'"'.$tmp['sel'].'>'.$row_sources['source'].'</OPTION>';
unset($tmp['sel']);
}
}
?>
<option value="autre">Autre</option>
</select>