Uncaught syntaxerror: unexpected token php
I tired using the proxy solution in Origin http://localhost is not allowed by Access-Control-Allow-Origin.? and on the file proxy.php I have
In main I have
Now I call main.html in my localhost in Google chrome and the console says error on first line of php. I'm not sure what the problem is. The error message is: Uncaught SyntaxError: Unexpected token <
3 Years Ago Dear , We have an billing script when we enter value on the submition page it will create an recipt number and other details We don't know what to do or how to resolve this isse in the recipt.php page was are pushing customer mobile number and an message to tsms.php we have included our both codes below if any one can help that will be a greate help our recipt.php which will show recipt details and also trigger sms to tsms.php
tsms.php SMS PHP CODE
So please help me it was too urgent Recommended Answers
Jump to Post All 3 Replies
rproffitt 2,331 "Nothing to see here."
Moderator
3 Years Ago I have spend hours to resolve this issue but didn't got any answer from google that's why I have posted this here if your know how to resolve help me
rproffitt 2,331 "Nothing to see here." Moderator 3 Years Ago@annya. Then it's old school debugging. I take it you didn't get any line number or full line of text on the error. This means you get to go old school on the problem. That is, insert some output to a log file or screen (I supplied a link how) so you can track down what line is failing. Using any of the output methods at https://www.w3schools.com/js/js_output.asp you place (psuedo-code here) lines where you suspect it failing like this: console.log("At line 100"). Eventually you find the line that fails and either you see the issue or have to log the variables on the line to see why it complains. It's work but something a programmer does when the script doesn't show a line number or content when it fails. Reply to this topic Be a part of the DaniWeb community We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge. |