DCXtreme Posted March 23, 2007 Share Posted March 23, 2007 Hi There, I have a question about a script I have written for http://www.dirtydragon.co.uk/customquote.php. After the user fills selects the activities and times and clicks submit they are taken to a page which lists all the information, including a list of all the activities they have chosen. The script works by looking for the checked tick boxes next to the activity name and if they are ticked that activity is listed, this works on a loop. However the user is also supposed to get an e-mail confirming the activities, this does not work, the user only gets the first activity picked up by the script. My question is, is there a way of storing the values of selected activities? bear in mind the user can select any number of activities! Code attached, any help VERY much welcome! [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/44047-solved-quote-script-question-probabbly-easy/ Share on other sites More sharing options...
DCXtreme Posted March 24, 2007 Author Share Posted March 24, 2007 Anyone? I am at my wits end with this! Quote Link to comment https://forums.phpfreaks.com/topic/44047-solved-quote-script-question-probabbly-easy/#findComment-214453 Share on other sites More sharing options...
MadTechie Posted March 24, 2007 Share Posted March 24, 2007 one quick way.. <?php //....Snip $activity_price = 0; break; } $theNames .= $activity_name; // <--- Add this //PRICE THE ACTIVITY X NUMBER OF PERSON $activities_totalprice =+ $activity_price*$activity_peopleNum; //.....Snip ?> Add $theNames in the $body (by the email) Quote Link to comment https://forums.phpfreaks.com/topic/44047-solved-quote-script-question-probabbly-easy/#findComment-214467 Share on other sites More sharing options...
DCXtreme Posted March 25, 2007 Author Share Posted March 25, 2007 Thats brilliant thanks alot, is there any way I could put a new line after each activity listed or even just a space? Quote Link to comment https://forums.phpfreaks.com/topic/44047-solved-quote-script-question-probabbly-easy/#findComment-214722 Share on other sites More sharing options...
MadTechie Posted March 25, 2007 Share Posted March 25, 2007 Sure theNames .= $activity_name."\n"; // <--- Add this (replace \n with anything ie <BR> or [space]) (remember click solved) Quote Link to comment https://forums.phpfreaks.com/topic/44047-solved-quote-script-question-probabbly-easy/#findComment-214861 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.