Best way to pass variables ?
Posted: Mon Aug 16, 2004 10:51 pm
Hi, I was just wondering what the best method is to pass variables in php. I know how to pass variabes, but the problem is this; I have a number of form elements (around 20) that I am passing between a couple of pages and eventually using to structure an e-mail. The concern I have is that by the end of passing all the variables I will have a stupidly long address with (20) "&var=$blah". I'm not sure whether this is particularly a problem, just wondering if there was a better or alternate way to do this.
If possible I don't want to use a database for this as there is no real need to keep the values from the form(s) after the end e-mail has been sent. I was also thinking of cookies, but not sure whether that would be a better method or not? thanks.
Steve.
If possible I don't want to use a database for this as there is no real need to keep the values from the form(s) after the end e-mail has been sent. I was also thinking of cookies, but not sure whether that would be a better method or not? thanks.
Steve.