Find Jobs
Hire Freelancers

Bug fix? of php scriptable browser source

$10-30 USD

Terminado
Publicado hace casi 10 años

$10-30 USD

Pagado a la entrega
Hi. I am making some php program, using simple test browser (PHP scriptable browser). [login to view URL] I am accessing from [login to view URL] to [login to view URL] below. ====access.php=================================== $browser = new SimpleBrowser(); $browser->addHeader('User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11)'); $browser-> useCookies(); $browser-> useFrames(); $browser->get("http://foobar/[login to view URL]"); $browser->setField("aa", "2"); $browser->setField("bb","2014/06/03"); $browser->clickSubmit("se"); echo $browser->getContent(); ======================================= ===test.php=================================== <form name="test" method="post" action=""> <input type="radio" name="aa" VALUE="1" CHECKED> <input type="radio" name="aa" VALUE="2"> <SELECT NAME="bb"> <OPTION VALUE="2014/05/30">z <OPTION VALUE="2014/06/02">a <OPTION VALUE="2014/06/03">b <OPTION VALUE="2014/06/04">c <OPTION VALUE="2014/06/05">d <OPTION VALUE="2014/06/06">e <OPTION VALUE="2014/06/09">f <OPTION VALUE="2014/06/10">g </SELECT> <input type="submit" value="se" name="send"> </form> <?php if(isset($_POST['send'])){ var_dump($_POST); } ===================================== But the var_dump() of [login to view URL] (result of [login to view URL]) gets like this ===================================== array 'aa' => string '2' (length=1) 'bb' => string '' (length=0) 'send' => string 'se' (length=2) ===================================== The problem is it gets empty data of 'bb'. The last post() method does not output proper data against select sentence of html. So, please fix this setField() function bug of scriptable browser class source, At last, I will rewrite the source of class by own. So please tell me where to rewrite. If this is just my mistaken or misunderstandinga of using this php scriptable browser, then please notify me. At that time, I will send milestone to you as fee of the information. If there is some comments or notifications, I'm glad to hear. Thanks.
ID del proyecto: 6006575

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
You aren't closing your option tags. You'll need to do that and then the code should work properly. Example: <select name="bb"> <option value="2014/05/30">z</option> <option value="2014/06/02">a</option> </select> etc.
$15 USD en 1 día
5,0 (7 comentarios)
2,2
2,2
2 freelancers están ofertando un promedio de $25 USD por este trabajo
Avatar del usuario
一个有效的提议尚未被提供
$34 USD en 1 día
5,0 (16 comentarios)
4,4
4,4

Sobre este cliente

Bandera de JAPAN
ichihara-shi, Japan
5,0
8
Miembro desde ene 23, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.