Jump to content


This topic is now archived and is closed to further replies.


Form to Image

Recommended Posts

How would I write a code to do the following:

I have a form with the following fields:

I want PHP to generate an image with the following properties:
1) Depending on the country they pick, a different background image appears
2) I want it to contain their Name and Email address on the image.

Share this post

Link to post
Share on other sites
Give this a try, it includes 2 images, a USA flag and a Chinese flag, a php file called createimage and one called index

Index holds the form, which posts to createimage which will draw the flag depending on what they chose and the name and email in a black box with a white border at the bottom.



Should be pretty easy to get it to work right for you

Share this post

Link to post
Share on other sites


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.