Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
s0mus #1
Parse html
I need some ideas on how to accomplish this: (if you have code examples that
would be better)
I need to allow useres to upload a html file that contains information as well
as some mild formatting tags, then have coldfusion extract the data and import
that into a MySQL database.
I can find lots of information on doing this with XML or plain TXT but I don't
have that option.
Thanks
s0mus Guest
-
Configuring ColdFusion to parse HTML files
I'm trying to get ColdFusion to parse HTML files (most of the threads I found on this on the web end up in discussions suggesting it shouldn't be... -
How to use .htaccess to parse only .html files as .php?
***newbie question*** Hi, I am trying to make my server (Apache) parse .html files as .php. I found this line of code: ForceType... -
Parse a big HTML text
From: Pablo Fischer <pablo@pablo.com.mx> I believe the actuall code looks like this, right? $myvar =~ s/\###1###/$name/; You are missing a... -
[solved again] Parse a big HTML text
I cant believe it.. Every message that I send I get an obvious answer by my self. Thanks and sorry I need to $var =~ s/$s1/$s2/g -
How to parse html table
I would like to parse html table retriving table information. -
nTesla #2
Re: Parse html
Does this help?
<cfscript>
function getTextFromTag(tag, text) {
startTag = "<" & tag & ">";
endTag = "</" & tag & ">";
tagStart = findNoCase(startTag, text) + len(startTag);
tagEnd = findNoCase(endTag, text);
return mid(text, tagStart, tagEnd - tagStart);
}
</cfscript>
nTesla Guest



Reply With Quote

