а если true - то не переходит?если возвращает
"false" то переходит на следующую строку
мля.и т.д.
(cond
((> (atoi pr8) d) (setq color (strcat " #FF4040 ")))
((= (atoi pr8) d) (setq color (strcat " pink ")))
((< (atoi pr8) d) (setq color (strcat " #458B74 ")))
(t (princ))
)
<html>
[url]http://localhost/form_info.htm[/url]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=hebrew">
<title>Rafi Shapira & son</title>
</head>
<body>
<h3>test form</h3>
<form name="form1" method="post" action="put_to_db.php">
<p><span>Data_En: </span>
<input type="text" name="text1">
</p>
<p><span>Customer: </span>
<input type="text" name="text2">
</p>
<p>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</p>
</form>
</body>
</html>
<?php
// [url]http://localhost/put_to_db.php[/url]
$host = "localhost";
$user = "vldsa";
$password = "12345";
$db = "client";
if (!mysql_connect($host, $user, $password))
{
echo "<h2>MySQL Error!</h2>";
exit;
}
mysql_select_db($db);
$query = "INSERT INTO `Info` ( `NPP` , `CURDATE` , `DATE` ,
`CUSTOMER` , `MAN_NO` , `ORD_NO` , `CUST_NO` , `DATE_EX` )
VALUES ('6', CURDATE( ) , '2007-10-16', $_POST['text1'], $_POST['text2'],
'24555', '214456', '2007-10-25')";
mysql_query($query) or die(mysql_error());
echo "Informacija o vas zanesena v tablicy.";
mysql_close();
?>
VALUES ('6', CURDATE( ) , '2007-10-16', $_POST['text1'], $_POST['text2'],
$query = ("DELETE FROM `Info` WHERE `MAN_NO` IN (9001)");
$query = ("DELETE FROM `Info` WHERE `MAN_NO` IN" (.$_POST['text4'].));