RE: Form + database

2004-06-23 Thread Nic Skitt
Hi Tommie,

From the HTML you have sent there are a number of things you need to do.
Firstly you need to group your radio buttons correctly and give them
appropriate values.

You will need to construct a table in MySQL to take the results.

You will need to create the relevant PHP script to receive the form data
and build a SQL query to submit to the database.

If you are entirely new to this then I would suggest taking a look at
some examples on the web.

Try: http://www.phpbuilder.com

Another option would be to use Dreamweaver and have it write the code
for you. It is a great way to get started with PHP and MySQL.

http://www.macromedia.com

And look for the Dreamweaver MX Trial download.

I hope that helps


Nic Skitt
Real Productions UK Limited
http://www.realproductions.co.uk



-Original Message-
From: tommie ramirez.andujar [mailto:[EMAIL PROTECTED] 
Sent: 23 June 2004 20:32
To: [EMAIL PROTECTED]
Subject: Form + database

 
Dear colleagues..

I am new to mysql and I am trying to do the following, to create a php
file
that may contain some kind of form or survey and the data entered may be
added to a database. Here's the code of the html form

-
html
head
titleSurvey/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head

body
 p strongSurvey/strong/p
form action= method=post name=importance  id=importance
  table width=605 border=0
tr
  td strongIs reading important? /strong/td
/tr
tr
  td  yes 
input name=radiobutton type=radio value=radiobutton/td
/tr
tr
  td no
input name=radiobutton type=radio value=radiobutton/td
/tr
tr
  td maybe
input name=radiobutton type=radio value=radiobutton/td
/tr
tr
  td i don't know
input name=radiobutton type=radio value=radiobutton/td
/tr
tr
  td iquest;Why? /td
/tr
tr
  td textarea name=textarea cols=85 rows=5
/textarea/td
/tr
  /table
/form
br
/body
/html


__
msc. tomas alberto ramirez.andujar
webmaster - cejisoft - +53 32 26 24 51
universidad pedagogica jose marti. camaguey
circunvalacion norte km 51/2 cp 74670. cuba
email : [EMAIL PROTECTED]
url: http://www.esicm.cu/cejisoft 

-Mensaje original-
De: tommie ramirez.andujar [mailto:[EMAIL PROTECTED] 
Enviado el: Saturday, May 29, 2004 12:14 PM
Para: [EMAIL PROTECTED]
Asunto: Transfer records from one table to another



Hi,,

I have database about national historical events and another one about
world
events..

Here's the structure:

National events (d: day  m: month a: year hecho: fact)
|---|
| id| d | m | a |hecho  |
|---| 


World events (d: day  m: month y: year event: fact)
|---|
| id| d | m | y | event |
|---|

Now, I want to copy the records from National to World events, is it
possible?
Yours
tommie 

___
msc. tomas alberto ramirez.andujar
webmaster - cejisoft - +5332 262451 /261410 universidad pedagogica jose
marti. camaguey circunvalacion norte km 51/2 cp 74670. cuba
[EMAIL PROTECTED] - www.esicm.cu/cejisoft


Este mensaje ha sido analizado por MDaemon Antivirus v2.21.
Instituto Superior Pedagsgico de Camaguey, Cuba.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


Este mensaje ha sido analizado por MDaemon Antivirus v2.21.
Instituto Superior Pedagsgico de Camaguey, Cuba.


Este mensaje ha sido analizado por MDaemon Antivirus v2.21.
Instituto Superior Pedagógico de Camaguey, Cuba.



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.707 / Virus Database: 463 - Release Date: 15/06/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.707 / Virus Database: 463 - Release Date: 15/06/2004
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Form + database / PHP survey + database

2004-06-23 Thread James E Hicks III
On Wednesday 23 June 2004 03:32 pm, tommie ramirez.andujar wrote:
 Dear colleagues..

 I am new to mysql and I am trying to do the following, to create a php file
 that may contain some kind of form or survey and the data entered may be
 added to a database. Here's the code of the html form


Dearest Colleague,

Start writing your project now. No one on this list or the PHP list is going 
to write this code for you. Either list will be glad to help you with 
problems you are having with code that you have written. Neither list is 
going to produce your project for you. I would suggest looking at 
sourceforge.net for pre-written code.


Not Your Code-Monkey,

Your Colleagues




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]