View Single Post

  #2 (permalink)  
Old 05-12-2008
Álvaro G. Vicario
 
Posts: n/a
Default Re: echoing mysql result

Brian Spotts escribió:
> Hey everyone. I have a simple form with three fields, when the user
> submits, I want the php to echo under the form the results in my sql
> table that match the three fields in the form. I'm tried to use
> variables similar to:

[...]
> <<<FORM>>>>
> <?php
> echo $myQuantity;
> ?>
>
> It doesn't return anything though, any ideas?


The tutorial in the PHP manual can give a general idea of how form
handling works:

http://es2.php.net/manual/en/tutorial.forms.php

Hint: $_GET and $_POST

Also, document.myform.mytype.value is client-side JavaScript. PHP is a
server-side language.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
Reply With Quote