Skip to main content
Participant
November 5, 2009
Question

Form, PHP and sendmail issues.

  • November 5, 2009
  • 1 reply
  • 797 views

Hi, I am new to web design, and am trying to set up a web site for a study project.  On the site I have a couple of forms I created in DW, and a PHP script to send the data via email. Easy enough!

However I have an issue, the PHP script will only divert to the success url if the user enters data into all the form elements. However, there are no required fields in the form, the script does send the email irrespective of data input into the form, it just doesn't divert to the success URL.

Can anyone please give me some advice on this????

Thanks in advance!

This topic has been closed for replies.

1 reply

jon8
Inspiring
November 8, 2009

use javascript or php validation or both.  google php form validation, or use the built in spry validation tools.

Participant
November 8, 2009

Thanks for your reply,

Do you think this will enable the form to divert to the success url even if the user hasn't entered data into all the fields, If I validate say one or two?

Many Thanks

Ash Bullman

jon8
Inspiring
November 8, 2009

yes