I have a plain contact (test) form I have setup:
In Form HTML:
Name: <input name="name" type="text" id="name" size="45" />
</br>
Email: <input name="email" class="validate-email" type="text" id="email" size="45" />
</br>
{imageverification}
</br>
<input type="submit" name="submit" id="submit" value="Submit" />
On Submit code - after sending email:
<h2>Your form was submitted successfully.</h2>
</br> </br>
Your name: <?php echo $_POST['name'] ?>
</br> </br>
Your email: <?php echo $_POST['email'] ?>
The submit is doing a couple of strange things:
1. If all of the fields are filled out, the form automatically redirects to the home page of the website, without the "thankyou" message (still successfully sends an email, though);
2. If none of the fields are filled out, and the submit button is clicked on, it also reverts to the home page (is there something else i may have forgotten to do re basic form validation?)
I need to be able to tell the user they have NOT filled out the form successfully, or something like that.....
(I tried to restore the sample file, but it doesn't work.)
=======================================
I am running ChronoForms V2.5 J1.5 RC2.1 Licensed
- Joomla 1.5 on Apache/1.3.41 (Unix) PHP/5.2.4
(Joomla! 1.5.1 Production/Stable 8-February-2008)
In Form HTML:
Name: <input name="name" type="text" id="name" size="45" />
</br>
Email: <input name="email" class="validate-email" type="text" id="email" size="45" />
</br>
{imageverification}
</br>
<input type="submit" name="submit" id="submit" value="Submit" />
On Submit code - after sending email:
<h2>Your form was submitted successfully.</h2>
</br> </br>
Your name: <?php echo $_POST['name'] ?>
</br> </br>
Your email: <?php echo $_POST['email'] ?>
The submit is doing a couple of strange things:
1. If all of the fields are filled out, the form automatically redirects to the home page of the website, without the "thankyou" message (still successfully sends an email, though);
2. If none of the fields are filled out, and the submit button is clicked on, it also reverts to the home page (is there something else i may have forgotten to do re basic form validation?)
I need to be able to tell the user they have NOT filled out the form successfully, or something like that.....
(I tried to restore the sample file, but it doesn't work.)
=======================================
I am running ChronoForms V2.5 J1.5 RC2.1 Licensed
- Joomla 1.5 on Apache/1.3.41 (Unix) PHP/5.2.4
(Joomla! 1.5.1 Production/Stable 8-February-2008)