darkshad0w Posted April 18, 2011 Share Posted April 18, 2011 Hey so i need help searching for contacts in my telephone directory...how do i do that in my php? is it a form method or if statements? Link to comment https://forums.phpfreaks.com/topic/234090-php-directory/ Share on other sites More sharing options...
floridaflatlander Posted April 18, 2011 Share Posted April 18, 2011 Quote Hey so i need help searching for contacts in my telephone directory What kind of phone directory do you have? Link to comment https://forums.phpfreaks.com/topic/234090-php-directory/#findComment-1203180 Share on other sites More sharing options...
darkshad0w Posted April 18, 2011 Author Share Posted April 18, 2011 very simple type using form methods and $_GET global to retrieve information sample: form action="Addinfo.php" method="get">First Name <input type="text" name="first" size="15" /> Last Name <input type="text" name="last" size="15" /><br /> <br /> Address <input type="text" name="address" size="15" /> City <input type="text" name="city" size="15" /><br /> <br /> <select name="state"> Link to comment https://forums.phpfreaks.com/topic/234090-php-directory/#findComment-1203183 Share on other sites More sharing options...
floridaflatlander Posted April 18, 2011 Share Posted April 18, 2011 You could just use a table and sort any way you like if there aren't to many. Or use something simple in your sql like like. LIKE '%$first-name%' or something like that. Link to comment https://forums.phpfreaks.com/topic/234090-php-directory/#findComment-1203198 Share on other sites More sharing options...
darkshad0w Posted April 18, 2011 Author Share Posted April 18, 2011 not using any SQL/MYSQL in my coding so it would have to be through other means...when i type in a name it goes to my other php file to input name/or update (can't get update file to work either) Link to comment https://forums.phpfreaks.com/topic/234090-php-directory/#findComment-1203202 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.