FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Filling html form vars with values
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM

Filling html form vars with values

Posted: Sat Jan 05, 2008 11:14 AM

Hello,

Does anyone knows how to build a string to iexplore in order to open a page with the form vars already populated with values.

Antonio

Regards

Antonio H Ferreira
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM

Filling html form vars with values

Posted: Sat Jan 05, 2008 11:23 AM

Try to open the HTML file as a text file.
Change the value with strtran function
Save all as html file
Open this file with ie .

Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM

Filling html form vars with values

Posted: Sat Jan 05, 2008 12:14 PM

How can I fill it ?
html page is with a frontpage form.

Antonio

Regards

Antonio H Ferreira
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Filling html form vars with values

Posted: Sat Jan 05, 2008 12:21 PM

It's not so easy. You must identify the various input type tags and replace (or add) the value clause.

EMG

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Filling HTML with vars

Posted: Sat Jan 05, 2008 05:55 PM

I created a Form with Namo-Webeditor
with tables and more.
At all places where i want to see a var
i put the var-name like ?var1? ....
Afterwards i used a editor to replace the ?var?
with the database-fields like (1)->customer and so on.
Inside the html you can to calculations and more.
It works fine like that.

Greetings from Germany :lol:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Filling HTML with vars

Posted: Sat Jan 05, 2008 06:10 PM

Yes, nice solution if AHF is the author of those HTML pages.

EMG

Continue the discussion