Jump to content

AJAX Form Validation, echoing an image with PHP through JavaScript


suttercain

Recommended Posts

Hey Everyone,

 

I am using AJAX to validate a form. I based this form on the code found at this tutorial:

http://particletree.com/features/degradable-ajax-form-validation/

 

The form has three separate files:

index.php (which is the form)

formvalidation.php

validate.js

 

This is my issue:

 

When I fill out a form field and move to the next the text next to that form field changes from "Required" to "Thank You". I instead would like to have two images. A unchecked box and then a checked box (images, not the form checkboxes).

 

Is there any way to do this? I would post my code but it is longer than the example link I posted above because I have included a lot more for fields. So please look at the tutorial and see if you know a way to replace the text with an image.

 

Thanks.

 

SC

 

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.