--- "D. K. Wema" <[EMAIL PROTECTED]> wrote:
> James,
>
> I used the extract($_POST); since I am using the post
> method the something very strange happened. First, the
> script is not displaying my data entry form and
> second, it is inserting null values and the defaul
> value into the database.
>
> I tried comenting extract($_POST); and the form came
> back. I think that if I am able to view the form, it
> will be possible to insert values into the database.
> Do you have any solution for this? (it seems like
> there's some light at the end of the tunnel!)
>
> Thanks
>
> --
> dk wema
Some browsers will resubmit form data if you simply reload. It may be helpful
to put the cursor in the address bar of the browser and press the enter or
return key to reload the form page fresh.
An additional consideration is to use:
if (! empty($submit))
{
}
in your clause to check to see if the submit button has been clicked.
The whole business of checking to see if certain fields have inputs (ie
required fields) takes a bit more work. The problem is not so much in checking
the fields but in redisplaying the form with the data the user supplied and a
message to indicate that certain fields need attention. It's not terrible,
just not a one-line solution.
James
_____
James D. Keeline
http://www.Keeline.com http://www.Keeline.com/articles
http://Stratemeyer.org http://www.Keeline.com/TSCollection
http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Fall Semester Begins Sep 7 -- New Classes Start Every Few Weeks.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/