Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML and Variables

Status
Not open for further replies.

SWarrior

MIS
Dec 19, 2003
111
US
It's been a long time since I've done HTML.

Just trying to get a simple signature file working so that an every day user can edit the file to put their name, title, and address in without messing up the html formating.

I'm not even sure how to get the variables to work either.

example in code format.

<html>
<!--
ONLY Change the information between the quotes
for the next 3 lines
-->
name="Bob Jones"
title="Sales Rep"
phone="123-456-7890"

<!-- DO NOT EDIT BELOW THIS LINE -->

<body>

<style bla bla bla>
%name%
%title%
%phone%
</style>
</body>
</html>
 
This can't be done in HTML.

You will have to use a scripting language to do this (i.e. javascript for a client-side approach, asp, php etc for a server side approach).


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Can this be done using html to read a text file that a user could edit ?
The final file MUST be html.
 
Can this be done using html
No, it can't as HTML is not a scripting language. You will have to use one of the methods I suggested above (SSI would also be another method that I forgot to mention).


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
If this is meant to be printed, then you could add input boxes and people would write in those and when printed, the input boxes would be styled without borders (it wouldn't show that they are boxes). Similarly, you could use positioning to put them wherever you want on the printed page.

However, that would be the last resort. Mark's suggestion of using the server side scripting would end up creating HTML file anyway.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top