Learn to use PHP to encode dynamic URL parameters so that they are valid and the URL functions as expected.
- [Instructor] Over the last few movies,…we learned to send a value as a URL parameter.…So far we used it to send simple data,…like an ID or a page number.…In this movie, I want us to discuss how to handle data,…which could include certain special characters…that require extra attention.…And the reason why is because they might…have special meaning to the URL.…Let me give you an example.…Let's imagine that we have a link that we want to use…that passes along a query parameter…that is the name of a company,…so company equals, and then the name of the company.…And one of our links happens to use…the company name Widgets&More,…and the name of the company is Widgets & More.…
Notice the ampersand right in the middle of the name though.…If you'll remember, that ampersand has special meaning…to the URL.…When we want to join together more than one URL parameter,…we use ampersand to join them together.…So, what we want is for the ampersand to be seen…as being data, as simply being part of…the string Widgets & More.…The problem is that the URL might be interpreted…
- Organizing project files
- Including and requiring files
- Working with URL parameters
- Encoding dynamic content
- Modifying headers and page redirection
- Creating forms and processing form data
- MySQL basics
- Using PHP to access database tables
- Creating, reading, updating, and deleting database records with PHP
- Validating data
- Preventing SQL injection
Skill Level Beginner
1. Start a Database-Driven Project
2. Build Web Pages with PHP
3. Headers and Redirects
4. Build Forms with PHP
5. MySQL Basics
6. Use PHP to Access MySQL
7. CRUD with PHP
8. Validate Data with PHP
9. Prevent SQL Injection
Next steps1m 8s
- 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.