Code: Select all
<?php
//Function determines weather or not the server is to be public or private
print "Choose weather your server is public or private, private servers require passwords to join:";
print "<br><select name="pubOrPiv">
<option>Public Server
</option>
<option>Private Server
</option>
</select>";
if ($pubOrPiv == Public Server) {
$value = $pubPrice;
} else if ($pubOrPiv == Private Server) {
$value = $prvPrice;
} //end if
print "<br><br>";
//END
?>I think I need an 'if' statement saying that if the option of the drop down menu equals "Public Server" then send and output the value "$pubPrice" and if the option equals "Private Server" then send and output the value "$prvPrice".
I think my thinking might be on the right track, but I have the slightest clue on the syntax as you see from my attempt