function regnumber() { var reg = document.myform.reg.value; if (reg == "") { alert (' Warning,\n\n You have not enter a registration number,\n so you have to enter all the informations manualy.'); valid = true; } else{ var ch = curl_init("http://www.monsitruc.php?reg="reg"/"); curl_setopt(ch, CURLOPT_TIMEOUT, 10); curl_setopt(ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt(ch, CURLOPT_RETURNTRANSFER, TRUE); var data = curl_exec(ch); curl_close(ch); valid = true; return data; } showLayer('page1'); }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question