GET Method

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

GET Method

Postby Otto » Thu Apr 02, 2020 12:02 pm

Question on SLACK
A question I have ...
An application / web page, for example the hblog, opens by default with index.prg ...
How can I send a parameter to index.prg and receive it to be able to use it in the application / website ???
Imagine that I have a desktop application to which I send you to open my website, but I need to know that it is "so-and-so" who calls me on the website.
mi.ip.mi.web / index.prg <parameter>
This is what would be more or less
And then in my web application, just like this ...
myparameter: = PValue (1)

Please call like this: index.prg?name1=value1&name2=value2

your index.prg
Code: Select all  Expand view

function Main()
   local hPairs :=  AP_Args()
 
   ? ValToChar( hPairs )
 
return nil
 



https://www.w3schools.com/tags/ref_httpmethods.asp
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 11 guests