PHP filling out a remote form

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
suhib88
Forum Newbie
Posts: 2
Joined: Mon Dec 28, 2015 5:53 am

PHP filling out a remote form

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP filling out a remote form

Post 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.
suhib88
Forum Newbie
Posts: 2
Joined: Mon Dec 28, 2015 5:53 am

Re: PHP filling out a remote form

Post by suhib88 »

Thanks alot
Post Reply