I gang

Bug fix? of php scriptable browser source

Hi.

I am making some php program, using

simple test browser (PHP scriptable browser).

[url removed, login to view]

I am accessing from [url removed, login to view] to [url removed, login to view] 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/[url removed, login to view]");

$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 [url removed, login to view] (result of [url removed, login to view]) 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.

Færdigheder: PHP, Software Arkitektur

Se mere: php string to html, php bb, mozilla bug, form php, clicksubmit, bug html, bb me, program test php, submit data php simple, windows send notifications, bug fix php, php post array, php post value, rewrite function php, php form array, php form post array, php form action, notifications php, php value post, php form array post, simple user access php, php form input data, browser test, select name, php mysql bug fix

Om arbejdsgiveren:
( 8 bedømmelser ) ichihara-shi, Japan

Projekt-ID: #6006575

Tildelt til:

prstben

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> </se Mere

$15 USD på 1 dag
(7 bedømmelser)
2.2

2 freelancere byder i gennemsnit $25 for dette job

dabing1205

一个有效的提议尚未被提供

$34 USD på 1 dag
(16 bedømmelser)
4.4