I have read that I cannot have a space when naming a php variable. Here is my issue. I have a form im working with that someone enters there first name, last name etc..

When im writing the php script can i use the underscore for the naming process.. In other words I know I cannot use $First Name as a valid variable. But can I instead use $First_Name ? Or am I completely way off base here? Any help is appreciated.

_________________________
Your mind is fine. Reality is what needs adjusting.

These are all different but valid varriables. You could also have something like...

**Replace ) with > and ( with <

Code:

if(!$form_step){
//above line breaks script up and says if no value is set for $form_step do the following.
(Form=My_form.php?form_step=submit)
First Name(br)
(input name="Name[]" id="Name[]" Value="<? echo "$Name[0]"; ?>")
(br)
Last Name(br)
(input name="Name[]" id="Name[]" Value="<? echo "$Name[1]"; ?>")
}

The above turns the first and last anme variables into an array of Name. All array's start at 0 by default. So the First Name would be $Name[0] and Last Name would be called with $Name[1]. Now we work some magic.

If you use session try to put the secure(meaning encrypted or non security related) user info you need on all other pages in the session at login time using an array. This will minimise queries and hopefuly speed up page loads.