I have created a Macro that collects data from a web form(text boxes, radio buttons, etc.) and puts those results into a message box. I would like to put those results into an HTML form. Can anyone give me some advice on how to do this? Any help would be greatly appreciated.
Thank you,
-brentmtc
Results into an HTML Form
Moderators: Dorian (MJT support), JRL
What about writing the results to a text file?Like so:
Then convert the text file to web.htm.. I think this is a great idea for Macro use.
Code: Select all
writeln>c:\web.txt,<html>
writeln>c:\web.txt,<head>
writeln>c:\web.txt,<title>Macro Results Web Page</title>
writeln>c:\web.txt,</head>
writeln>c:\web.txt,<body>
Writeln>c:\web.txt,<span>%Macro Data Collection%</span>
writeln>c:\web.txt,</body>
writeln>c:\web.txt,</html>
Results into an HTML Form
I used the code you suggested which turned my results into a text. I can open that text file and then save it as a .htm file then open that file and it displays my results in a browser. Can I use an HTTP_POSTFILES method to automate this process? For example:
// Get SubmitTest.txt to 'Post' by converting to SubmitTest.htm
Let>HTTP_POSTFILES=upload1=c:\Documents and Settings\*****\My Documents\Macro Scheduler\SubmitTest.txt
HTTPRequest>http://*************/FormAccept.aspx,,POST,,HTMLResponse
Thank you for your help,
-brentmtc
// Get SubmitTest.txt to 'Post' by converting to SubmitTest.htm
Let>HTTP_POSTFILES=upload1=c:\Documents and Settings\*****\My Documents\Macro Scheduler\SubmitTest.txt
HTTPRequest>http://*************/FormAccept.aspx,,POST,,HTMLResponse
Thank you for your help,
-brentmtc