darkfreaks Posted January 21, 2010 Author Share Posted January 21, 2010 is there a way where i can replace the regex to account for trailing and leading whitespace? Quote Link to comment https://forums.phpfreaks.com/topic/189215-using-file_get_contents/page/2/#findComment-999206 Share on other sites More sharing options...
teamatomic Posted January 21, 2010 Share Posted January 21, 2010 Why? The line is already trimmed. $line=trim($line); HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/189215-using-file_get_contents/page/2/#findComment-999209 Share on other sites More sharing options...
darkfreaks Posted January 21, 2010 Author Share Posted January 21, 2010 neverminf i have to make up new reasons Quote Link to comment https://forums.phpfreaks.com/topic/189215-using-file_get_contents/page/2/#findComment-999211 Share on other sites More sharing options...
darkfreaks Posted February 1, 2010 Author Share Posted February 1, 2010 okay so i put everything in a new file called ajax.php and put the form to onsubmit="showmodalbox('ajax.php',width:500;)return false;" now it returns the first if statement only any reason why? Quote Link to comment https://forums.phpfreaks.com/topic/189215-using-file_get_contents/page/2/#findComment-1005192 Share on other sites More sharing options...
darkfreaks Posted February 19, 2010 Author Share Posted February 19, 2010 hate to bring this up but my form is outputting some javascript function i didnt do anything to the form how do i fix this Quote Link to comment https://forums.phpfreaks.com/topic/189215-using-file_get_contents/page/2/#findComment-1014674 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.