Venice Posted October 11, 2011 Share Posted October 11, 2011 Im just try this with javascript http://swatsamp.net/test.php how to do like this on php using with input type text and button ? Reply fast Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/ Share on other sites More sharing options...
AyKay47 Posted October 11, 2011 Share Posted October 11, 2011 ajax Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278233 Share on other sites More sharing options...
Venice Posted October 11, 2011 Author Share Posted October 11, 2011 What ? Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278236 Share on other sites More sharing options...
Adam Posted October 11, 2011 Share Posted October 11, 2011 "Reply fast" - perhaps a bit of courtesy, Venice? We're not here to fall over ourselves trying to answer your very basic and well documented PHP questions. Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278238 Share on other sites More sharing options...
Venice Posted October 11, 2011 Author Share Posted October 11, 2011 why image not show when type test.php <html> <body> <form action="welcome.php" method="post"> InGame Nick: <input type="text" name="fname" /> Confirm Nick: <input type="text" name="iname" /> <input type="submit" /> </form> </body> </html> welcome.php <html> <body> This is your Status Signature Link http://swatsamp.net/swat.php?nick=<?php echo $_POST["fname"]; ?><br /> <img src="http://swatsamp.net/swat.php?nick=$_POST["fname"]" alt="swat" width="200" height="80"> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278247 Share on other sites More sharing options...
AyKay47 Posted October 11, 2011 Share Posted October 11, 2011 this is your image source.. http://swatsamp.net/swat.php?nick=$_POST["fname"] clearly invalid.. use a path not a link... didn't parse your $_POST['fname'] either. Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278251 Share on other sites More sharing options...
Venice Posted October 11, 2011 Author Share Posted October 11, 2011 yeh that is how to use in img src ? Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278256 Share on other sites More sharing options...
AyKay47 Posted October 11, 2011 Share Posted October 11, 2011 <img src='path/to/img.jpg' /> Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278258 Share on other sites More sharing options...
Venice Posted October 11, 2011 Author Share Posted October 11, 2011 like this ? <img src="http://swatsamp.net/swat.php?nick=$_POST["fname"]" alt="swat" width="200" height="80"> this not working Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278260 Share on other sites More sharing options...
AyKay47 Posted October 11, 2011 Share Posted October 11, 2011 how is the image that you are trying to show being created? what directory are you storing it in? Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278264 Share on other sites More sharing options...
ZulfadlyAshBurn Posted October 11, 2011 Share Posted October 11, 2011 <img src="http://swatsamp.net/swat.php?nick=<?php echo $_POST['fname']?>" alt="swat" width="200" height="80"> try this. Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278268 Share on other sites More sharing options...
Venice Posted October 12, 2011 Author Share Posted October 12, 2011 <img src="http://swatsamp.net/swat.php?nick=<?php echo $_POST['fname']?>" alt="swat" width="200" height="80"> try this. work thanks Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278470 Share on other sites More sharing options...
ZulfadlyAshBurn Posted October 12, 2011 Share Posted October 12, 2011 no prob edit: actually AyKay47 pointed it out but you didn't get it. Quote Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278524 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.