GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 17-May-2009, 15:36
hellz hellz is offline
New Member
 
Join Date: Mar 2009
Posts: 3
hellz is on a distinguished road

Insert query with info taken from form input


hi all ,
Im trying to create an insert query which inserts information that a user has inputted thru a form. This is what i currently have but doesn't work. I have a generally form and i have double checked the names to make sure they are correct and then on the page the action address on the form links to i have:

PHP Code:

INSERT  INTO customer  (Surname, Fname, Quantity)
VALUES('$_POST[surname]','$_POST[FirstName]','$_POST[quantity]')";
mysql_close(); ?> 



I also have the connect to database code above the insert statement
Any help will be much appriciated
  #2  
Old 17-May-2009, 17:00
hellz hellz is offline
New Member
 
Join Date: Mar 2009
Posts: 3
hellz is on a distinguished road

Re: insert query with info taken from form input


sorry solved this problem
 
 

Recent GIDBlogProblems with the Navy (Enlisted) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble integrating console code into GUI Barman007 Java Forum 18 15-May-2008 13:05
Scanning dilemma (fscanf and fgets) aijazbaig1 C Programming Language 10 29-Mar-2008 04:58
Hard drive/CPU Diagnoses Issues binarybug Computer Hardware Forum 1 22-Jan-2007 19:23
SQL query form biggieuk MySQL / PHP Forum 2 28-Nov-2006 09:45
How can I take user input & insert into an existing and separate html page? dstrain MS Visual C++ / MFC Forum 1 18-Jun-2006 11:44

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:16.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.