1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
exemple le formulaire envoi ceci
client = "xxx";
suffixe = "GRG";
name_file = "cl:de:fr:gt:rt:df";
extension = "dll";
source = "\\131.111.2.135\";
cible = "C:\test\";
type = "1";
$client = $_POST['client'];
$suffixe = $_POST['suffixe'];
$name_file = $_POST['name_file'];
$extension = $_POST['extension'];
$source = $_POST['source'];
$cible = $_POST['cible'];
$type = $_POST['type'];
mysql_connect ( "localhost" , "root" , "" ) ;
mysql_select_db ("db") ;
mysql_query ("INSERT INTO client (id,client,suffixe,extension,source,cible,name_file,type) VALUES ('','$client', '$suffixe', '$extension', '$source', '$cible', '$name_file', '$type') ");
mysql_close() ; |
Partager