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)
Hi again😉
So, are you sure that you don't have anything in the "Redirect URL" field or the "Action URL" field and that you don't have any form tags inside the HTML code ?
Max
So, are you sure that you don't have anything in the "Redirect URL" field or the "Action URL" field and that you don't have any form tags inside the HTML code ?
Max
Thanks heaps for your timely response...
No, i thought i would start off VERY basic and get my first form to work before i start doing any redirections or anything like that. I did tinker with them at the beginning, but started to strip everything back when i started experiencing some little problems.
Would it help for you to have a look at the dev site? (I can whim or private message you the link - it is not for public release yet.)
No, i thought i would start off VERY basic and get my first form to work before i start doing any redirections or anything like that. I did tinker with them at the beginning, but started to strip everything back when i started experiencing some little problems.
Would it help for you to have a look at the dev site? (I can whim or private message you the link - it is not for public release yet.)
Just email me any message at the contact us page, I will reply then you can attach me a form backup!
Regards
Max
Regards
Max
This topic is locked and no more replies can be posted.