Jump to content

Form to Image


Recommended Posts

How would I write a code to do the following:

I have a form with the following fields:
"Name"
"Email"
"Country"

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.
Link to comment
https://forums.phpfreaks.com/topic/17607-form-to-image/
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.

[img]http://www.warrency.com/flaggen.jpg[/img]

[url=http://www.warrency.com/CreateFlag.zip]http://www.warrency.com/CreateFlag.zip[/url]

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

Link to comment
https://forums.phpfreaks.com/topic/17607-form-to-image/#findComment-75041
Share on other sites

  • 6 months later...

Archived

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

×
×
  • 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.