Page 1 of 1

PHP filling out a remote form

Posted: Mon Dec 28, 2015 6:43 am
by suhib88
Hello All,

Kindly lets assume, a single web page that has two text boxes (e.g. First Name & Last Name) , a div , along with a button that calls a javascript function (Not submit button, just a regular button), the JS function then combine the first name and the second name and print the resulted full name onto the div within the same page.

Would you please advise how can i develop a small php page that fills out the above mentioned form and then click the button on the remote page.


Thank you all.

Re: PHP filling out a remote form

Posted: Mon Dec 28, 2015 1:41 pm
by requinix
Your PHP would have to execute Javascript, which is basically not possible. The best way is to automate it through an actual browser.

Re: PHP filling out a remote form

Posted: Mon Dec 28, 2015 2:34 pm
by suhib88
Thanks alot