This is a discussion on "Form submit" within the PHP Forum section. This forum, and the thread "Form submit are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Form submit
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Form submit
Below is a form with PHP code, can anyone tell me why the data from the form once filled is not being submitted into my database?
Created a form like this plenty of times, but when i make it larger it appears not to work! Its real basic PHP code, and i have probebly missed somthink being dozy! Thanks!
|
|
|
|
||||
|
Re: Form submit
Do you not need to list your column names in your Insert statement?
This is one of mine...
Hope that helps. |
|
|||
|
Re: Form submit
Hello Marc, how are you today?
I have just tried what you said & altered the code to suit, its still not working! I am using Mysql administrator to check if the data has gone into teh database, and it is creating new lines but leaving the coloumns blank, any ideas Cheers, |
|
||||
|
Re: Form submit
These variable names:
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: Form submit
Damn i have been told this before by Alex Geek and i have made the same mistake twice, am getting better but still making dosy "A_s mistakes all the time
Ha ha its the only way you learn i suppose, Thanks for your help mate! By the way i added you to me MSN, is the end of your address supposed to say .de or .com ? Take Care! |
|
|||
|
Re: Form submit
Ok c010depunkk was right by fixing the varables all the data from the form has been posted into the database fine the only problem i am having now is the images are still not being sent to the destiantion directory "images"
And the name of the images is still not being posted into the databse with the rest of the form data! So basically am back to wear i started, i had the same problem when writing the form in an array in me other post thread, Please dont give up on me now, ave been trying to fix this problem for a week, Can anyone help Thanks |
|
|||
|
Re: Form submit
It looks like your overwriting the $target variable. Each time you use the assignment operator with $target it rewrites the data of that variable. Maybe try setting your directory, and then adding the filenames to it.
Make sense?? |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| submit many forms - auto submit the same form many times | divs | JavaScript Forum | 0 | May 24th, 2007 10:10 |
| How to automate Form Submit??? | TheGaffer8 | Web Page Design | 3 | Apr 19th, 2007 11:08 |
| how to submit form | tobymather | Web Page Design | 13 | Apr 17th, 2007 17:09 |
| Form Submit button Help!!! | Aaron1988 | Web Page Design | 2 | Nov 25th, 2006 13:51 |
| Submit 1 form to 2 different URLs | alstefani | Classic ASP | 1 | Aug 31st, 2005 05:26 |