Hello there,
I'm very very new to PHP, and I'm just practicing with a few basic scripts to try to get me to learn new techniques and such.
I'm trying to make a PHP Script that when a person enters their gamertag into the field it demonstrates their gamertag in an image. Here is the current code I have, which does not work:
<html>
<body>
<form action="index.php" method=POST>
<input type=text name=live>
<input type=submit value="Generate Gamertag">
<?php
$live=$_POST['live'];
<br>
<a href="http://profile.mygamercard.net/"$live"">
<img src="http://card.mygamercard.net/"$live".png" border=0>
</a>
</body>
</html>
I'm basically trying to make it so that when the user enters their Gamertag into the "live" field, it automatically puts it into the URL under the "$live" variable.
Thanks for all the help and please bare with me.