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 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 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 ? 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. 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> 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. 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 ? 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' /> 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 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? 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. 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 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. Link to comment https://forums.phpfreaks.com/topic/248897-help/#findComment-1278524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.