Can't put Inquiry and Response into same form

From: Date: Fri, 04 Oct 2002 09:37:12 +0000
Subject: Can't put Inquiry and Response into same form
Groups: php.general 
Request: Send a blank email to php-general+get-118834@lists.php.net to get a copy of this message
Hello, in the example on the bottom of this email I try to make an inquiry from my form to a PHP script and get the response, created by the PHP script, back into my form. Does anyone know what I am doing wrong? Any hints from you are welcome, regards, Darya Here the 2 PHP files: 1) irtest.php: <HTML> <HEAD> <TITLE>Inquiry - Response - Test</TITLE> </HEAD> <BODY> <H1>Inquiry - Response - Test</H1> <FORM ACTION="inquiry.php" METHOD="POST"> <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="220"> <TR> <TD><INPUT TYPE="TEXT" NAME="Inquiry" ALIGN="LEFT"></TD> <TD> <INPUT TYPE=SUBMIT NAME="Submit" VALUE="Inquiry"> </TD> </TR> <TR> <TD> <INPUT TYPE="TEXT" NAME="Response" ALIGN="LEFT"> </TD> <TD> </TD> </TR> </TABLE> </FORM> </BODY> </HTML> 2) inquiry.php <html> <head> <title>PHP Test</title> </head> <body> <?php $inquiry = $_POST["Inquiry"]; $response = $inquiry.' successfull returned'; echo $response; ?> </body> </html> __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de

« previous php.general (#118834) next »