codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Can anyone please help me, html table to access.  ijared at 17:26 on Thursday, May 31, 2007
 

Hello,
I have a website with html tables that I want to put into an access database or any database for rthat matter. Can anyone help me with that?
Thanks
ijared

  Re: Can anyone please help me, html table to access.  Kaykay at 09:05 on Thursday, June 07, 2007
 

Do other values go to your database?

  Re: Can anyone please help me, html table to access.  alcazar at 05:14 on Friday, June 15, 2007
 

Well there are two approaches to do this.

1.HTML::Parser can be used which can be used to crawl throgh the HTML tags extracting the data from in between the tags.

or

2.Using Regexes


In Both approaches a carefull study of the pattern of the HTML tags used in the HTML form needs to be done to write the code.These types of programs cannot be generic(that is wont work for any web page) but would be specific to the HTML web page in question.

Cheers
Alcazar.


  Re: Can anyone please help me, html table to access.  Kaykay at 05:48 on Friday, June 15, 2007
 

Give every value in your table data '<td>' a name and use asp to extract data from table to access database e.g
<%
Username=Request.Form("username")
%>

  Re: Can anyone please help me, html table to access.  ijared at 12:49 on Sunday, June 17, 2007
 

What I am talking about is a table in an html page like below and I want to put the data in the table to an access database:


<CENTER> Saute onions in olive oil for five minutes or until tender. 

Add spices and  saute for 2 minutes.  Stir in vinegar and sugars,

then simmer, partly covered for 15 minutes.</CENTER>



<CENTER> </CENTER>

=========================================================
This is the table
====================================================

<CENTER><TABLE BORDER=0 COLS=2 WIDTH="80%" BGCOLOR="#FFFFFF" >

<TR>

<TD><B>4 lb</B>         Slightly

under ripe peaches 

<BR><B>3 c</B>          Sliced

onions 

<BR><B>1/3 c</B>       Olive oil 

<BR><B>1 tb</B>         Turmeric 

<BR><B>1 tb</B>         Ground

cumin 

<BR><B>2 ts</B>          Minced

garlic 

<BR><B>1 ts</B>          Minced

ginger 

<BR><B>1 ts</B>          Dried

red pepper 

<BR><B>1/2 ts</B>       Pepper 

<BR><B>1/2 ts</B>       Ground cardamom 

<BR><B>1/2 ts</B>       Dry mustard 

<BR><B>1/4 ts</B>       Nutmeg 

<BR><B>1/4 ts</B>       Ground cloves. 

<BR><B>2 c</B>          

White wine vinegar 

<BR><B>2/3 c</B>        Firmly packed

brown sugar 

<BR><B>2/3 c</B>        White sugar </TD>



<TD><B>Serves: 1</B> 



<P><B>Blanch</B> peaches slightly in boiling water for 1 minute. 

<B>Drain, peel pit and slice</B>. 

<BR><B>Add</B> to onion mixture and simmer just until tender. 

<BR><B>Transfer</B> with slotted spoon to sterilized mason jar. 

<BR><B>Reduce</B> syrup over high heat to 1 1/2 cups. 

<BR><B>Add</B> slowly to jars to almost cover fruit. 

<BR><B>Stir</B>. 

<BR><B>Fill</B> jars slowly with syrup, cap loosely and cool. 

<BR><B>Tighten</B> caps and let stand in dark place at least 2 weeks. 

<BR> 

<BR> 

<BR> 

<BR> 

<BR> 

<BR> </TD>

</TR>

</TABLE></CENTER>

  Re: Can anyone please help me, html table to access.  alcazar at 12:24 on Monday, June 18, 2007
 

Thast what I told earlier.Thats exactly what HTML::Parser can do for you...It will pick up data from in between the tags and put in your database.

Reagrds,
Sumit








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Passing parameters to a perl program from a HTML form
•  Re: calling javascript function in asp page
•  Calculation error in Javascript
•  help try to update parameters in sql server with Stored Procedure in ASP
•  help try to update parameters in sql server with Stored Procedure in ASP
•  help try to update parameters in sql server with Stored Procedure in ASP
•  Re: Can anyone please help me, html table to access.
•  Get strings between tags on web pages
•  Providing time parameters to user when searching


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007