Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Moderated Pro PHP
|
Moderated Pro PHP This is a moderated forum for discussing advanced, professional level issues with PHP. Your posts will not appear until a moderator approves them. Posts that are not the right level for this forum will be responded to and you'll be asked to post them in the [url="http://p2p.wrox.com/sql-server-2000-20/9"]Beginning PHP[/url] forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Moderated Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2006, 12:54 AM
Registered User
 
Join Date: Jun 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dreadzz
Default Reloading a form with user input

I am trying to figure out the best way to reload a form with user input when their submit fails. Currently this is how i have it set up. Please give me some feedback.

I created a php form whos action calls submit.php. All fields in this form have a default value according to the session variables. (So when the form is first loaded everything is null) When submit.php is called all variables from the form are stored in session variables. Then i impose a few checks such as: If the two password fields are not the same i display an error and use this statement to reload my form.
include "club_form.php";

So when club_form.php is called again it loads the default values of the form as the session variables.

Is this the best way to save user input if they fail any sort of programmer enforced check during the submission process?






Similar Threads
Thread Thread Starter Forum Replies Last Post
reloading user controls countdown ASP.NET 1.0 and 1.1 Basics 0 June 15th, 2006 05:54 AM
Get user input during form processing echovue PHP How-To 3 June 10th, 2006 11:54 PM
checking user input hosefo81 Javascript How-To 0 February 16th, 2004 11:59 PM
Launching an MS-Word template with user input form fpollari Classic ASP Basics 0 June 17th, 2003 09:38 AM
Display bar code in a Form using user input text? phoenixcu Access VBA 1 June 6th, 2003 02:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.