Changeset 3211 for libcaca


Ignore:
Timestamp:
Nov 2, 2008, 8:08:08 PM (11 years ago)
Author:
nico
Message:
  • Add an input box in sample web page figlet.php
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/www/figlet.php

    r3210 r3211  
    1010</head>
    1111<body>
     12<form method="get" action=""><input name="str"/><input type="submit" value="OK"/></form>
    1213<?php
    1314/*
     
    6061        if (is_file($path.$it) and ereg("\.[tf]lf$", $it)) {
    6162                echo "<b>font : $it</b>\n";
    62                 show_figlet("Libcaca", $path.$it);
     63                show_figlet(isset($_GET["str"]) ? $_GET["str"] : "Libcaca", $path.$it);
    6364        }
    6465}
Note: See TracChangeset for help on using the changeset viewer.