Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ How to pull in data into an HTML sheet

Posted by: helpneeded22 Jul 27 2012, 12:38 AM

I have an HTML sheet that references the name of a single picture and a name for the picture.

I would like to frequently re-order the names and pictures.

I would like to just have picture 1 refer to pic1.jpg and the corresponding name just refer to name1. I know this could likely be done easily if I coded the page in php or asp.net but I have not taken the time to learn those yet. I was wondering if there is an easy way to just use something like javascript to pull this information in. The names, I would just type into some other sheet referencing each name to the actual name (ie. name1 = sunrise)

Is there any quick and easy way to do this in HTML, or is it time for me to learn php?




Posted by: Darin McGrew Jul 27 2012, 01:51 AM

You can't do it with HTML. It isn't a programming language. It's just markup.

It can be done with JavaScript, assuming that JavaScript is supported and enabled in the visitor's browser. Debugging JavaScript can be "interesting" given browser differences.

It would be best to do it with a server-side program. PHP is a popular choice for server-side programs.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)