Click here to get back home

remote submit... is it possible?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
remote submit... is it possible? Mauro 04-08-2008
Posted by Mauro on April 8, 2008, 6:25 am
Please log in for more thread options
Hi,
I'm trying to remote-control a site over which I have little control
(it is a php app I installed on MY site, but I would like to leave it
alone as much as possible).
This app presents a series of forms to do various things.
I can pre-fill the forms just manipulating the URL (*veeeery* long
URLs, but it works).

The problem:
I still have to manually hit the [submit] button.
Is there a way to force it programmatically?

The form is a <form enctype="multipart/form-data" action="http://
192.168.0.222/index.php?do=newtask&amp;project=2" method="post">
and the button is a stupid <button accesskey="s" type="submit">Add
this task</button>

Can someone help me, please?
TiA
Mauro

Posted by Erwin Moller on April 8, 2008, 8:10 am
Please log in for more thread options
Mauro schreef:
> Hi,

Hi Mauro,

> I'm trying to remote-control a site over which I have little control
> (it is a php app I installed on MY site, but I would like to leave it
> alone as much as possible).
> This app presents a series of forms to do various things.
> I can pre-fill the forms just manipulating the URL (*veeeery* long
> URLs, but it works).
>
> The problem:
> I still have to manually hit the [submit] button.
> Is there a way to force it programmatically?

Post a form on a page you have before you?
Hit the Enterbutton works on most browsers.

I am not sure I can follow you however: You do not mind creating
horrible URLs, but you DO mind pressing the submit button?

Anyway, with a small modification in the page you can make it autosubmit
via javascript.
For example:
index.php?do=newtask&amp;project=2&amp;autosubmit=Y

Then from index.php:
check if autosubmit is in the URL, and if it is, do something like:
document.forms.myform.submit();

For that to work you must change your site of course. (You know: the one
you didn't want to change.)

Regards,
Erwin Moller

>
> The form is a <form enctype="multipart/form-data" action="http://
> 192.168.0.222/index.php?do=newtask&amp;project=2" method="post">
> and the button is a stupid <button accesskey="s" type="submit">Add
> this task</button>
>
> Can someone help me, please?
> TiA
> Mauro

Posted by Scott Bryce on April 8, 2008, 10:14 am
Please log in for more thread options
Mauro wrote:
> I'm trying to remote-control a site over which I have little control

Perl, and I am sure other languages as well, has the capability to
submit information to a form on a web page that you do not have visible
in a browser.

Posted by Mauro on April 8, 2008, 11:00 am
Please log in for more thread options
> Mauro wrote:
> > I'm trying to remote-control a site over which I have little control
>
> Perl, and I am sure other languages as well, has the capability to
> submit information to a form on a web page that you do not have visible
> in a browser.

Thanks,
that's exactly what I need.
Do You have specific pointers?
I would hate to browse hundreds of packages on CPAN only to discover I
chose the wrong one.

TiA
Mauro

Similar ThreadsPosted
Please advise re: linking to remote text! June 2, 2005, 9:17 am
... storage for remote loading or as a door or signpost to another home page November 14, 2007, 6:05 pm
Content accessable remote with Firefox but not IE, while accessable with both locally? November 5, 2006, 5:21 am
Re: HTML - submit May 19, 2008, 9:30 am
Re: HTML - submit May 19, 2008, 10:14 am
Submit a form with hyperlink August 6, 2004, 11:56 pm
input submit weirdness--help September 22, 2004, 1:15 am
Submit a form without using a button? December 24, 2004, 4:26 pm
CSS submit button problem March 17, 2005, 1:08 pm
Form submit problem in IE March 31, 2006, 7:41 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap