Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To 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 February 1st, 2006, 05:02 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to SunBlind Send a message via MSN to SunBlind Send a message via Yahoo to SunBlind
Default Help With PHP Form

I'm not sure if this is the correct forum, but I am looking for help with a form that I use to collect data to be inserted into a database.

The data collected is used to generate code and a preview for a webpage for the user to save. I made the original form/processing script 3 years ago, so it's very newbish. I'm looking for a better way to pass the variable from the form to the processing script (the one that displays the preview and the code) to the script that will save the data that the user input (colors, content, author information, etc) and the generated code into the database without having to use 30+ hidden inputs. I've heard of globals and the like, but the information I've found left me more confused than enlightened, so I'd appreciate it if someone else could clarify it for me, or at least point me to the write articles.

Also, to store HTML code in a database, how do/should I use stripslashes and htmlspecialchars on all the input collected from the form? I'd appreciate any help! Thanks in advance.


-§- SunBlind
 
Old February 17th, 2006, 04:52 PM
Registered User
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to avail1now
Default

check this script out http://www.surefirewebdesign.com/scripts/ it is rated for anti-spam and security, you can see ratings at http://hotscripts.com/index.html and http://www.php.resourceindex.com/Complete_Scripts/

cheers, deano





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Validation with Php alex.zeal PHP How-To 1 September 7th, 2007 04:03 AM
form php mysql masgas PHP Databases 3 February 12th, 2006 07:34 PM
Passing FORM to FORM to PHP AV1611 PHP Databases 1 August 17th, 2005 03:32 PM
PHP Form Validation mdolan PHP How-To 2 November 17th, 2004 03:26 PM
PHP form validation mdolan ASP.NET 1.0 and 1.1 Basics 1 November 17th, 2004 03:07 PM





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