Expression Web and Frontpage
Expression Web and FrontPage


Search The Forums:
 
] ] ]
]
Site Navigation ] ]
]
] ]

] ] ]
]
Change Skin ] ]



Skins Found: 14
]
] ]

] ] ]
]
Search For ] ]

Search On:
All Words
Any Words
Phrase
]
] ]

] ] ]
]
Top 6 Recent Posts ] ]
View Last Post FP2003 Form submit errors.
Last Post By: Scott K
Forum: FrontPage 2000, 2002, and 2003 Forum

Posted: Today at: 2:33am

View Last Post Page has gone blank
Last Post By: marioc
Forum: FrontPage 2000, 2002, and 2003 Forum

Posted: 03 September 2010 at: 1:00pm

View Last Post Uninstall EW1?
Last Post By: Joe R
Forum: Expression Web Forum

Posted: 02 September 2010 at: 9:13pm

View Last Post Apple conflict? Page Problem
Last Post By: Joe R
Forum: FrontPage 2000, 2002, and 2003 Forum

Posted: 02 September 2010 at: 9:06pm

View Last Post Tables
Last Post By: Joe R
Forum: FrontPage 2000, 2002, and 2003 Forum

Posted: 01 September 2010 at: 8:06pm

View Last Post Bulletin board
Last Post By: Joe R
Forum: General Computing and Web Development

Posted: 01 September 2010 at: 7:50pm

]
] ]

] ] ]
]
Welcome Guest ] ]
Name:
Pass:
Auto Login
Add me to Active Users list
Yes  No

Forgot password? | Register
]
] ]

] ] ]
]
Top Posters ] ]
Username Posts
Joe R 6369
Corey Bryant 4267
wet-inc 1701
mental mickie 1695
Allan Webber 1228
DarrylO 1222
hhammash 978
FP Guy 917
AMysticWeb 725
LakeGator 537
]
] ]

] ] ]
]
Member(s) Visited ] ]
Total: 1
Scott K
]
] ]

] ] ]
]
Online Activity ] ]
People Online: 14
Guest(s): 14
Member(s): 0
Memberships: 3442
The Newest Member is Scott K
]
] ]

] ] ]
]
Ads ] ]
]
] ]

   
FrontPage 2000, 2002, and 2003 Forum
 Expression Web and FrontPage ForumยปFrontPage 2000, 2002, and 2003 Forum
Subject Topic: Using a VB Script form to database Post ReplyPost New Topic
Forum Jump  
] ] ]
]
Author
Message Prev Topic | Next Topic 
mental mickie
Forum Leader
Avatar

Forum Leader

Joined: 31 December 2004
National Flag of United Kingdom United Kingdom
Posts: 1695
Posted: 14 November 2009 at 4:27pm | IP Logged Quote mental mickie

Hi Guys

In previous web sites, I've used FP webbot to get data from an ASP form to an Access Database. But this has one serious disadvantage, it ability to use the data in subsequent pages is halted.

Therefore I've been looking at another solution, and I've come up with the following:-

1. Form

<form name="myform" method="post" action="insert.asp">

Firstname:<br><input name="firstname" maxlength="25" > <BR>
Lastname:<br><input name="lastname" maxlength="25" > <BR>        
Age:<br><input name="age" maxlength="3" > <BR>
Gender:<br><input name="gender" maxlength="6" > <BR><BR>

<input type="submit" value="submit" name="s_button">
<input type="reset" value="reset" name="r_button">

</form>

2. The insert Page

<%@ Language="VBScript" %>

<!-- #include file="connectionstring.asp" -->

<%
dim Conn, Connstring, Sql
dim strfirstname, strlastname, strage, strgender

Set Conn = Server.CreateObject("ADODB.Connection")

strfirstname = request.form("firstname")
strlastname = request.form("lastname")
strage = request.form("age")
strgender = request.form("gender")
         
Conn.provider = provider
Conn.ConnectionString = dbasepath
Conn.Open

Sql="INSERT INTO mytable (firstname, lastname, age, gender) VALUES ('" _
 & strfirstname & "','" & strlastname & "','" _
 & strage & "','" & strgender & "')"

Conn.Execute(Sql)

Response.Write "Data successfully inserted!"
%>

But I've got a question, can I use this script to get the data to be used in further pages within the site?

Or am I missing something here



__________________
Mike George
Caledonian Life:
Back to Top Printable version View mental mickie's Profile Search for other posts by mental mickie Visit mental mickie's Homepage
 
]
] ]
Forum Jump  

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic

] ] ]
]
  ] ]
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum
Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide
]
] ]

] ] ]
]
This page was generated in 0.3594 seconds. Powered by SOOP Portal Raven 1.0
]
] ]