I have a form that I just created and I put it on the homepage but now I want to put it on the rest of the website but I don't want to manually paste it to over 30 pages. Is there a html to html calling code for that?
I really appreciate any help on this one. It's pretty important and urgent. Thanks.
HTML Calling code
Started by TheCEOandPresident, Aug 12 2010 11:40 PM
6 replies to this topic
#1
Posted 12 August 2010 - 11:40 PM
|
|
|
#2
Posted 13 August 2010 - 12:00 AM
There's nothing with HTML, but I believe you could write a CGI script to do this.
Something witty here.
#3
Posted 13 August 2010 - 12:27 AM
you sure? I feel like there HAS to be another way to call html into my other pages
#4
Posted 13 August 2010 - 11:00 AM
If you have php running behind it you could use the include tag. As far as doing it just in HTML I guess you could use a Iframe but I do not recommend it.
#5
Posted 13 August 2010 - 11:42 AM
SSI tags if your server supports them (Assuming Apache), you may need to change your file type to ".shtml" and then you could use this:
Although you'll still need to add that snippet to each page for it to be included.
<!--#include virtual="/form.html" -->
Although you'll still need to add that snippet to each page for it to be included.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#6
Posted 13 August 2010 - 12:38 PM
The point was, I thought, not adding anything to all of the pages...which I think is impossible without a CGI script (assuming, of course, that all the pages are pure HTML and not PHP produced).
Something witty here.
#7
Posted 13 August 2010 - 12:42 PM
opwuaioc said:
The point was, I thought, not adding anything to all of the pages...which I think is impossible without a CGI script (assuming, of course, that all the pages are pure HTML and not PHP produced).
You can automatically prepend a header/footer without modifying any pages with Apache, but a form? It's impossible, I just listed the most relevant method.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.


Sign In
Create Account


Back to top









