ecko04 Posted January 28, 2009 Author Share Posted January 28, 2009 Same code, the only thing that would change is the $delimiter which is picked up from the form . I just tried it with a comma delimited file and it works great! You're the man!! What if I wanted to add a field to the form where the user could input at most 1 character and have it set as the delimiter? I believe I would have to have another field in the drop ox that says user and assign the field that they enter in that character into an array and read it in. Quote Link to comment https://forums.phpfreaks.com/topic/142713-solved-php-n00b-has-a-few-questions/page/2/#findComment-748215 Share on other sites More sharing options...
MadTechie Posted January 28, 2009 Share Posted January 28, 2009 You could just chec if its empty ie <input type="test" name="udelimiter"> if(get_magic_quotes_gpc()) { if(empty($_POST['udelimiter'])) { $delimiter = stripslashes($_POST['delimiter']); }else{ $delimiter = stripslashes($_POST['udelimiter']); } } else { if(empty($_POST['udelimiter'])) { $delimiter = $_POST['delimiter']; }else{ $delimiter = $_POST['udelimiter']; } } Quote Link to comment https://forums.phpfreaks.com/topic/142713-solved-php-n00b-has-a-few-questions/page/2/#findComment-748486 Share on other sites More sharing options...
ecko04 Posted January 28, 2009 Author Share Posted January 28, 2009 Last question.....can we swap brains because you are the man?!! Thanks so very much! Quote Link to comment https://forums.phpfreaks.com/topic/142713-solved-php-n00b-has-a-few-questions/page/2/#findComment-748542 Share on other sites More sharing options...
MadTechie Posted January 28, 2009 Share Posted January 28, 2009 LOL.. not if its going to be painful! Topic solved ? if so please click solved Quote Link to comment https://forums.phpfreaks.com/topic/142713-solved-php-n00b-has-a-few-questions/page/2/#findComment-748657 Share on other sites More sharing options...
ecko04 Posted February 2, 2009 Author Share Posted February 2, 2009 Done! Thanks again!! Quote Link to comment https://forums.phpfreaks.com/topic/142713-solved-php-n00b-has-a-few-questions/page/2/#findComment-752784 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.