Solved

email with data base for adres info

Posted on 1998-10-09
1
144 Views
Last Modified: 2013-12-25
Hello,

I want a sort of form for email in a html-page and when the user types his
username and question and send it, there must be some way that a script or someting else knowes extra information of
the username like home-adres info. The email which send to us must contain the extra information.

How can we make that?

Greetings,

Jeffeny
0
Comment
Question by:harryv
1 Comment
 
LVL 28

Accepted Solution

by:
sybe earned 200 total points
ID: 1829001
Include hidden fields in the form which contain the desired information.

like:

<form name="myForm">
<input type="hidden" name="referrer">
<input type="hidden" name="date">

</form>
and then use javascript to give values to the hidden fields.

<script>
Today = New Date();
document.forms['MyForm'].referrer.value = document.referrer;
document.forms['MyForm'].date.value = Today;
</script>

BUT
There is now way to get the user's home address if the user has not given it. If you have it stored in a database, then of course it looks different, but from the browser you can't read it.

If you want to get it out of a database which you keep, then you'll have to use cookies which relate a browser to a user_id.
The script for that must be some CGI or ASP that reads the cookie, retrieves the user_id and looks into your database to get the related information, write that into the form in hidden fields and off you go...

There is not a "standard" script for that, because there are no standard databases. Get a programmer to work it out for you.

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

920 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

14 Experts available now in Live!

Get 1:1 Help Now