Forums

Repost Form Data Error

acschnabel 21 Jan, 2009
Can you tell me what is wrong with this code? I'm trying to repost form data after the image verification has been incorrectly entered.

<input name="name" type="text" id="name" value=<?php echo $_POST['name']; ?>/>



When I use that value, I get an error on the contact form:

Notice: Undefined index: name in /home/wwwtota/public_html/mambots/content/chronocontact.php(201) : eval()'d code on line 8



and the code <br is shown in my input box.

I've been on Chronoforms for about 4 days now. Already loaded it on 3 of my sites and have been able to get all my questions answered via the FAQs and forums. GReat work.

Tony.
GreyHead 21 Jan, 2009
Hi Tony.

You are seeing a PHP warning because when the form is first written $_POST is empty and $_POST['name'] is undefined.

Go to your site Global Configuration and set Error Reporting to 'System Default', 'Simple', or 'None' and one of these should hide these messages.

The <br . . . you see is part of a similar message displaying inside the input area.

Bob
acschnabel 25 Jan, 2009
Thanks for the quick reply, but no luck.

The Error Reporting in Global Configuration was set to "System Default". Changing it to None, or Minimal did not take out the error that gets shown.

Joomla v1.0.15. Is there something else I can try?
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger