Jump to content

how to read php error into html form?


Soleous75

Recommended Posts

hello not sure this is right place please forgive if is.

 

what i am trying to do is that i have a contact form it is in a html page i have a captcha on it what i want to know is when the captcha vaalidation fails instead of an echo to a blank page how do i show that echo next to where the captcha is showing.

 

i can do this in php but was really trying to keep this a html page not php.

any help would be apprieciated.

Link to comment
Share on other sites

I'm afraid you will have to use javascript, PHP can't do such things.

 

I suggest that on the submit button you first run a javascript function that checks all your fields, including the captcha, and if necessary print an error.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.