Hi. I'm a real beginner of PHP. So if my question is so stupid, plz
understand me. Thx.
I made a file like following :
<form id="form1" name="form1" method="post" action="step2.p hp">
<table >
<tr>
<select name="EngineTyp e" id="EngineType" >
<?php
require('conf.p hp')
dbconnect();
$sql = 'SELECT * FROM dbo_EngineType;
$result = mysql_query($sq l) or die();
while( $row = mysql_fetch_arr ay($result) )
{
echo '<option
value="'.$row['iID'].'">'.strtouppe r($row['sDescription']).'</option>';
}
?>
</select>
</tr </table </form>
And another file have following code :
<?php
$EngineID = (int)$_POST['EngineType'];
?>
At here, How can I combine both file? I mean i want to define $EngineID
as 'EngineType' selected value(option). I don't know how can i change
$_POST part.
Thank you!
understand me. Thx.
I made a file like following :
<form id="form1" name="form1" method="post" action="step2.p hp">
<table >
<tr>
<select name="EngineTyp e" id="EngineType" >
<?php
require('conf.p hp')
dbconnect();
$sql = 'SELECT * FROM dbo_EngineType;
$result = mysql_query($sq l) or die();
while( $row = mysql_fetch_arr ay($result) )
{
echo '<option
value="'.$row['iID'].'">'.strtouppe r($row['sDescription']).'</option>';
}
?>
</select>
</tr </table </form>
And another file have following code :
<?php
$EngineID = (int)$_POST['EngineType'];
?>
At here, How can I combine both file? I mean i want to define $EngineID
as 'EngineType' selected value(option). I don't know how can i change
$_POST part.
Thank you!
Comment