Re: Submitted information not being displayed

From: Date: Wed, 19 Feb 2003 08:32:23 +0000
Subject: Re: Submitted information not being displayed
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25750@lists.php.net to get a copy of this message
On Tuesday 18 February 2003 20:35, Bruce Sommer wrote: > I'm attempting to takke information submitted from a web page through a > POST action, insert it into a MySQL database and upon success display the > information in a table for the submitter to see. For some reason empty > fields are inserted into the database and the data doesn't show up in the > resulting table - just the headers. The fields of type timestamp come up > all "0". Apply some basic debugging techniques ... > I'm running PHP v.4.1.2 and MySQL v.3.23.52 on my server. > > The form action and subscribe.php follows: > > <FORM ACTION="subscribe.php" METHOD="POST"> > > <HTML> > <HEAD> > <TITLE>Processing Subscription Information</TITLE> > </HEAD> > <BODY> > > <?php > /* This page receives and handles the data generated by "index.html". */ > // Trim the incoming data. > $Array["FirstName"] = trim ($Array["FirstName"]); > $Array["LastName"] = trim ($Array["LastName"]); > $Array["id_num"] = trim ($Array["id_num"]); > $Array["Email"] = trim ($Array["Email"]); Use print_r($_POST) to show all the values POSTed from your form. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* You are deeply attached to your friends and acquaintances. */

« previous php.db (#25750) next »