flemingmike Posted June 18, 2010 Share Posted June 18, 2010 hello, how can i make a search button that when clicked, it takes the info from a text box and makes it a variable? im trying to make a search function that can return this page: <?php include("style.php"); $hmm = simplexml_load_file('http://www.durhamit.ca:8181/1.0/?method=database.search&searcharg=**TEXT BOX INFO HERE**'); foreach($hmm->tracks->track as $tracks) { $artist = $tracks->artist; $title = $tracks->title; $album = $tracks->album; $id = $tracks->id; echo '<table border="1" width="60%" align="center">'; echo '<tr>'; echo '<td width="25%">'.$artist.'</td>'; echo '<td width="25%">'.$title.'</td>'; echo '<td width="25%">'.$album.'</td>'; echo '<td width="25%"><a href="http://www.durhamit.ca:8181/1.0/?method=player.playDatabaseItem&id='.$id.'">Play</a></td>'; echo '</tr>'; echo '</table>'; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/205163-text-box-variable/ Share on other sites More sharing options...
Adam Posted June 18, 2010 Share Posted June 18, 2010 Do you simply mean..? http://www.php.net/manual/en/reserved.variables.get.php http://www.php.net/manual/en/reserved.variables.post.php Quote Link to comment https://forums.phpfreaks.com/topic/205163-text-box-variable/#findComment-1073893 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.