Solved

Accessing Data Submitted by Form

Posted on 2007-03-23
3
169 Views
Last Modified: 2010-04-30
After submitting a form that is writing to a database and sending an email, how do I program the form to generate some type of link that when accessed will retrieve the data entered and allow the viewer to enter more information and resubmit the form thereby sending another email.  This process could happen multiple times.  
0
Comment
Question by:contesa
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Dany Balian
ID: 18919131
are u talking about web (asp/vbscript) or vb6?
0
 

Author Comment

by:contesa
ID: 18919170
ASP/VBScript using an Access database...

I know how to write to the database and generate an email when clicking submit.  But the problem I'm facing is that the recipients of the email need the opportunity to input information, which needs to also be written to the database and another email needs to be generated.  It's an ongoing process.  

I need to continually write to the same record in the database and ensure that an email is generated everytime the record is updated.
0
 
LVL 11

Accepted Solution

by:
Dany Balian earned 500 total points
ID: 18919359
well the way you would do it, is u post to the same page all over again... here's a short example:

page.asp:
<%
dim t1
t1=request.form("t1")
if request.form("sending")="true" then%>
'send the email here... and update the database
'then below, load the form (but filled with the posted data) if any!
end if
%>
<html><head></head><body>
<form action="page.asp" method="post">
<input type="hidden" name="sending" value="true">
<input type="text" name="t1" value="<%=t1%>">
<input type="submit" value="Save">
</body></html>

something like this, if u need further clarifications, let me know!!

cheers, dan
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now