Hello,
Im trying to build a database of game information based on this site: http://scene.releases.free.fr/index.php?page=list&p=nds&g=0
Here is what ive got so far:
The first bit works, I get a list of all the latest games from the rss feed and get the url for more of the information.
However when i get onto the form page i can't get the title of the game name, Not sure if im doing it right or not.
Any ideas what i can do to get it working ?
<?
if($_POST[gamelist]) {
preg_match_all("/<b>Title :<\/b><\/td><td>(.*?)<\/td><\/tr>/", $_POST['gamelist'], $matches, PREG_SET_ORDER);
print_r($matches);
?>
<form id="submitds" name="submitds" method="post" action="index.php?page=submit">
<p><strong>Grabbed Information</strong></p>
<p>TitleName:
<input type="text" name="r_name" id="r_name" value="<?php echo $title[1]; ?>" />
</form>
<?
}
echo "<center>";
echo "<h1>NDS ROM Info Grabber</h1>";
$url = file_get_contents("http://scene.releases.free.fr/rss.xml");
preg_match_all("/<title>(.*?)<\/title>/is", $url, $matches, PREG_SET_ORDER);
preg_match_all("/<link>(.*?)<\/link>/is", $url, $more, PREG_SET_ORDER);
$count = count($matches);
?>
<h2>NDS List</h2>
<form method="POST" action="index.php?page=nds-grab&status=add">
<p><select size="1" name="gamelist">
<option selected>- Select a Game -</option>
<?
for($i=0; $i<$count; $i++) {
?>
<option value="<?php echo $more[$i][1]; ?>"><?php echo $matches[$i][1]; ?></option>
<?
}
?>
<input type="submit" value="Submit" name="B1">
</form>