Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Save page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Save page

 Post Reply Post Reply Page  12>
Author
single_minded98 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2004
Location: Malaysia
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote single_minded98 Quote  Post ReplyReply Direct Link To This Post Topic: Save page
    Posted: 20 January 2004 at 2:44am
 I have html page and user must input some data.
When the user press submit button the data must save into
database. How i want to save the page as .html format
or .xml format.
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 7:31am

you can post this in the ASP forum.

http://forums.webwiz.net/forum_topics.asp?FID=9

Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 7:37am

anyway, you can save the page as .asp

and write this code to save to database.

Dim Conn, DSN
DSN = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("./database.mdb")
set Conn = Server.CreateObject ("ADODB.connection")
Conn.Open DSN

Dim RS, SQL
Set RS = Server.CreateObject("ADODB.Recordset")
SQL = "SELECT * FROM TableName"
RS.CursorType = 2
RS.LockType = 3
RS.Open SQL, Conn

RS.AddNew
RS.Fields("Name") = Request.Form("Name")
RS.Fields("Email") = Request.Form("Email")
RS.Update
RS.Close
Set RS = Nothing

 

 

something like this will work

Back to Top
single_minded98 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2004
Location: Malaysia
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote single_minded98 Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2004 at 7:56pm

Thanks..

To save the data i already done. But how to save the page.

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2004 at 2:33am
Do you want to save the original form page with the fields filled in?

Lead me not into temptation... I know the short cut, follow me.
Back to Top
single_minded98 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2004
Location: Malaysia
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote single_minded98 Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2004 at 2:37am
Yup
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2004 at 4:11am
i think how can he read it back from the database.
Back to Top
single_minded98 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2004
Location: Malaysia
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote single_minded98 Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2004 at 4:26am

In the database i just save the name of files and then to view i just put href.

p/s : is there any syntax to save the page

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.