Note that there are some explanatory texts on larger screens.

plurals
  1. POUpdate forms to change text on images
    primarykey
    data
    text
    <p>I basically need helping coding a page since the code I used previously seems to not be working on my linux server.</p> <p>Basically, I have a page of images, here is an example:</p> <p><a href="http://i.stack.imgur.com/bhUXh.png" rel="nofollow">http://i.stack.imgur.com/bhUXh.png</a></p> <p>There are about 13 of these images. I basically need a page with form fields where I can update to add text beside "Status", "Server", and "Room" on each picture.</p> <p>This is an example of one of the images with update forms: <a href="http://nyanpuffle.com/auntarctic/" rel="nofollow">http://nyanpuffle.com/auntarctic/</a></p> <p>The coding:</p> <pre><code> &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Tracker&lt;/title&gt; &lt;/head&gt; &lt;body bgcolor="#4b7bb2"&gt; &lt;font face="arial"&gt; &lt;center&gt; &lt;?php $password=''; //pre-set thos vars $status=''; $server=''; $room=''; if(isset($_POST['submit'])){ $password = $_POST['password']; if($password == "1234"){ $status = $_POST['status']; $server = $_POST['server']; $room = $_POST['room']; $im = imagecreatefrompng("in.png"); $colour = imagecolorallocate($im, 255, 255, 255); $font = 'BurbankBigRegular-Bold.ttf'; // imagettftext($im, 20, 0, 100, 68, $colour, $font, $status); imagettftext($im, 20, 0, 95, 95, $colour, $font, $server); imagettftext($im, 20, 0, 85, 127, $colour, $font, $room); imagepng($im,'out.png'); imagedestroy($im); $result="&lt;b&gt; Updated! &lt;/b&gt;"; }else{ $result="&lt;p&gt;&lt;b&gt;Incorrect Password!&lt;/b&gt;&lt;/p&gt;"; } } echo (isset($result))?$result:''; ?&gt; &lt;form action="" method="POST" /&gt; &lt;p&gt;Password: &lt;input type="password" name="password" value="&lt;?php echo htmlentities($password); ?&gt;"/&gt;&lt;/p&gt; &lt;p&gt;Status: &lt;select name="status"&gt; &lt;option value=""&gt;Select...&lt;/option&gt; &lt;?php echo "&lt;option value=\"Online\""; if($status=='Online'){ echo" selected=\"selected\"";} echo"&gt; Online&lt;/option&gt;\n"; echo "&lt;option value=\"Offline\""; if($status=='Offline'){ echo" selected=\"selected\"";} echo"&gt; Offline&lt;/option&gt;\n"; echo "&lt;option value=\"Tracking...\""; if($status=='Tracking...'){ echo" selected=\"selected\"";} echo"&gt; Tracking&lt;/option&gt;\n"; ?&gt; &lt;/select&gt; &lt;/p&gt; &lt;p&gt;Server: &lt;input type="text" name="server" value="&lt;?php echo htmlentities($server); ?&gt;"/&gt;&lt;/p&gt; &lt;p&gt;Room: &lt;input type="text" name="room" value="&lt;?php echo htmlentities($room); ?&gt;"/&gt;&lt;/p&gt; &lt;p&gt;&lt;input type="submit" name="submit"/&gt;&lt;/p&gt; &lt;/form&gt; &lt;p&gt;Tracker:&lt;/p&gt; &lt;p&gt;&lt;img src="out.png" alt="Tracker" /&gt;&lt;/P&gt; &lt;a href="http://ClubPenguincheatsy.com/cptrackers"s&gt;Back to Tracker Dashbaord&lt;/a&gt; &lt;/center&gt; &lt;/body&gt; </code></pre> <p>Unfortunately, it doesn't work on my other server...</p> <p>Is there another method of achieving the same effect?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload