stylesheet definition in html tags

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
Raiden
Posts: 3
Joined: Tue Jan 27, 2009 10:33 pm

stylesheet definition in html tags

Post by Raiden »

Hallo,

I'm testing Rapid PHP 9.3 and Rapid PHP 9.4. Following Code insert a wrong quote if I write whitespaces after stylesheet definition in HTML Tags:

Code: Select all

<div style="... any stylesheet code ...;""
This problem ist in general with special characters in quotes:

Code: Select all

echo "this is my test!""

Code: Select all

while($i == "5+""
bye
Raiden
Last edited by Raiden on Tue Feb 03, 2009 11:32 pm, edited 1 time in total.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: stylesheet definition in html tags

Post by Karlis »

I am afraid I do not get this. Precise step by step instructions would be helpful. Thanks!
Karlis Blumentals
Blumentals Software
www.blumentals.net
Raiden
Posts: 3
Joined: Tue Jan 27, 2009 10:33 pm

Re: stylesheet definition in html tags

Post by Raiden »

ok, sorry for my bad engl. :oops:

I write this for example:

Code: Select all

<div style="width:300px;"
, then I placed the cursor behind the last quote and press some whitespaces... -
now whitespace insert a wrong quote

Code: Select all

<div style='width:300px;'
- works correct

Many special chars at last in quotes have this Problem, testing with Rapid PHP 9.3 and Rapid PHP 9.4 on WinXP.

I hope you can verify this, or not :wink:

this video shows the problem:
http://de.tinypic.com/player.php?v=9bkwp2&s=5

bye
Raiden
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: stylesheet definition in html tags

Post by chrisjlocke »

Your PHP code is wrong, not RapidPHP.

echo "<div style="width:300px;height100px;";

is invalid. The interpreter sees it as "<div style=" as one command, with the rest of the sentance as another. You need single quotes in there.

echo "<div style='width:300px;height100px;' ";

I can't duplicate the steps in your video - WeBuilder 9.1 doesn't do that. Maybe its an auto-correct thing you've put in there?
Raiden
Posts: 3
Joined: Tue Jan 27, 2009 10:33 pm

Re: stylesheet definition in html tags

Post by Raiden »

ok sorry, it's my PHP syntax bug in this line :oops: but if I escaped the quote is the problem existing

The Function Auto- Replace is in default settings activated. I did not change this. There is defined to replace quote " with "". If I delete this default statement, of course RapidPHP works correct.

Maybe, the Auto- Replace function can better parsing the line.

thank you for this feedback
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: stylesheet definition in html tags

Post by chrisjlocke »

Are you sure its default to replace " with "" ? That seems a nuts thing to do. I can understand replace "" to ", but not the other way round.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: stylesheet definition in html tags

Post by Karlis »

Hm, I can not say anyhing. I will think about this, but " to "" replacement is a very unusual situation.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply