Jump to content

Recommended Posts

Not too sure where to start...but this is what I am looking to create for my site:

 

http://www.internationalvapersclub.com/sig/

 

You basically enter in the date you quit smoking

How many cigs you used to smoke

price per pack of smokes

 

I then was to use my own design for the background image and have the above results pass into the .png and provide a url so that users can use the link on message boards.

 

I hope this is the proper place to post this.  Much thanks in advance!!

You'd use the GD Library to do the image stuff. The script would basically go something like this:

 

1) Create GD resource from your background image (see imagecreatefrom* functions)

2) Generate the text you want to put on the image using the $_GET variables for the different fields (string var)

3) Write the text onto the GD resource (see imagettftext)

4) Output the image in the desired format (see imagepng, imagejpeg, etc functions)

Played around a bit more but now am stuck and need alittle help please...

 

URL: sunny vaping . com/sig.html

 

Not sure why the data is not passing and creating the showimage.php results on the showresults.php page.  Any help would be great.

You aren't passing you variables correctly.

 

/sig2/showimage.php?day=&month=&year=&smokedperday=&costperday=&icon=/sig2/bsv.jpg

 

You should be able to edit this into your current /sig2/showresults.php and fix the image display.

<?php
echp '<img src="http://example.com/sig2/showimage.php?day=".$day."&month=".$month."&year=".$year."&smokedperday=".$smokedperday."&costperday=".$costperday."&icon=/sig2/bsv.jpg" />';
?>

All the help I can give with the info I have. Also please read my signature.

You aren't passing you variables correctly.

 

/sig2/showimage.php?day=&month=&year=&smokedperday=&costperday=&icon=/sig2/bsv.jpg

 

You should be able to edit this into your current /sig2/showresults.php and fix the image display.

<?php
echp '<img src="http://example.com/sig2/showimage.php?day=".$day."&month=".$month."&year=".$year."&smokedperday=".$smokedperday."&costperday=".$costperday."&icon=/sig2/bsv.jpg" />';
?>

All the help I can give with the info I have. Also please read my signature.

 

 

Thank you sir!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.