norNerd Posted November 27, 2009 Share Posted November 27, 2009 Hey, im trying to send a image thru a url, image is sent as : <img href="" width="" height="" alt="" /> My image is outputed in allmost the right way, but it adds something extra to it :sHere is the not working URL: %3CIMG+src%3Dprodukter_org%2Flady%2Fprodukter_lady_normal.jpg%22+width%3D154+height%3D140%3E%3CBR And here is the working URL: %3CIMG+src%3Dprodukter_org%2Flady%2Fprodukter_lady_normal.jpg+width%3D154+height%3D140%3E%3CBR So you see, its actually just "%22" wich makes it a failure.Anyone know what i can do to remove the %22?Anyone know a easyer way to submit html thru a form or something? Without using post tho :)Kris Link to comment Share on other sites More sharing options...
jeffman Posted November 27, 2009 Share Posted November 27, 2009 Why do you want to send an image tag n the first place? Why not send just the image information in a normal query string?How are you creating this URL? Programmatically, using encodeURI(), or are you just letting a form generate it?Why are you double-posting? Link to comment Share on other sites More sharing options...
norNerd Posted November 27, 2009 Author Share Posted November 27, 2009 Why do you want to send an image tag n the first place? Why not send just the image information in a normal query string?How are you creating this URL? Programmatically, using encodeURI(), or are you just letting a form generate it?Why are you double-posting?Becouse my "script/program" needs me to do it.I'm letting my form generate it.I totally forgot, so removed my post from php forum and said that i posted it here insted, sorry for that.Kris Link to comment Share on other sites More sharing options...
jeffman Posted November 27, 2009 Share Posted November 27, 2009 Becouse my "script/program" needs me to do it.Are you sure it can't be redesigned? Obviously the technique is giving you problems. I've never seen anything like this done before. Through POST, yes. But never GET. It just feels wrong.Is the "script/program" third-party? Link to comment Share on other sites More sharing options...
norNerd Posted November 27, 2009 Author Share Posted November 27, 2009 Yes, i have this verry emotional WYSIWYG editor installed, and need to use that one :)My clients have to delete some part of the page without deleting the rest so need to save the content of page inside the url :)The content on page is inside textareas so difficult not refreshing a whole form with 4 different areas in it when i have to delete one of the textareas with content.All 4 areas is changeing ID and classes when the user uses them so hard to keep track of what happens in code.By this i think about deleteing with javascript's getElementById.Kris Link to comment Share on other sites More sharing options...
norNerd Posted November 27, 2009 Author Share Posted November 27, 2009 The content is later outputted with PHP's echo and get functions in the four textareas.Kris Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.