Re: Is it possible to do this in PHP ? If it is then, how ?

From: Date: Fri, 29 Nov 2002 10:49:39 +0000
Subject: Re: Is it possible to do this in PHP ? If it is then, how ?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-126461@lists.php.net to get a copy of this message
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="&nbsp;&nbsp;&nbsp;&nbsp;Order&nbsp;&nbsp;&nbsp;&nbsp;"> <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


« previous php.general (#126461) next »