Hello,
How to place quote (' ') between Lesson 3 ?
define('SUCCESS_URL','add_material.php?class_name=Lesson 3');
Thanks before,
Davy
define('SUCCESS_URL',"add_material.php?class_name='Lesson 3'");
Is that what you mean?
Anyway why would you want to to that for a url? Seems a bit weird.
If that is indeed what you need, I suggest reading up on some basics on quotes.
yes, that's what I mean.
http://localhost/portal/administrator2/admin/file_upload_material.php?class_name=
I wonder why Lesson 3 does not appears on the website?
I except that it appears since, the success_url is the url it will brings after the file being successfully uploaded.
What are you doing with 'Lesson 3'
? If you inject this into a query without escaping, your query will fail.
A better url would be...
"add_material.php?class_name=Lesson-3"
No quotes, no spaces. You can convert the GET class_name by replacing all - with spaces before using. Spaces and quotes in urls are weird like I stated. Better still store the resource as Lesson-3 (or Lesson3 or Lesson_3) in the first place
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.