HELP!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lanny
Forum Newbie
Posts: 24
Joined: Thu Apr 06, 2006 10:09 am

HELP!!

Post by lanny »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


I'm currently developing an online shirt design website for my coll project...

 i'm using xhtml layout and php, to load the user input text, where the text willl be display on center of the tshirt picture.
the text can be display on the xhtml page, but cant adjust to be display on the middle of the image...any solutions for displaying text on an image file?

my xhtml code :

Code: Select all

<tr>

<td width="197" height="219"><div align="center"></td>
<td width="197" height="219"><div align="center">
<img src="Images/shirt_grey.jpg" width="240" height="240" /></div>
<?php
if ($_POST['submit'] == "Submit")
{
echo " " . $_POST["usertext"] . "<br/>";
}
?></td>
Thanks in advance!


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
Nathaniel
Forum Contributor
Posts: 396
Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA

Post by Nathaniel »

You will want to look into the PHP image functions, and have PHP create an image with the text over the t-shirt.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
Post Reply