Goins Posted May 21, 2008 Share Posted May 21, 2008 Hey everyone! i need help on real simple script. Its for a myspace script im trying to desgin. What i need it to do is when they enter a url of an image in a url box and click post it submits to a page and it adds the url to the Code. Such as if the image was http://google.com/image.jpg and they hit post it shows. So everytime some just post the url it will just change the image url code part. <style> .i {display:none;} table table div {width:295px; height:51px;} table div table div, table table td.text div, div table table div, table table table div {width:auto; height:auto;} [b]table table div {background-image:url(http://google.com/image.jpg);[/b] background-repeat:repeat-x; background-position:LEFT TOP;} table div table div, div table table div, table table table div, table table td.text div {background-image:none;} table table div object, table table div embed {-moz-opacity:0.2; filter: alpha(opacity=20);} table table table div object, table table table div embed, table table td.text div object, table table td.text div embed {-moz-opacity:1.0; filter:none;} </style> Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/ Share on other sites More sharing options...
nloding Posted May 21, 2008 Share Posted May 21, 2008 Yeah, you'd need to post your ACTUAL code, not the CSS design for it. Does MySpace have an API and/or allow code like that? I thought they just allowed CSS/XHTML and minor Javascript? Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/#findComment-546775 Share on other sites More sharing options...
947740 Posted May 21, 2008 Share Posted May 21, 2008 He wants to take the image url from the url and display that picture as the background image. You would have to use PHP and $_GET['image'] to find the image url, and then you could put that variable in the CSS. Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/#findComment-546782 Share on other sites More sharing options...
nloding Posted May 21, 2008 Share Posted May 21, 2008 Ooo. I see it now ... Yeah, either $_POST or $_GET echo'd to the stylesheet. Again, I'm curious if MySpace allows that. Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/#findComment-546785 Share on other sites More sharing options...
947740 Posted May 21, 2008 Share Posted May 21, 2008 I doubt they would let you use php. Too risky. I believe they use PHP for the entire website? Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/#findComment-546787 Share on other sites More sharing options...
larrytruett Posted May 21, 2008 Share Posted May 21, 2008 I agree, I don't think MySpace will let you use any php at all. They won't even allow IFrames. I think the whole myspace site is cold fusion. Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/#findComment-546791 Share on other sites More sharing options...
Goins Posted May 21, 2008 Author Share Posted May 21, 2008 Hehe, Thanks. No its not for Myspace Its for my myspace resource site. It is used to desgin skins. I want to be able for them specify the image url and than create the code for the background. Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/#findComment-546818 Share on other sites More sharing options...
nloding Posted May 21, 2008 Share Posted May 21, 2008 Then you'd have an input with name='url' (or whatever you want to call it). Then submit the form to your form processing page. $_POST['url'] would be the URL they entered. Echo that into the stylesheet. Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/#findComment-546822 Share on other sites More sharing options...
Goins Posted May 21, 2008 Author Share Posted May 21, 2008 Hey I figured it out Thanks alot! Link to comment https://forums.phpfreaks.com/topic/106658-need-help-on-a-simple-script/#findComment-546831 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.