close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Server validation not checking errors

Thread began 6/20/2016 5:20 pm by mrs | Last modified 3/01/2017 2:14 am by mrs | 101 views | 8 replies

mrs

Hi Ray, I have added the validation code to the thanks page, but I am now getting errors in the process of what I am trying to achieve.

WITH THIS THE FORM VALIDATES BUT RECORD INSERT NOT WORKING WITH THIS LINE OF CODE
<form action="bike-enquiry-thanks.php?id=<?php echo($rs_bike->getColumnVal("fld_bid")); ?>" method="post" id="enquiry" name="enquiry">-->

WITH THIS THE FORM WON'T VALIDATE BUT RECORD WILL INSERT WITH THIS LINE OF CODE
<form action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>" method="post" id="enquiry" name="enquiry">

I was hoping to add all the code to one page (bike-enquiry.php) so it would be easier to troubleshoot rather than have to do it across several pages. I am still to add in code for sending emails yet. By having code on two separate pages seems to kill off one or the other processes.

I assume I need to do it in this order:
1. Validate form entries
2. Enter form contents onto DB
3. Trigger email of form contents

However, by having the validation on a subsequent page seems to be breaking that process, so how do I ensure that all processes are on one page in a sequential order?

Why is my validation on the page with the form not working? Why do I need to move it to the thanks page as this seems to be the crux of the problem? And if I need to move validation to the subsequent page, how do I then do the insert and send email?

Thanks.

Attached Files
bike-enquiry-thanks.php
bike-enquiry.php

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...