Webstatt.org - Community seit 2006 - 2012 (2024?)

Selectboxen

user-308
08.07.2006 18:02

Hallo leute,

habe erneut ein kleines problem. ich rufe in meinem Adminbereich den Inhalt der Seite mit Selectboxen auf. Jetzt möchte ich wissen wie ich das so mache das wenn ich keine box auswähle das der Text ausgegeben wird "bitte wählen sie den Bereich aus".


<?
if($_SESSION['admin']=="0" OR $_SESSION['admin']=="10101"zwinkern {

if($_POST[select]==""zwinkern {
$select = $_GET[select];
} else {
$select = $_POST[select];
}
?>
<script>
function winopen() {

var popUpSizeX=730;
var popUpSizeY=650;


var popUpLocationX=25;
var popUpLocationY=02;


var popUpURL="../druck.php?modul=<? echo $_GET[modul]; ?>&amp;id=<? echo $_GET[id]; ?>&amp;select=<? if($_POST[select]==""zwinkern { echo $_GET[select]; } else { echo $_POST[select]; } ?>";


splashWin = window.open("",'x','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0'zwinkern;

splashWin.blur();
window.focus();

splashWin.resizeTo(popUpSizeX,popUpSizeY);
splashWin.moveTo(popUpLocationX,popUpLocationY);
splashWin.location=popUpURL;
splashWin.focus();
}
</script>
<b>LAdminbereich</b><br>
<br>
<form name="versand" method="POST" action="admin.php?modul=nih_liste">
<table width="560">
<tr>
<td width="140" align="center" class="bgcolor2"><label>
<input type="radio" name="select" value="Feld1" />
Feld1</label></td>
<td width="140" align="center" class="bgcolor2"><label>
<input type="radio" name="select" value="Feld2" />
Feld2</label></td>
<td width="140" align="center" class="bgcolor2"><label>
<input type="radio" name="select" value="Feld3" />
Feld3</label></td>
<td width="120" align="center" class="bgcolor2"><span class="bgcolor1">
<input type="hidden" name="send" value="send" />
</span>
<input name="submit" type="submit" value="Anzeigen" /></td>
</tr>
</table>
</form>