Jump to content

HTML Calling code

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
TheCEOandPresident

TheCEOandPresident

    Learning Programmer

  • Members
  • PipPipPip
  • 96 posts
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.

#2
opwuaioc

opwuaioc

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 216 posts
There's nothing with HTML, but I believe you could write a CGI script to do this.
Something witty here.

#3
TheCEOandPresident

TheCEOandPresident

    Learning Programmer

  • Members
  • PipPipPip
  • 96 posts
you sure? I feel like there HAS to be another way to call html into my other pages

#4
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
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.
Posted Image

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
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:
  <!--#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.

#6
opwuaioc

opwuaioc

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 216 posts
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
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts

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.