Question about The PHP Group PHP

1 Answer

PHP Disappears When i type the following in the address bar ? http://www.url.com/test.php?y=c+b php removes the "+" char. When I echo it in the php page the "+"char disappears.

Posted by on

  • mollE Aug 26, 2008

    Thanks Jhon i had the same problem, you solved it.




×

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Contributor
  • 30 Answers

To encode a '+' so it will appear as a '+' when decoded
automatically by PHP –
rawurlencode(rawurlencode("+"));

If you just call rawurlencode() once, the resulting "%2B" is converted
to '+' before '+' symbols are converted to spaces, which is not very
useful.

Posted on Jul 28, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Hello. I need a simple help (I think). If I have an webbadress like "http://my.adress.com/home.html" and I want to make a form that puts whatever you type in a textfield at the end of the...


A simple solution would be!

<form action="http://my.address.com/home.html<?php echo $name; ?>" method="get"><!-- Note a variable after the link -->
<input type="text" name="name" value=""/>
<input type="submit" name="submit" value="Submit"/>
</form>
<?php
    if(isset($_GET['submit'])) {
        $name = $_GET['name'];
    }
?>

Dec 29, 2010 | The PHP Group PHP

1 Answer

Hi, how do i call a javascript function from a separate file from my php file? I do it like this but aint working... php file --------------------- &lt;?php echo "&lt;script...


try this

<html>

<head>

<title>Test</title>

<script src="test.js" type="text/javascript"></script>

</head>

<body>

<?php

echo '<script type="text/javascript">someFunction();</script>';

?>

</body>

</html>


Good Luck

Dec 10, 2010 | The PHP Group PHP

5 Answers

I am new to computers. i downloaded youtube downloader and was asked to type in my url address what is url, apart from the bar at the top.


hi...
its simple my friend...
there in the URL box you are required to enter the URL of the video which u want to download...
open youtube and find your video...then
first copy the URL of the video which u want to download from the bar at the top and
just paste this URL in the URL field of the youtube downloader....
ok....its simple...

thank you
and plz dont forget to vote me and give me ratings...plz

Jun 30, 2010 | Compilers & Programming Tools

1 Answer

PHP/SQL Problem


have you read the dataset in (i.e $row)?
you would require some sort of select statement to read the data frm sql into a dataset before yopu can read and display each record in the dataset.

i gather you may be new to sql statements. the bottom commect $query.... is reading the dataset into $query, the one you have issues with needs code that reads a record into $row

Jan 25, 2010 | The PHP Group PHP

2 Answers

Can you give me a free book or maybe free helpful things that can help me in my vb lecture


yes we can...i m giving you some link copy it and paste it into your browser's url.........

  1. http://www.computer-books.us/vb_0002.php
  2. http://www.free-ebooks-download.org/free-ebook/dotnet/VB.NET/
  3. http://www.oflameron.com/
  4. http://www.ebooks-space.com/ebooks/Visual-Basic.html
  5. http://www.programmersheaven.com/mb/VBasic/392628/392628/free-visual-basic-ebooks-download-for-you/

Jul 25, 2009 | Compilers & Programming Tools

1 Answer

Php code to display live stock market information on our htmlpage


If I understand correctly that you want to use PHP to download the output from a URL into a file, then you want to use PHP's curl functions:
http://us3.php.net/manual/en/ref.curl.php

A tutorial for basic PHP curl usage is here:
http://phpsense.com/php/php-curl-functions.html

Apr 08, 2009 | The PHP Group PHP

1 Answer

PHP issues with ''''... Please help!!!


Hello.

If you want PHP to use quotation marks you have to seperate them from the ones that start the expression by a backslash(\).

Here are two examples:
WRONG: echo "A "QUOTE" AND SOME TEXT";
RIGHT: echo "A \"QUOTE\" AND SOME TEXT";

or

WRONG: echo 'A 'QUOTE' AND SOME TEXT';
RIGHT: echo 'A \'QUOTE\' AND SOME TEXT';

I hope this helps.

Kind Regards,
Wilhelm@X-ex.info

Feb 26, 2009 | The PHP Group PHP

1 Answer

PHP Array Question


<?php
$color = array("red", "blue", "yellow");
foreach($color as $key => $value) {
echo $key . " " . $value . "<br>";
}
?>

More info: http://www.phphelps.com/7_Creating_and_looping_array_in_PHP.shtml

Sep 09, 2008 | The PHP Group PHP

2 Answers

Echo PHP


Print outputs a single string, echo can output multiple strings. (It's in the help file.)

Sep 08, 2008 | The PHP Group PHP

Not finding what you are looking for?
The PHP Group PHP Logo

Related Topics:

919 people viewed this question

Ask a Question

Usually answered in minutes!

Top The PHP Group Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Mike

Level 3 Expert

4331 Answers

Mishan Kasiparsad

Level 2 Expert

142 Answers

Are you a The PHP Group Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...