Hi,

I got two button who show/hide some form

HTML Code:
<form method="post" id="category" action="<?php echo $_SERVER['PHP_SELF']; ?>" onsubmit="return validateForm()">
<select name="Categorie">
<option name="categorieNom" value="1">1</option>
<option name="categorieNom" value="2">2</option>
<option name="categorieNom" value="3">3</option>
</select><br>

<input name="" type="submit" />
</form></div>
<div style="display:none" id="age"><form method="post" id="age" action="<?php echo $_SERVER['PHP_SELF']; ?>" onsubmit="return validateForm()">
<select name="age">
<option name="ageid" value="1">1</option>
<option name="ageid" value="2">2</option>
<option name="ageid" value="3">3</option>
</select>
<input name="" type="submit" />
</form>
And I want, depending of what form is submit, to change the mysql query like this:

PHP Code:
    $catidform $_POST['CategorieNom'];
    
$ageviseform $_POST['age'];
if 
$_POST['category']    {
    
$result mysql_query("SELECT * FROM csvdata WHERE IdCategorie = $catidform");
} elseif 
$_POST['age'] {
$result mysql_query("SELECT * FROM csvdata WHERE AgeVise = $ageviseform");

Thanks