mwhuen
asked on
post and write a html at the same time
in my cgi program, I want to create xxx.html and at the same time I want to post this xxx.html in this cgi program, how can i do?
ASKER
yes, you understood my question.
but any other solution? if i use your solution above, my cgi program is too long!
but any other solution? if i use your solution above, my cgi program is too long!
another idea is that you can create the html file then when that's done send a redirect to the broswer by sending a
"Location:<new http file>\n\n" as a http header.
"Location:<new http file>\n\n" as a http header.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i think this method is better though i haven't try out.
Just print the info into a html file and also into the browser (no file handle).
Something like this :
print "Content-type: text/html","\n\n"; # MIME header
print HTMLFILE $String;
print $String;
and repeat it this way for all the data in the file.