Afficher un message
Vieux 08/04/2008, 13h10   #2
Erwin Moller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: remote submit... is it possible?

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&amproject=2&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&amproject=2" method="post">
> and the button is a stupid <button accesskey="s" type="submit">Add
> this task</button>
>
> Can someone me, please?
> TiA
> Mauro

  Réponse avec citation
 
Page generated in 0,05696 seconds with 9 queries