The following new message has been posted on Phorm Support Forum at <http://www.phorm.com/support/>. *************************************************************************** MESSAGE: (#3234) Re: Working with online orders <http://www.phorm.com/support/?rev=3234> AUTHOR: Holotech DATE: September 21, 2003 at 3:53 p.m. EST Reply To: (#3214) Working with online orders Author: Neil Clauson Date: September 16, 2003 at 3:35 p.m. EST > Specifically, I have one variable from the html form > called {{num_products_ordered}} > Then I have {{product1}} {{product2}} {{product3}} > {{productN}} (where N=num_products_ordered, of course) > N can be up to 30 > I don't want to have to type out: > $PHORM_LOGVAR = "product1 product2 product3 > product4 ....."; > I'd rather to some PHP processing before hand, create > the string, and then have: > $PHORM_LOGVAR = generated_string_for_logvar; Something like this: for ($ix=1; $ix<=$num_products_ordered; $ix++) { $var = "product$ix"; if (strlen($LogVars)) $LogVars.= " "; $LogVars.= $$var; } I know that's probably a little arcane, but basically it's looping N times. $var is where you get your product1, product2, etc. Then $$var gives you the value of that variable, and assigns it to $LogVars. After that you would then do $PHORM_LOGVARS = $LogVars; > Also, can I do PHP processing in email.txt (i.e. the > file that gets sent to the user) or responder.txt (for > the email back to my order entry clerk) for the same > type of thing. Well you can't actually have PHP code *in* those templates, but you can do whatever processing desired in your config file, and display the result in those templates with {{}}. *************************************************************************** This is an automatically-generated notice. If you'd like to be removed from the mailing list, please visit Phorm Support Forum at <http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx If you wish to respond to this message, please post your response directly to the board. Thank you! ------------------------------------------------- You are receiving this message because you are subscribed to the Phorm mailing list. To send messages to the mailing list, simply send email to phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe from the list by sending email to phorm-request@xxxxxxxxxxxxx with 'unsubscribe' in the SUBJECT field.