|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
HELLLP
Can someone please asssit me in getting a form that I have on about 5 pages. I have the form hosted on one page and want it on the rest of them?
Would an <!--Include file -- > work? |
|
#2
|
||||
|
||||
|
So, let me understand this, the form is stored in a file all by itself and you want to have the forum on multiple pages?
The easiest way would be to copy and paste the HTML code for the forum onto each page, although if you specifically wish to do it dynamically then you'll have to evaluate the circumstances Before you can do an <!--include--> command, you'll need to be sure the pages can be "parsed" by the server. Using this command on a regular .html page will do nothing.. You need to tell the server to parse the page and look fior the include. If using .html pages and using the Apache webserver on a Linux machine, you can add the folloing line to your .htaccess file in your root directory to force .htm & .html pages to be parsed (if your host supports it). Code:
AddHandler server-parsed .htm .html
__________________
Darrin J. Ward, the Original Founder of SEO Chat (this site), Google Dance Tool & some other cool stuff! Read my: Professional SEO Site or Twitter: @DarrinJWard. |
|
#3
|
|||
|
|||
|
Quote:
Just a warning if your site is a busy site and consists mostly of .htm files, parsing all .htm files for SSI tags can slow the server down greatly - I speak from experience ;) |
|
#4
|
||||
|
||||
|
Yes it might slow down a bit, but itshouldn't slow it down all that much, so long as there are no more than 1 or 2 SSI's per page and the include files are small & don't require loads of modules to be called.
Using mod_perl would be a better choice than the default mod_cgi in cases like this (if running apache). |
|
#5
|
||||
|
||||
|
An effective non-SSI method is to use JavaScript includes (CSI). I know JS is a bad word aroud SEO's, but its a form and not going to be indexed anyway.
On each page: Code:
<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="form.js"></SCRIPT> Inside of code.js: Code:
document.write('<br><!-- hi im html -->'
+ '<!-- line 2 -->'
+ '<!-- line 3 -->'
+ '<!-- line 4 -->');
|
![]() |
| Viewing: SEO Chat Forums > Other > SEO Scripts > HELLLP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|