FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour Receive Parameters from the URL line in Mod_Harbour
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Receive Parameters from the URL line in Mod_Harbour
Posted: Tue Mar 03, 2020 12:18 AM

How do I receive and parse out the parameters which have been passed to a mod_harbour program.
Sets say I am printing a report and I want to pass the account number month, and year of record.

Thanks,

Byron ...

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Receive Parameters from the URL line in Mod_Harbour
Posted: Tue Mar 03, 2020 05:52 AM
Byron,

test.prg?param1=Hello&param2=world

From test.prg call AP_Args()

Live sample:
https://www.modharbour.org/modharbour_samples/webservice.prg?param1=hello&param2=world
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion