php tutorials, php form validation
Archive Tutorials
Discussion Home
Login / Register

Board List
PHP programming
General

Links
How to save gas 25% or more
Marshall Reddick
Network Marketing Forums
Income Tax Help
Lose 10 Pounds in 3 Weeks
PHP Forum Script
Online Contest

Learn PHP in 47 hours!

Back to General

Search

PHP Form Validation PHP Form Validation

PHP Form Validation

by seanc on Thu 09/21/2006 07:35 AM

Hi, 

I've used the sample registration code in a page for an application I'm developing. I've got eveything working great except everytime the form refreshes following an error all the fields are blank instead of holding the data as your example does.
Can you please advise?

[Reply] [Back to Top]

post variable referencing

by uclaboyz on Thu 09/21/2006 08:17 AM

Hi, 

Down in the form HTML code where it says: 

<? echo $first_name_input; ?> 

You'd need to change it to: 

<? echo $_POST["first_name_input"]; ?> 

You'd want to do the same for all the form fields/variables.  Later version of PHP has a different way of referencing to variables now (something to do with global variable). 

Let me know if this helps.

[Reply] [Back to Top]

post variable referencing

by seanc on Fri 09/22/2006 03:14 AM

That fixed it, thanks for your help!

[Reply] [Back to Top]

© Copyright 2006-2007.  All Rights Reserved. Site hosted by Small Business Web Design
how to start a blog | parenting tips website | Passive Income | baby websites