I am building an online survey for which the results will be appended to a delimited file. Each page's selections in the survey will be concatenated to the previous pages results until the survey is done... and then written to the delimited file.
What is the most efficient way to keep concatenating the results? I post the string in a hidden input field each page and then pull it down on the next page to concatenate the next field results to. At the end, I would like a CSV file with quotes around the string fields. I tried doing that from the beginning but the quotes mess it all up! (I tried addslashes & stripslashes... that may be the answer, just need some guidance.
I could use the tab delimiter... but wanted some expert advice!
$outputstring = "\t".$surveyid."\t".$firstname."\t".$lastname."\t".($_POST['outputstring']);
Any help would be appreciated!
Thanks,
Doug