Insert in mysql din form cu doua submit
Scris: Mar Feb 14, 2012
Am form-ul asta :
Deci am formu de mai sus cum pot sa fac ca la apasarea inputuli salveaza sa imi insereze intr-o baza de date ce se alfa in el ! .
Am idee cum se face da problema i ca nu am mai lucrat niciodata cu 2 inputuri de tip submit .
Cod: Selectaţi tot
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="hidden" name="Id" value="<?php $id ?>">
<p>
<label>Source Code:</label>
<textarea name="source_code" rows="20" cols="80" class="text"> <?php if(!empty($source_code)) echo htmlentities($source_code);?></textarea>
</p>
<p>
<input name="submit" type="submit" value="Compile & Execute" class="button"/>
<input name="submit" type="submit" value="Salveaza" class="button"/>
</p>
</form>
Am idee cum se face da problema i ca nu am mai lucrat niciodata cu 2 inputuri de tip submit .