•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,905 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,309 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 14768 | Replies: 3
![]() |
•
•
Join Date: Jan 2005
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
Using Dreamweaver I have created a form that submits data to an sql database using PHP. I have a number of questions that I hope you can help with.
1. Why are some fields on the form a different colour when the background on all fields are set to white.
2. The behaviour of my submit key on click is validate form. If validations are successful, the data is posted to the database.
1. after the data is written the same form is displayed - on a successful write, how do I redirect to a thankyou page. I did have on click validate and on click go to url, but if the client validation failed - I pressed ok to the error and then was re-directed to the thankyou page.
I do not know PHP, so have been using Dreamweaver to set up the code
My submit key has the following code :
<input name="Submit" type="submit" onClick="MM_validateForm('companyname','','R','fullname','','R',
'address','','R','postcode','','R','telephone','','NisNum','email','','RisEmail')
;MM_goToURL('parent','thankyou.htm');return document.MM_returnValue" value="Submit">
so as you can see - I submit the data and go to thankyou, but if there is an error it will still go to the thankyou page.
Many Thanks
Using Dreamweaver I have created a form that submits data to an sql database using PHP. I have a number of questions that I hope you can help with.
1. Why are some fields on the form a different colour when the background on all fields are set to white.
2. The behaviour of my submit key on click is validate form. If validations are successful, the data is posted to the database.
1. after the data is written the same form is displayed - on a successful write, how do I redirect to a thankyou page. I did have on click validate and on click go to url, but if the client validation failed - I pressed ok to the error and then was re-directed to the thankyou page.
I do not know PHP, so have been using Dreamweaver to set up the code
My submit key has the following code :
<input name="Submit" type="submit" onClick="MM_validateForm('companyname','','R','fullname','','R',
'address','','R','postcode','','R','telephone','','NisNum','email','','RisEmail')
;MM_goToURL('parent','thankyou.htm');return document.MM_returnValue" value="Submit">
so as you can see - I submit the data and go to thankyou, but if there is an error it will still go to the thankyou page.
Many Thanks
•
•
Join Date: Jan 2005
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
I have solved these queries
•
•
•
•
Originally Posted by dave_s
Hi,
Using Dreamweaver I have created a form that submits data to an sql database using PHP. I have a number of questions that I hope you can help with.
1. Why are some fields on the form a different colour when the background on all fields are set to white.
2. The behaviour of my submit key on click is validate form. If validations are successful, the data is posted to the database.
1. after the data is written the same form is displayed - on a successful write, how do I redirect to a thankyou page. I did have on click validate and on click go to url, but if the client validation failed - I pressed ok to the error and then was re-directed to the thankyou page.
I do not know PHP, so have been using Dreamweaver to set up the code
My submit key has the following code :
<input name="Submit" type="submit" onClick="MM_validateForm('companyname','','R','fullname','','R',
'address','','R','postcode','','R','telephone','','NisNum','email','','RisEmail')
;MM_goToURL('parent','thankyou.htm');return document.MM_returnValue" value="Submit">
so as you can see - I submit the data and go to thankyou, but if there is an error it will still go to the thankyou page.
Many Thanks
•
•
Join Date: Jan 2005
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Originally Posted by Ryan828
Hi Dave,
How did u solved your ;problem. I am new for php.
I tried to use header to redirect. but it doesn't know. Also want to know the answer of first question.
Ryan
Sorry for the late reply - with regards to the different colours - this is due to me having the google toolbar installed. The different colours are a feature that google uses to show input boxes that could be autofill'd with values.
I can not remember how I solved the validation issue, but I will post my answer later.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Running VERY BASIC PHP script ??? (PHP)
- HTML Form post to PHP? (PHP)
- Is it possible to submit form values using JavaScript? How? (JavaScript / DHTML / AJAX)
- WEIRD! php pages do not load unless i hit refresh (PHP)
- php wont submit data into the database (PHP)
Other Threads in the PHP Forum
- Previous Thread: Help With PHP Code Snip for PHPBB Board?
- Next Thread: Free PHP Support?


Linear Mode