hi guys ..
ok see i want the user to add their name and pick a number then click get it and it prints the name on top and the number bellow it on a t-shirt i just cant seem to get this rite i have no clue how to go about doing this please can you help me this is what i have so far Code: <?php
$ShowBookmark = "False";
include 'Include/Header.php';
if (Get_QString('Post') == "True") {
Get_image();
} else {
Show_Form();
}
function Show_Form() {
echo '<div class="hd2"><center><font color=#666666><strong>Soccer Kit Gen</strong></font></center></div>
'."n";
echo ' Name: <input type="text" name="name" /><br />'."n";
echo ' <form method="post" action="test.php?Post=True">'."n";
echo ' Number: <select name="number">'."n";
echo ' <option value="0" selected="selected">0</option>'."n";
echo ' <option value="1">1</option>'."n";
echo ' <option value="2">2</option>'."n";
echo ' <option value="3">3</option>'."n";
echo ' <option value="4">4</option>'."n";
echo ' <option value="5">5</option>'."n";
echo ' <option value="6">6</option>'."n";
echo ' <option value="7">7</option>'."n";
echo ' <option value="8">8</option>'."n";
echo ' <option value="9">9</option>'."n";
echo ' <option value="10">10</option>'."n";
echo ' <option value="11">11</option>'."n";
echo ' <option value="12">12</option>'."n";
echo ' <option value="13">13</option>'."n";
echo ' <option value="14">14</option>'."n";
echo ' <option value="15">15</option>'."n";
echo ' <option value="16">16</option>'."n";
echo ' <option value="17">17</option>'."n";
echo ' <option value="18">18</option>'."n";
echo ' <option value="19">19</option>'."n";
echo ' <option value="20">20</option>'."n";
echo ' <option value="21">21</option>'."n";
echo ' <option value="22">22</option>'."n";
echo ' <option value="23">23</option>'."n";
echo ' <option value="24">24</option>'."n";
echo ' <option value="25">25</option>'."n";
echo ' <option value="26">26</option>'."n";
echo ' <option value="27">27</option>'."n";
echo ' <option value="28">28</option>'."n";
echo ' <option value="29">29</option>'."n";
echo ' <option value="30">30</option>'."n";
echo ' <option value="31">31</option>'."n";
echo ' <option value="21">32</option>'."n";
echo ' <option value="22">33</option>'."n";
echo ' <option value="23">34</option>'."n";
echo ' <option value="24">35</option>'."n";
echo ' <option value="25">36</option>'."n";
echo ' <option value="26">37</option>'."n";
echo ' <option value="27">38</option>'."n";
echo ' <option value="28">39</option>'."n";
echo ' <option value="29">40</option>'."n";
echo ' <option value="30">41</option>'."n";
echo ' <option value="31">42</option>'."n";
echo ' <option value="30">43</option>'."n";
echo ' <option value="31">44</option>'."n";
echo ' </select>';
echo ' </td></tr>'."n";
echo ' <tr><td colspan="2" align=center>
<input type="submit" value="Get It!" name="Submit"></td></tr>'."n";
echo ' </table>'."n";
echo '</form>'."n";
Show_Buttons("True", "index.php?Cmd=100");
}
function Get_image() {
$number = GetPost('number');
$name = GetPost('name');
header("Content-Type: image/jpeg");
$im = ImageCreateFromGif("soccer-kit.png");
$black = ImageColorAllocate($im, 255, 255, 255);
$start_x = 10;
$start_y = 20;
Imagettftext($im, 12, 0, $start_x, $start_y, $black, 'verdana.ttf', "$name");
//Creates the jpeg image and sends it to the browser
//100 is the jpeg quality percentage
Imagejpeg($im, '', 100);
ImageDestroy($im);
include 'Include/Footer.php'; Log_Hit("soccerkitgen");
?>
registration form
first time posting. did some searches but didnt find exactly what i am looking for. dont flame cause i am posting in the wrong area. I am starting from scratch with a new registration form for a
email form (cannot find the problem)
Hello there. I've been having trouble with an email form. Can't find the problem really. I've tested so many times, tried different ifs to see where the problem comes from. It turned out its alway the
storing video files into mysql in php
hi i have my video files in my folder ,i have to store the path of the videos into db and the play it in the player from the database.thanking in advance
Can you help please? Php file
I have to write this php file to allow users to register their nicknames on nickservFor an IRC server, however it worked fine for a couple of years, I then upgraded from Php4 to Php5 and suddenly
$_POST variable un-useable
I'm trying to use a $_POST variable in a mysql update statement but i can't use it for some unknown reason i can echo the variable and it outputs the correct value but i cannot use that variable in
Problem displaying "scraped" XML data
I'm basicly having trouble displaying XML data scraped from an URL using cURL.What the code should do:Using Curl the code should "grab" the xml data from a specified URL.It should then
error help - Dynamic Image
I've been working on making my site less cluttered in the directories and more secure lately. In an attempt to prevent bandwidth theft from other people using images, I decided to switch all my site
Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...Code: $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME'
login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php index.php . Now if i will not give correct detail i can not see the index.php ,all working perfect
Problems with adding a link to one position in a 'foreach' loop, please help
Hello!Iam pretty new to programming and I wanna create a table with users from an array. It works just fine but in one table row I wanna add a link to it so I can click on the username to edit it