PDA

View Full Version : Dynamic standard HTML pages??


uniprosper
01-11-1999, 05:26 PM
Hi,

I'm looking for a way to include a piece of dynamic information in my standard HTML pages.

I would like to load a webpage such as index.html and let the file look for dynamic info from the query_string.

For instance, I might want to include an HTML file that says someone's name.

Like if I types index.html?bob
the index.html would say "Hello bob".

I know what you're going to tell me. You're going to say that cgi is the best to use for these types of jobs.

I understand that, but I would like to do a similar sort of thing with HTML (it only has to be basic).

Is there anyway to do it? If not, is the someway to load this info from SSI or any other HTML extensions?

Please let me know.

Thanks,
Lee.

------------------
=========================
http://www.uniprosper.com
=========================
"If at first you don't succeed,
call it Version 1.0"

Deb
01-11-1999, 10:14 PM
Java or Javascript will also do it...

But if you want easy -- PHP3 will take care of it for you...

Let's say they enter form.html and you have:
<FORM ACTION="name.php" METHOD="POST">
Your name: <INPUT TYPE="text" NAME=name VALUE="name">


Your email address: <INPUT TYPE="text" NAME="email" VALUE="email">
<INPUT TYPE="submit" VALUE="Next">
</FORM>

When they fill it out and click Next it will take them to name.php
On name .php you can put:
<?
PRINT "Hello, $name.";
PRINT "

";
PRINT "Thank you for your interest.

";
PRINT "We promise to never spam $email.";
?>

And that will do it.. for reference check out www.Devshed.com (http://www.Devshed.com) PHP Resources....

Hope it helps
Deb

[This message has been edited by Deb (edited 01-11-99).]

uniprosper
01-12-1999, 03:39 AM
Thanks Deb!

I'll take a look at that.
I've been meaning to play around with php,
I just never got round to it.

Thanks again,
Lee.

------------------
=========================
http://www.uniprosper.com
=========================
"If at first you don't succeed,
call it Version 1.0"