Jump to content
php.lv forumi

probleema ar POST


orion

Recommended Posts

vaardu sakot vajag, lai no formas, kur dati ieguuti no db, infa paariet uz naakamo failu turpmaakai apstraadei. [datu dzeeshanai].

Tjip:

<form action="deliit.php" method="post" name="action_table">
<input name="iidee" type="text" disabled="true" value="
<?php echo $row['id']; ?>
" size="3"><br>
<input name="submit" type="submit">
</form>

un otraa pusee:

<?php
include'../var/vars.php';

$iidee=$_POST['iidee'];
echo"izdzeesu rakstu ar ID: $iidee ";
mysql_query("DELETE FROM dati WHERE id='$iidee'")
or die(mysql_error());

?>

Nuu un otraa pusee $iidee paliek tukshs... Kaapeec??? Tjip ieprieksh viss no visaam formaam taalaak aizgaaja?? Tur gan nebija dati, njemti no db...

Edited by orion
Link to comment
Share on other sites

×
×
  • Create New...