fizix Posted January 26, 2007 Share Posted January 26, 2007 Why, when I insert:[code]<INPUT TYPE="hidden" VALUE="<img hspace=\"0\" border=\"0\" align=\"bottom\" src=\"http://www.onr.navy.mil/media/releases/image_gallery/images/hyfly_booster_test_vehicle_captive_carry.jpg\" />" NAME="content">[/code]in an HTML page, do I see:[code]" NAME="content">[/code]on the page? Link to comment https://forums.phpfreaks.com/topic/35864-solved-very-easy-one-i-hope/ Share on other sites More sharing options...
genericnumber1 Posted January 26, 2007 Share Posted January 26, 2007 You don't have to escape your quotes eg. \" when you're just doing HTML? and you're closing your tag prematurely..EDIT: nvm, just glanced, you were putting it in an input.. my bad, jesi's got it Link to comment https://forums.phpfreaks.com/topic/35864-solved-very-easy-one-i-hope/#findComment-170006 Share on other sites More sharing options...
Jessica Posted January 26, 2007 Share Posted January 26, 2007 Because that's what you wrote.Remove the />" before Name. Link to comment https://forums.phpfreaks.com/topic/35864-solved-very-easy-one-i-hope/#findComment-170008 Share on other sites More sharing options...
fizix Posted January 26, 2007 Author Share Posted January 26, 2007 [quote author=jesirose link=topic=124199.msg514247#msg514247 date=1169841004]Because that's what you wrote.Remove the />" before Name.[/quote]Then how do I submit an image tag as a $_POST to PHP? Link to comment https://forums.phpfreaks.com/topic/35864-solved-very-easy-one-i-hope/#findComment-170011 Share on other sites More sharing options...
Jessica Posted January 26, 2007 Share Posted January 26, 2007 You may have to wrap the value in htmlentities so that it prints the value of < and not the html tag <. I missed the beginning of the img where you're trying to pass a whole html tag. Try running the string through htmlentities() first Link to comment https://forums.phpfreaks.com/topic/35864-solved-very-easy-one-i-hope/#findComment-170017 Share on other sites More sharing options...
fizix Posted January 26, 2007 Author Share Posted January 26, 2007 Worked like a charm. Thanks! Link to comment https://forums.phpfreaks.com/topic/35864-solved-very-easy-one-i-hope/#findComment-170031 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.