Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating HTML
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00423107
Message ID:
00423259
Views:
18
Michelle,

All the Q&A articles and index for my website are generated by TEXTMERGE code. I also use VFP code to build a site for my dad that slices and dices a membership roster database several ways. FWIW I think it's better than builing one huge string that you have to keep adding to:
\<<PGHEADER>>
scan
   \<<table.field>>
endscan
\<<PGFOOTER>>
Instead of
lcHTML = PGHEADER
scan
   lcHTML = lcHTML + transform( table.field )
endscan
lcHTML = lcHTML + PGFOOTER
At any rate generating HTML with VFP is extremely easy.

>My husband runs a website that could really use a database. Unfortunately, the server it's on doesn't allow any kind of CGI or ASP or anything. So what he wants me to do is write a VFP program that he can run on his desktop that will maintain the database and generate HTML pages. He'll then upload the HTML pages to the server.
>
>Any suggestions for the best way to do the HTML part? I was thinking of the "textmerge" command since it's just text. I've never used it before, but from poking around in the help, it looks like it will do what I need.
>
>Basically, I'll have a template of all the HTML code and I just need to fill in the parts that are variable.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform