Hi Leute!
Ich hab folgendes Konstrukt gebaut:
<?php do { ?>
<?php
$nummern = $row_alternativ['mobil'];
$msg = 'teil3';
$URL = 'teil1';
$rest = 'teil2';
$prall = "$URL$nummern$rest$msg";
?>
<?php } while ($row_alternativ = mysql_fetch_assoc($alternativ)); ?>
<script type="text/javascript">
function send(){
var test = $prall;
alert(test);
}
</script>
<form name="sms" action="" method="post">
<input type="submit" onClick="javascript:send();" name="Submit" value="Abschicken">
<input type="reset" name="erase" value="Zurücksetzen">
</form>
natuerlich fuktionert das nicht...
wie bekomme ich nun den inhalt der variable $prall
in mein javascript rein?
danke!!!!