Bopo Posted December 15, 2008 Share Posted December 15, 2008 Hi Well to be honest, I don't know what the technique is called, but basically I have wrote some php which returns a value from 1 to 10 (can include one decimal place e.g. 2.4, 9. and I would like to bind this to a image, also I intend for a text box to will a URL to the image, in which then can use to display where ever. Advice appreciated Quote Link to comment https://forums.phpfreaks.com/topic/137100-binding-text-to-an-image/ Share on other sites More sharing options...
premiso Posted December 15, 2008 Share Posted December 15, 2008 imagecreate That function should allow you to do it. I have never used image manipulation so yea, read through the user comments or google for a tutorial and you should find one pretty easy. Quote Link to comment https://forums.phpfreaks.com/topic/137100-binding-text-to-an-image/#findComment-716094 Share on other sites More sharing options...
Bopo Posted December 15, 2008 Author Share Posted December 15, 2008 Thanks that's looks very useful, I will have a read into it an a minute, just one more question. Is it possible to echo something on any line within a web page, reason I'm asking is I need a 2 text boxes to appear within the Form tags depending on the result of a POST cheers. Quote Link to comment https://forums.phpfreaks.com/topic/137100-binding-text-to-an-image/#findComment-716117 Share on other sites More sharing options...
premiso Posted December 15, 2008 Share Posted December 15, 2008 Yep. <?php if (isset($_POST['test1']) && $_POST['test1'] == "yes") { echo '<input type="text" name="text1" />'; }else { echo '<input type="text" name="text2" />'; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/137100-binding-text-to-an-image/#findComment-716123 Share on other sites More sharing options...
Bopo Posted December 15, 2008 Author Share Posted December 15, 2008 Hi I still have the problem of my text box control not appearing within my form tags, my PHP is directly after the closing tag </form>, If I could hide the current form with text boxes etc in it, I could just echo out a new one? Quote Link to comment https://forums.phpfreaks.com/topic/137100-binding-text-to-an-image/#findComment-716186 Share on other sites More sharing options...
Bopo Posted December 15, 2008 Author Share Posted December 15, 2008 Just realised I can use the action property of the Form to re-direct to a different page, so my problem is solved, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/137100-binding-text-to-an-image/#findComment-716213 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.