receiver19 Posted July 3, 2009 Share Posted July 3, 2009 Hello, I am quite new to php. Learning in progress! I have a question. For example, there is a form to allow user to fiill, etc: name: image.google.com host: google.com How can i check the google.com is matched with the name? Thank you very much, Link to comment https://forums.phpfreaks.com/topic/164625-how-to-matching-2-strings/ Share on other sites More sharing options...
HPWebSolutions Posted July 4, 2009 Share Posted July 4, 2009 Use the $_POST array if you are submitting your form with post, otherwise use $_GET if($_POST['name'] == 'google.com'){ // do something } Link to comment https://forums.phpfreaks.com/topic/164625-how-to-matching-2-strings/#findComment-868914 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.