By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,068 Members | 1,176 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,068 IT Pros & Developers. It's quick & easy.

Date from form to mySQL

P: n/a
How do I take a field from a form and store it on in a mySQL table?

TIA, Lee
Aug 10 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
*** Lee David wrote/escribió (Wed, 10 Aug 2005 16:18:49 -0500):
How do I take a field from a form and store it on in a mySQL table?


Do you want an explanation of *all* the process or you have a very specific
question? There're many things involved as to explain it all: HTML, forms,
database management and design, data validation in PHP, database access...

--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Aug 11 '05 #2

P: n/a
> How do I take a field from a form and store it on in a mySQL table?

Do you know how to do ANYTHING with mySQL in PHP?
Do you know how to send form fields to a PHP script?

Let us know what you can do in PHP.

I don't like offering complete code because I end up doing all the work, and
you learn nothing.

Aug 11 '05 #3

P: n/a
Lee David wrote:
How do I take a field from a form and store it on in a mySQL table?

TIA, Lee


Hi Lee,

As others have mentioned, this is too broad a question for a good
answer from the group.

Here's a rough outline of what you need to study to work out your own
answer:
HTML-- <form>, <input>, possibly other form fields
Javascript-- client-side validation techniques
PHP-- $_GET() and $_POST(), server-side validation, data
transformation
PHP-- the mysql_whatever() functions (or possibly the PEAR module)
MySQL-- database definitions, INSERT queries

I think that's a comprehensive, eagle's view of the terrain. I'm sure
if I missed something really big, someone will jump in and mention it.

If you use this outline, you will probably have questions that are more
specific which the group would be able to respond to.

Aug 11 '05 #4

P: n/a
In article <14*****************************@40tude.net>, Alvaro G Vicario wrote:
*** Lee David wrote/escribió (Wed, 10 Aug 2005 16:18:49 -0500):
How do I take a field from a form and store it on in a mySQL table?


Do you want an explanation of *all* the process or you have a very specific
question? There're many things involved as to explain it all: HTML, forms,
database management and design, data validation in PHP, database access...


the data from your form will arrive in (among other places) an array called
$_REQUEST you take it from there and create the mysql commands to store it
in your table.

--

Bye.
Jasen
Aug 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.