toothmkr57 Posted November 4, 2008 Share Posted November 4, 2008 I have been searching for, and I think I found a customizable php button script, but I can't make it work, darnit... If someone would please help! This one was in the body, which quite honestly I would like something tidier if I could and have this a seperate php file. function button($text) { $enc_text = urlencode($text); echo ("<img src=\"button.php?$enc_text\" border=0 Alt=\"$text\">"); } ?> <P> <? button("hello") ?> <? button("How is life ?") ?> and this was the button.php file <? Header("Content-type: image/png"); $string=urldecode(implode($argv," ")); $im = imagecreatefrompng("media/button.png"); $orange = ImageColorAllocate($im, 220, 210, 60); $px = (imagesx($im)-7.5*strlen($string))/2; ImageString($im,3,$px,9,$string,$orange); ImagePng($im); ImageDestroy($im); ?> now I'll be honest I don't necessarily need this php script, but I do want something that would submit a url, that could be very neat and tidy in the html code, and could maybe switch a background image onclick that would make it look like something was active. Oh and I currently have and will continue to want a mouseover javascript, but hey if I could write it in to the php, that would be great too. Thanks for the help! Paul Quote Link to comment https://forums.phpfreaks.com/topic/131299-those-bless-ed-buttons/ Share on other sites More sharing options...
DeanWhitehouse Posted November 4, 2008 Share Posted November 4, 2008 Are you serious? We are here to help people with php problems, not write stuff for them. I suggest putting a request in the freelance forum. Quote Link to comment https://forums.phpfreaks.com/topic/131299-those-bless-ed-buttons/#findComment-681826 Share on other sites More sharing options...
toothmkr57 Posted November 4, 2008 Author Share Posted November 4, 2008 thank you for your suggestion Quote Link to comment https://forums.phpfreaks.com/topic/131299-those-bless-ed-buttons/#findComment-681831 Share on other sites More sharing options...
BoltZ Posted November 4, 2008 Share Posted November 4, 2008 Or you could actually try to do it yourself. We would "assist you" but not write it for you Quote Link to comment https://forums.phpfreaks.com/topic/131299-those-bless-ed-buttons/#findComment-681864 Share on other sites More sharing options...
toothmkr57 Posted November 4, 2008 Author Share Posted November 4, 2008 well that's kinda what I was getting at, which is why I posted the code I had. But mr. grumpypants just jumped my crap, which is the complete opposite experience that had with my last problem. But I guess that, unlike the last thread, I didn't particularly get into the fact that I am extrememly new at php and am wanting to learn, and just not have stuff handed to me. But all that being said, blade had a point, the way my post was written thats why I didn't make an issue of it. Anyway help would be nice, but whatever, I can find other stuff to different things other places as well. More than one way to skin a cat. Quote Link to comment https://forums.phpfreaks.com/topic/131299-those-bless-ed-buttons/#findComment-681944 Share on other sites More sharing options...
DeanWhitehouse Posted November 4, 2008 Share Posted November 4, 2008 If you want help try posting your attempt at integrating the code here and tell us where and what the problem is, and then someone may reply. Thanks, My.Grumpypants Quote Link to comment https://forums.phpfreaks.com/topic/131299-those-bless-ed-buttons/#findComment-682005 Share on other sites More sharing options...
BoltZ Posted November 4, 2008 Share Posted November 4, 2008 Your avatar doesn't help that nickname Quote Link to comment https://forums.phpfreaks.com/topic/131299-those-bless-ed-buttons/#findComment-682126 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.