x000x01 Posted February 20, 2009 Report Share Posted February 20, 2009 (edited) Man ir editbox ar nosaukumu "firstname" un poga ar nosaukumu "startcalc". Kā lai es izdaru tā, ka pēc pogas nospiešanas tas, kas ir iekš "firstname" tiek piešķirts kādam mainīgajam, piemēram $firstname. <INPUT type="text" name="firstname"><BR> <INPUT type="submit" value="Calculate" name="startcalc"> <?php /* TODO: Add code here */ ?> Jau atradu. <html> <form action="index.php" method="post"> <INPUT type="text" name="firstname" align="center"><BR> <INPUT type="submit" value="Calculate" name="startcalc" align="center"> </form> </html> <?php /* TODO: Add code here */ echo("Welcome, " . $_POST["firstname"]); ?> Edited February 20, 2009 by x000x01 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.