buzzbuzz
11-10-2002, 01:41 PM
Here's the situation:
I have a multipage form script that basically just moves the user from page 1 to the last page in a form while using hidden to save all the form variables while it goes along. When the user hits submit it goes to a thankyou page as well as sending off an email to a certain address.
Now the problem...
This is a 200+ field form, and the receiver wants the data completely formatted in html in their email. Fine...did that, but the HTML for this part is extremely long, and I don't want to include it in the actual program (as I have several different forms to use this multipage form script with)...making it extremely large.
I want to read in the HTML that will be sent in the email. I cannot figure out how to evaluate a hash in a file that is read in. I can do it with a normal string variable :
$line =~ s/(\$\w+)/$1/eeg;
but cannot figure out how to read in a file and evaluate the hashes in it. I've already tried saving a hash value into just a key variable ... didn't work either.
If anyone out there has ANY suggestions it would truly be appreciated!
Thanks in advance...
I have a multipage form script that basically just moves the user from page 1 to the last page in a form while using hidden to save all the form variables while it goes along. When the user hits submit it goes to a thankyou page as well as sending off an email to a certain address.
Now the problem...
This is a 200+ field form, and the receiver wants the data completely formatted in html in their email. Fine...did that, but the HTML for this part is extremely long, and I don't want to include it in the actual program (as I have several different forms to use this multipage form script with)...making it extremely large.
I want to read in the HTML that will be sent in the email. I cannot figure out how to evaluate a hash in a file that is read in. I can do it with a normal string variable :
$line =~ s/(\$\w+)/$1/eeg;
but cannot figure out how to read in a file and evaluate the hashes in it. I've already tried saving a hash value into just a key variable ... didn't work either.
If anyone out there has ANY suggestions it would truly be appreciated!
Thanks in advance...