Join Joseph Lowery for an in-depth discussion in this video Creating a YAML data file, part of Working with Data on the Web.
In earlier chapters, I showed you how to take form values entered…online and save them in a specific format like CSV, XML, and JSON.…want to see how to do it in…(UNKNOWN)…and PHP? Who wouldn't?…Lets keep going.…Well, I've got index.php from the chapter 5,…05_02 folder now open in my code editor.…Again, there's a form on the page and it's down around line 40 there.…That asks for name, email, date of birth and some other data.…
However, the code we'll be using is not form…specific, so it can be used with most, if not…all forms.…Let's head back up to the top of the page and bring in our PHP.…So, I'll start with a PHP code block.…Now, the very first line of code that I'm going to bring in is an include.…And it's an include that I've found is the easiest way to output YAML code.…It's done with a special PHP class…called, Spice.…
I'm assuming that's how you pronounce it anyway.…What makes it simple is that all you need to do…is to include the spice.php file, and the code library is available.…I've downloaded a copy, so let's incorporate it.…
- Interacting with data through HTML forms
- Storing data as comma-separated values
- Saving, retrieving, and displaying data as XML
- Setting up and updating JSON data
- Creating a YAML data file
- Using HTML5 data storage solutions
Skill Level Intermediate
Integrating Google Store Locator with HTML5with Joseph Lowery43m 47s Intermediate
1. The State of Data on the Web
2. Handling Client-Friendly CSV
3. Exploring XML
4. Incorporating JSON
5. Investigating YAML
6. Applying HTML5 Solutions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.