Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by mustish1
at 2024-07-21 16:09:41
Point:500 Replies:6 POST_ID:829063USER_ID:11851
Topic:
PHP Scripting Language;;
Hi guys: Can any one please help me in that syntax error:
Parse error: syntax error, unexpected T_STRING in /home/a7917485/public_html/selentry.php on line 32
Thanks
Parse error: syntax error, unexpected T_STRING in /home/a7917485/public_html/selentry.php on line 32
Thanks
Attachment:selentry.php
Author: mustish1 replied at 2024-07-21 17:34:02
Thanks
Expert: Ray Paseur replied at 2024-07-21 17:12:52
If you want to avoid these kinds of errors in the future, you can try using HEREDOC notation. It provides variable substitution without having to escape all of the quotes marks with those fiddly backslash notations. Amazingly easy, especially when you couple it with PHP object-oriented notation. Heed, but do not be put off by, the warning block.
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
Also, there is a character encoding collision in the sample posted here. You might find this article helpful to fix that.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11880-Unicode-PHP-and-Character-Collisions.html
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
Also, there is a character encoding collision in the sample posted here. You might find this article helpful to fix that.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11880-Unicode-PHP-and-Character-Collisions.html
Accepted Solution
Expert: Gary replied at 2024-07-21 16:33:09
300 points EXCELLENT
This line
$display_block .= "<form method="post" action="".$_SERVER['PHP_SELF'].""><p><label for="sel_id">Select a Record:</label><br/><select id="sel_id" name="sel_id" required="required"><option value="">-- Select One --</option>"; 1:2:3:4:5:
replace with
$display_block .= "<form method="post" action="".$_SERVER['PHP_SELF'].""><p><label for="sel_id">Select a Record:</label><br/><select id="sel_id" name="sel_id" required="required"><option value="">-- Select One --</option>"; 1:2:3:4:5:
Notice here
<"select id="sel_id" name="sel_id"
I escaped the "
<"select id="sel_id" name="sel_id"
I escaped the "
Author: mustish1 replied at 2024-07-21 16:28:41
I am sorry I am not understanding what I am mssing
<form method="post" action="".$_SERVER['PHP_SELF']."">
<p><label for="sel_id">Select a Record:</label><br/>
<select id="sel_id" name="sel_id" required="required">
<option value="">-- Select One --</option>";
<form method="post" action="".$_SERVER['PHP_SELF']."">
<p><label for="sel_id">Select a Record:</label><br/>
<select id="sel_id" name="sel_id" required="required">
<option value="">-- Select One --</option>";
Assisted Solution
Expert: duncanb7 replied at 2024-07-21 16:19:46
100 points EXCELLENT
There is quotes between quotes for the string
try replace "string"" text" by 'string""text'
try replace "string"" text" by 'string""text'
$display_block .= "<form method="post" action="".$_SERVER['PHP_SELF'].""><p><label for="sel_id">Select a Record:</label><br/><select id="sel_id" name="sel_id" required="required"><option value="">-- Select One --</option>"; 1:2:3:4:5:
Duncan
Assisted Solution
Expert: Gary replied at 2024-07-21 16:17:46
100 points EXCELLENT
You missed escaping a " here
<select id="sel_id" name="sel_id"
<select id="sel_id" name="sel_id"