Question:
Problem converting javascript to php - PLEASE HELP!!?
elaineperez22
2007-05-02 10:57:07 UTC
HI in need to code this to PHP so clueless - please help me :





Untitled





Three answers:
Total IT Solution
2007-05-02 11:30:24 UTC





Untitled










$count=1;

$str="Hello";

do

{

$count++;

?>




}

while ($i<=7);

?>





kia
2016-05-19 03:17:49 UTC
To convert a string to the URL-encoded form suitable for transmission as a query string (or, generally speaking, as part of a URL), use the escape function. This function works as follows: digits, Latin letters and the characters + - * / . _ @ remain unchanged; all other characters in the original string are replaced by escape-sequences %XX, where XX is the ASCII code of the original character. Example: escape("It's me!") // result: It%27s%20me%21 In Unicode-aware browsers (that support JavaScript 1.3) the function escape has a more complex behavior. If the input is a Unicode string, then Unicode characters will be converted to the Unicode escape-sequences %uXXXX.
{flick}
2007-05-02 11:02:29 UTC
PHP and Javascript are 2 completely different languages and cannot be converted to the other. Just add this code into your php file. That's all.





This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...