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? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
fizix Posted January 26, 2007 Author Share Posted January 26, 2007 Worked like a charm. Thanks! 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.