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");
?>
AJAX form submit
I recently built a form that submits data to my database with an ajax function that is called through onClick="function ..." on the submit button. That all works perfectly, however the
UTL File problem
Hi
void* and sizeof()
Hi,Using void* and sizeof is it possible to get the value of the object ?I understand that dereferencing a void pointer is not directly possible. Is there a way (like casting) or something else to get
how to use two buttons with php
hi i have one form. there are three fields which are to be filled by the user. and then there are two buttons. ob clicking first button i want to save user's provided data to the database display the
PHP Multiples of 2, Show posts...not working (wordpress)
I have been using this code to show div.example with 6 li columns inside it, each li is a post with its info inside.Once it gets to the 6th li it closes the div.example and starts a new one. This to
Please help understand this code
I noticed the index page on my site was modified this morning and found this code inserted at the bottom of the page:Code: <!--ddgbsre_erd_sdd--><?php
Warning: mysql_num_rows() supplied argument is not a valid MySQL result resource
This may be simple I just may need another pair of eyes..When i get records back the below code works just fine, when I get 0 rows back it shows the warning below. As you can see I tried to code for
Using cURL to PUT
Can somebody help with the correct php code to make a cURL PUT request. Here is a sample of code below that uses POST, but I need to modify this one so that it uses PUT instead.Code: <?php
Links not updating
I'm trying to fuel a simple navigation system for a news section. It works fine when it comes to retrieving and displaying data, but if I click on a valid link in the following code, the content and
ob_ dynamic content
i was wondering about the potential to use ob to create a <div then remove it when the page has finished loading? ie loading cover.