![]() |
php ignoring quotes :X
Code:
$options .= "<option onClick=\"setvals(\"$id\",\"$subject\",\"$msg\");\">".$row['subject']."</option>"; Code:
<option onClick="setvals("1,Testing Subject,Wootang Clang. I banged your mom. I banned you from my forum.);> |
PHP Code:
|
Hi
You have to use single quotes inside the JavaScript function call setvals(), because you cast the onClick value to be enclosed with double quotes! PHP Code:
|
Moved to the correct forum, please read the forum descriptions more carefully in future :)
|
All times are GMT. The time now is 11:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|