Re: Is it possible to do this in PHP ? If it is then, how ?
| From: | Axis Computers | Date: | Fri, 29 Nov 2002 23:26:56 +0000 |
| Subject: | Re: Is it possible to do this in PHP ? If it is then, how ? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126504@lists.php.net to get a copy of this message | ||
Marek,
Thanks for your ideas, I was thinking in a complicated scheme using $fp =
fopen ("php://stdin", $hexkeynumber) ...
but I wasn't sure if that is better ...
I think your solution is much neatier ... then I just have to compare the
entered code with an id in the mysql database
----- Original Message -----
From: "Marek Kilimajer" <kilimajer@webglobe.sk>
To: "PHP" <php-general@lists.php.net>
Sent: Friday, November 29, 2002 7:49 AM
Subject: Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?
> In the browser it might look something like this:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> <html>
> <head>
> <title>Pizza place</title>
> <script>
> function add(n) {
> document.pizza.num.value=document.pizza.num.value + n;
> if(document.pizza.num.value.length!=2) {
> document.pizzaimage.src='blank.jpg';
> } else {
> // alert("Pizza is " + document.pizza.num.value);
> document.pizzaimage.src='show_image.php?img_id=' +
> document.pizza.num.value;
> }
> }
>
> </script>
> </head>
>
> <body>
> <img src="blank.jpg" alt="" name="pizzaimage"
> id="pizzaimage" border="0">
> <form action="" name="pizza">
> <input type="text" name="num"
> onchange="checkimg(this.value)"> <input
> type="button" value=" Clear "
> onclick="this.form.num.value='';
add('')"><br>
> <input type="button" value=" 7 " accesskey="7"
> onclick="add('7')">
> <input type="button" value=" 8 " accesskey="8"
> onclick="add('8')">
> <input type="button" value=" 9 " accesskey="9"
> onclick="add('9')"> <br>
> <input type="button" value=" 4 " accesskey="4"
> onclick="add('4')">
> <input type="button" value=" 5 " accesskey="5"
> onclick="add('5')">
> <input type="button" value=" 6 " accesskey="6"
> onclick="add('6')"> <br>
> <input type="button" value=" 1 " accesskey="1"
> onclick="add('1')">
> <input type="button" value=" 2 " accesskey="2"
> onclick="add('2')">
> <input type="button" value=" 3 " accesskey="3"
> onclick="add('3')"> <br>
> <input type="button" value=" 0 " accesskey="0"
> onclick="add('0')">
> <input type="submit"
>
> value=" Order ">
> <br>
> </form>
>
>
> </body>
> </html>
>
> Additional information (size, weitht ...) can be provided in the image
> Axis Computers wrote:
>
> >Thanks for replying,
> >
> >Now I know it's possible to do it, but I still don't know how can I
develop
> >such interface, I will do it in php and mysql, but I need a little
guidance
> >with the way to do it I just can't figure out how ...
> >
> >Thank you
> >
> >Ricardo Fitzgerald
> >
> >
> >>
> >>
> >
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>