Jump to content

Recommended Posts

Posted (edited)

Hello!

    After finishing up the PHP course I have recently started the Form Validation with PHP and JavaScript project as I expect this will be something I'll do quite often. I have run into a snag or two here. The videos teach great concepts, but the plug-in used in lesson 2 with jQuery is no longer available. 

Preview attachment validation.plug-in.site.png

 
 
 
Preview attachment form-php-video.png
 
 
0?ui=2&ik=802e32c431&attid=0.1&permmsgid=msg-a%3Ar-2464895327410842609&th=186d752163989b29&view=fimg&realattid=f_lf5sofmu0&disp=thd&attbid=ANGjdJ-SFv2JLEAI9yCF7nN-HhxhrxAa7wJZ1-wtoBsTHL70rm_3ApZ5moKsP3uMk9_Whedt1FQJp-S34LbdHVaYmNV3wgFt7Kv4fsHkGGwlAxVbB5rInOin3A6G-ag&ats=2524608000000&sz=w180-h120-df-p-nu
cleardot.gif
icon_1_image_x16.png

1.1 MB

Preview attachment form-php-video2.png

 
 
I've followed along writing out the code for the sake of writing it out, but it can't work correctly without the actual plug-in's code to copy and paste into a page. 
The video shows how to make some of the inputs required by adding a few classes to them.
Then to use a validate method in the head of the page in a script block.
Preview attachment validate-script-block-head.png
 
 
The video then shows some code that is copy and pasted from the plug-in site into our validate method using an expression to check to make sure the phone number is valid, as well as a modifiable message to be displayed if the field needs to be corrected. 
This code is also dependent on being able to copy and paste the plug-in code into a page. 
Preview attachment code_copied_unavailable.png
 
 
 
Chatting earlier today in the zoom meeting, you'd said to post screen shots and describe what I was encountering. 
Please let me know if these won't  suffice or if there is something else I should be sending you as an example? 
 
Otherwise, does anyone have a comparable plug-in they can recommend? 
Edited by KCook

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...