SMF For Free Support Forum
Signup For Free Forum
July 30, 2010, 06:15:16 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [REQUEST]Smf Page  (Read 752 times)
0 Members and 1 Guest are viewing this topic.
xboi26
SMF For Free Full Member
*
Offline Offline

Posts: 154

PROJECT Shop


View Profile WWW
« on: March 17, 2009, 12:06:50 pm »

Forum Url: http://x.smfforfree.com
even though we already have a webpage editor, i still want that smf page to be fixed.Allowing these ".So umm agent moose, can you try and make the code again?Would REALLY be helpful to me!
« Last Edit: March 17, 2009, 04:39:29 pm by xboi26 » Logged

Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 941



View Profile WWW
« Reply #1 on: March 18, 2009, 04:56:59 am »

Replace double quotes with \". (put a \ before it)
Logged

xboi26
SMF For Free Full Member
*
Offline Offline

Posts: 154

PROJECT Shop


View Profile WWW
« Reply #2 on: March 18, 2009, 12:05:49 pm »

so the / makes it act as if its gone and the " work?
Logged

Colette Brunel
SMF For Free Sr. Member
*
Offline Offline

Posts: 423



View Profile
« Reply #3 on: March 18, 2009, 01:30:30 pm »

The backslash escapes the double quotes.
Logged
xboi26
SMF For Free Full Member
*
Offline Offline

Posts: 154

PROJECT Shop


View Profile WWW
« Reply #4 on: March 18, 2009, 03:33:37 pm »

so doing this /" is the same thing as this " but it works in the code?
Logged

Colette Brunel
SMF For Free Sr. Member
*
Offline Offline

Posts: 423



View Profile
« Reply #5 on: March 18, 2009, 09:10:07 pm »

Example with PHP:

Code:
$example_one = "I'm going to sleep";
$example_two = 'I'm going to sleep';

The first example would show: I'm going to sleep
The second example, however, would not load. That is because the single quote used to divide "I am" into "I'm" is not assumed to be a divider, but the closing tag. In order to prevent confusing the parser, you "escape" the value to ensure that the code does not stop there. The slash does not appear in the code itself-- it's more of a "yes, there is more, keep going" icon thing.

So, the proper method would be:

Code:
$example_two = 'I\'m going to sleep';
Logged
xboi26
SMF For Free Full Member
*
Offline Offline

Posts: 154

PROJECT Shop


View Profile WWW
« Reply #6 on: March 18, 2009, 09:23:06 pm »

confusing but ill try to understand
Logged



Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 0.307 seconds with 19 queries. (Pretty URLs adds 0.096s, 2q)