in reply to problem with variable
if this is your problem, then it has nothing to do with variables, nor with Perl at all, but with a misunderstanding of how CGI works. you simply didn't pass anything from the form in the preview() sub (only action=add_data is there), so when your script executes again it obviously has no data.
if you don't post all the data (eg. month, date, year, title, message, etc.) again in hidden fields inside the preview() sub , you will have them empty on the second run.
hope this helps.
cheers,
Aldo
__END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print;
|
|---|