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? 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 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 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? 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 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
Archived
This topic is now archived and is closed to further replies.