Deacon Frost
02-14-2008, 09:01 AM
It's a php form that I need to also edit, so I'm asking all of the questions here...
What i have:
<?php
include("/home/stage/public_html/css/inc/theaterconn.php");
$result = mysql_query("SELECT filmid,name FROM theater WHERE status=2") or die('mysql_error()' . 'Error: ' . mysql_errno() );
$row = mysql_fetch_assoc($result);
$filmid = $row['filmid'];
$name = $row['name'];
?>
<form action="theater.php" method="get">
<input type="submit" value=<img src="http://images.stage6.com/video_images/<? echo $filmid ?>t.jpg</img> <br /> <center> "<? echo $name ?>" </center> />
</form>
What I need it to do...
There's a few fields in the database. The only one I need it to send to theater.php in the get function is the "id" for the video. filmid is the code, but id is the unique video's, well, id.
What it will need to do is show 5 images where the status=2 (approved). These images are like above. <? echo $filmid ?> will finish the image, and $name is just the name of the movie. When this is clicked, I need it to use the method get to grab the id for the $filmid and $name image (form) clicked.
Basically (once I have this i can do everything else) I need an image on a form. Not a button, but a form. How do I put an image on a form?
What i have:
<?php
include("/home/stage/public_html/css/inc/theaterconn.php");
$result = mysql_query("SELECT filmid,name FROM theater WHERE status=2") or die('mysql_error()' . 'Error: ' . mysql_errno() );
$row = mysql_fetch_assoc($result);
$filmid = $row['filmid'];
$name = $row['name'];
?>
<form action="theater.php" method="get">
<input type="submit" value=<img src="http://images.stage6.com/video_images/<? echo $filmid ?>t.jpg</img> <br /> <center> "<? echo $name ?>" </center> />
</form>
What I need it to do...
There's a few fields in the database. The only one I need it to send to theater.php in the get function is the "id" for the video. filmid is the code, but id is the unique video's, well, id.
What it will need to do is show 5 images where the status=2 (approved). These images are like above. <? echo $filmid ?> will finish the image, and $name is just the name of the movie. When this is clicked, I need it to use the method get to grab the id for the $filmid and $name image (form) clicked.
Basically (once I have this i can do everything else) I need an image on a form. Not a button, but a form. How do I put an image on a form?