SamDOD Posted November 30, 2006 Share Posted November 30, 2006 I have a PHP form and it works fine... I want to use the same form for a photo site that allows ppl to buy prints. Am wondering if there is a way, in a text box, to have the PHP count there items they input separated by commas? Meaning if they inputted "image1,image2,image3" the PHP would count 3 items. Then place that number as a variable so that I can show them how much it will cost for the items? Is this possible? or is there a better way? Thank you for your help. Link to comment https://forums.phpfreaks.com/topic/28990-help-with-a-php-form/ Share on other sites More sharing options...
kenrbnsn Posted November 30, 2006 Share Posted November 30, 2006 Look at the [url=http://www.php.net/explode]explode()[/url] function.Ken Link to comment https://forums.phpfreaks.com/topic/28990-help-with-a-php-form/#findComment-132802 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.