1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?php
$m=1;
while($m<=$cpt){
echo 'var tryit = document.getElementById("contact_'.$m.'_name").value;';
echo 'alert(tryit);';
$contact_name = echo 'document.getElementById("contact_"'.$m.'"_name").value;'; ;
$contact_position = echo 'document.getElementById("contact_"'.$m.'"_position").value;'; ;
$skype_contact = echo 'vdocument.getElementById("skype_"'.$m.'"_contact").value;'; ;
$networking_url = echo 'document.getElementById("networking_"'.$m.'"_url").value;'; ;
$contact_order = echo 'document.getElementById("contact_"'.$m.'"_order").value;'; ;
$contact_status = echo 'document.getElementById("contact_"'.$m.'"_status").value;'; ;
$query_insert2 = "INSERT INTO NETWORKINGPR (CPERSONNAME, CPERSONPOSITION, CSKYPE, CNETWORKINGURL, NORDERELEMENT, NESTADOID, NAGENCYACCOUNTSPRID, NUSUARIOPRID) VALUES ('".$contact_name."', '".$contact_position."', '".$skype_contact."', '".$networking_url."', '".$contact_order."', '".$contact_status."', '".$id."', '".$agency."');";
mysql_query($query_insert2,$db);
$m++;
}
echo "alert('This account has been successfully updated.');"; ?> |
Partager