Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
We are now going to take a look at the contact us page for our scuba vacations website and I have a completed version of a spite validation form field form, so we'll go and take a look at that. The first thing we need to do in order for that to work correctly. The spry requires additional files within our site structure. Now right now we only have the spry validation text field pieces. We don't have any of the other types of form fields. And these were created and added by Dreamweaver.
When we went through the Spry form fields section, so if you don't have these it's not a problem. We're going to go out to the course files for chapter seven, I did not want to have them in here because I want to show you how you need these files in order for this to work. So in order to add the spry assets folder for all of the form fields You want to go up to the chapter 7. And within the chapter 7 files, there is a Spry Assets folder. And just as a reminder of where your files are located, on our web server on the PC side, it's in the C drive > Zamp.
Inside of XAMP is an HT Docs folder. If you are on the Mac's side you go out to your Applications folder and inside Applications is a MAMP folder. Once you find the XAMP or MAMP folder, these are identical on both systems... We want to open up HT docs folder, and we're going to open up our Scuba Vac Vacations folder, and drop in that entire spry assets folder, from the chapter seven files. It doesn't matter if you use the start of complete, the Spry Assets folder is identical.
Now once you have that Spry assets folder from the chapter 7 either start or complete files, open up HT Docs. Inside of that is your Scuba Vac, or Scuba Vacation folder. We'll open that up and paste in our Spry assets. Now I do already have one folder so I'll say, yes I want to merge this, and I'm going to go ahead and copy and replace everything.
So once we have done that there should be eight files in your spry assets folder, not just two for the text field. Now that we have that copied in, all of our form fields for our Spry piece should be working. So I'll close that up, I can refresh in the files panel, and you'll see I now have all eight files. If you don't have all eight files, go back out and copy them one more time. You cannot rename any of these files and you cannot rename the folder. Now it is possible to rename it, however, you have to be very cautious.So I generally recommend you not do that.
So we'll close it up, we don't need to bother that folder anymore Other then to make sure it's on our live site, once we're completely done with this website. So let's go out and look at the Contact Us Spry Validate. And the only reason I did it this way was because I didn't want you to have to sit and watch while we added all of these form fields. So I will get rid of my Insert bar at the top. And I will also close up My Properties area, so you have a little more space to see.
Here is our Spry form. Now as I hover over these, you can see this is my name field, email, topic, radio group, and check box. I added 1 of each, so you could see how this works. If we put this into the browser. And we'll go ahead and do that. There we go. We'll take a look at it. If I click Contact Us, it looks just like the Spry Validation form we created.
Its also added some span text with Spry, so it is fully customizable if you understand the CSS behind it. So that is a spry validation form the downside of a spry validation form is its client side just like every other java script piece, so if somebody has access to turning off java script it is possible to get form submitted. Without full validation being attached to them.
So server-side validation is the way you can truly test for that piece. So what we're going to do is go ahead and build a final form that you can see. There are a lot of different options for working with forms. Within your website and its up to you to determine which form makes the most sense for that particular form.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 101773 Viewers
61 Video lessons · 88535 Viewers
71 Video lessons · 72348 Viewers
56 Video lessons · 104059 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.