iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-21-2007, 11:20 AM
WebProWorld Member
 
Join Date: Aug 2003
Location: Jersey City, NJ
Posts: 74
jazzmatazz2005 RepRank 0
Default Write this

I have a script that when used it writes a page to the server
Part of the code looks like this

$htmlstart = "
<HTML>
<HEAD>
<TITLE>".@$fname."'s Personal Page</TITLE>
<META http-equiv=Content-Type content=\"text/html; charset=iso-8859-1\">
<STYLE type='text/css'>
BODY {
BACKGROUND-COLOR: #d8a8e7
}


<!--
img.upper {position: relative; top: 5px; left: 55px; font: bold italic 36pt times, serif; color: #FF9900}
H3.upper {position: relative; top: -415px; left: 3px; font: bold 18pt Arial, sans-serif; color: gray; margin-left: 0px; margin-bottom: -100px;}

H3.lower {position: relative; top: -100px; left: -35px; font: bold 18pt Arial, sans-serif; color: black; margin-left: 70px; margin-bottom: -100px;}

H3.onlylower {position: relative; top: -50px; left: -35px; font: bold 18pt Arial, sans-serif; color: black; margin-left: 70px; margin-bottom: -50px;}

.stand {
color: #000000;
background-color: #c94093;
font-family: Palatino Linotype;
}

.uname {
color: #CC0000;
font-family: Palatino Linotype;
}

.us {
color: #003399;
font-family: Palatino Linotype;
font-size: 14px;
}
.them {
color: #CC3366;
font-family: Palatino Linotype;
}


-->

</STYLE>

<META content=\"MSHTML 6.00.2900.2180\" name=GENERATOR>



</HEAD>

The problem is i want to attach the "global" style sheet to the pages that it writes.
I also want to add keywords and the page description.

I want to have the things that the page is supposed to have. When i try to add these things to the code, the pages it creates doesn't show in the browser.

Any ideas on how i can fix this
__________________
It's better to do business with me than against me!
Reply With Quote
  #2 (permalink)  
Old 10-23-2007, 02:44 AM
WebProWorld Pro
 
Join Date: Jun 2004
Location: The Barrens of NE Ohio
Posts: 236
nottheusual1 RepRank 0
Default Re: Write this

can you provide a sample of the code that fails?

thanks.
__________________
:not_the_usual1
[you decide]
________________
All in my opinion, which, when combined carefully with a $1 bill, gets you a cup of coffee at the corner store.
Reply With Quote
  #3 (permalink)  
Old 10-23-2007, 11:26 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,648
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: Write this

I think you are using the wrong quotes. You should use a single quote (') rather than double quotes (") around the text you are adding. Most HTML tags should have double quotes, and you won't need to escape them. The script will also run slightly faster because the preprocessor does not analyze the content of single-quoted strings.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHPBB3 - Re-write? megahertz28 Web Programming Discussion Forum 1 07-18-2007 12:36 AM
mod re-write razsports Web Programming Discussion Forum 1 03-07-2006 08:31 PM
To Write or Not Write Articles ikgrauke Search Engine Optimization Forum 7 10-25-2005 10:11 PM
How not to write a keywords tag Mel Search Engine Optimization Forum 5 05-21-2004 11:48 AM
The Write Way to Market Nicholas Dixon Marketing Strategies Discussion Forum 0 04-23-2004 07:14 PM


All times are GMT -4. The time now is 10:14 PM.



Search Engine Optimization by vBSEO 3.3.0