allora vorrei dare un alertma che al posto di prova mi metta un get cioè vi spiego io ho messo per esempioCodice PHP:
<script>alert('prova')</script>
come far si che esca un alert con il tuo nome?Codice PHP:
$_GET['nome']
Printable View
allora vorrei dare un alertma che al posto di prova mi metta un get cioè vi spiego io ho messo per esempioCodice PHP:
<script>alert('prova')</script>
come far si che esca un alert con il tuo nome?Codice PHP:
$_GET['nome']
Così dovrebbe funzionare (ovviamente se il file ha estensione .php)Codice HTML:<script type="text/javascript">
alert('<?php echo $_GET['nome']; ?>');
</script>