1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <%
Dim app_name, app_firstname, app_id_geode, nouvel_agent
app_id_geode = Request.QueryString("id_geode")
Dim Conn, RsUser
Set Conn = Server.CreateObject("ADODB.Connection")
Set RsUser = CreateObject("ADODB.Recordset")
verif_connexion bdd_sql, Conn
nouvel_agent = "INSERT INTO agent(matricule, id_geode, civilite, nom, prenom) " _
+ "VALUES agent.matricule='"& id_rh_agent_creation &"', agent.id_geode='"& id_rh_agent_creation &"', agent.civilite='"& civilite_agent_creation &"', " _
+ "agent.nom='"& nom_agent_creation &"', agent.prenom='"& prenom_agent_creation &"' "
RsUser.open nouvel_agent, Conn
id_rh_agent_creation = Request.Form ("document.frm_agents_creation.txtBxIdRh")
civilite_agent_creation = Request.Form ("document.frm_agents_creation.txtBxCivilite")
nom_agent_creation = Request.Form ("document.frm_agents_creation.txtBxNom")
prenom_agent_creation = Request.Form ("document.frm_agents_creation.txtBxPrenom")
%> |
Partager