Visual Basic - sincronización vb y html

Life is soft - evento anual de software empresarial
 
Vista:

sincronización vb y html

Publicado por flako (1 intervención) el 06/01/2005 00:17:36
por un lado tengo una aplicación con dos textbox id y mensaje y un command button enviar y por otro lado hay un website www.skytel.com.co que tiene dos campos en un form html y submit, quiero que mi aplicacion haga lo mismo sin necesidad de abrir internet explorer y que al darle en enviar me envie el mensaje como si fuera de internet además cuando salga la confirmacion informarme en mi programa si fue exitoso o no.
Muchas gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:sincronización vb y html

Publicado por Cecilia Colalongo (3116 intervenciones) el 06/01/2005 10:54:40
Fijate con esto, primero tienes que agregar la referencia a XML en tu proyecto:

Dim xmlhttp As MSXML2.ServerXMLHTTP40

Set xmlhttp = New MSXML2.ServerXMLHTTP40

xmlhttp.open "POST", "http://mail.skytel.com.co/web/procesa.php", False

xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"

xmlhttp.send "tipo=1&msgtype=normal&action=enviar&prefijo=750&pin=<codigo>&usec=<clave>&msg=<mensaje>"

Debug.Print xmlhttp.responseText
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar