There are two problem here. One is that these fields:

<input value="783531473471" type="hidden" name="_formkey" />
<input value="default" type="hidden" name="_formname" />

are web2py fields so they are not necessary if you post to a PHP action. 

The other, and major, problem is with this action=
"/var/www/en/gps/connect.php" 
That cannot be. That is a OS path, it is not a URL. The action must be the 
URL associated to the php page.
In order to have a URL for it you must serve PHP pages. If the page resides 
on the same server, you must have a web server configured to serve both 
web2py and php pages.

Massimo

On Friday, 11 October 2013 05:57:11 UTC-5, khaireddine Rezgui wrote:
>
> Hi,
> Is there a way to invoke a php file using web2py ?
> I tried like this :
> <form enctype="multipart/form-data" action="/var/www/en/gps/connect.php" 
> method="post">
> your name:
> <input name="name" />
> <input type="submit" />
> <input value="783531473471" type="hidden" name="_formkey" />
> <input value="default" type="hidden" name="_formname" />
> </form>
> but it didn't work
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to