Re: Submitted information not being displayed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux