Is there only one <form> and one </form> on the page?

If so, you can take the content of the file, add a special delimiter to the page just 
before and just after the <form> tags, and then grab between the delimiters by 
treating it as a list. (There are lots of better and faster ways, but I find this 
simple.)

<cfset fileContent=cfhttp.fileContent>
<cfset fileContent=replacenocase(fileContent,"<FORM","#chr(253)#<FORM")>
<cfset fileContent=replacenocase(fileContent,"</FORM>","</FORM>#chr(253)#")>

<cfset formContent=listgetat(fileContent,2,"#chr(253)#")>

Jerry Johnson

>>> [EMAIL PROTECTED] 11/02/04 10:45AM >>>
It's time to bring it around town...

I'm using cfhttp to load and read in the results to CFHTTP.FileContent.

Within the CFHTTP.FileContent is a form in the middle of the page. How can I ignore 
everything from the top of the file and start outputting from the FORM to the /FORM 
and then ignore the rest. I want to only display a certain area of the webpage I'm 
loading.

Can this be done?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Sams Teach Yourself Regular Expressions in 10 Minutes  by Ben Forta 
http://www.houseoffusion.com/banners/view.cfm?bannerid=40

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:450
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to