Tommy D’s Sexy Blog

TagLine Here

PHP Tip, PHP & forms

Filed under: PHP Tips — Tommy D. at 12:31 pm on Saturday, July 2, 2005

When an HTML form is posted to a PHP script, PHP automatically converts periods in field names to underscores. For example, if you had form fields called “first.name” and “last.name” you would access them in PHP by using $_POST['first_name'] and $_POST['last_name'].

Attempting to use the field names with periods, e.g. $_POST['first.name'], will not work.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

 

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin