Solved

email with data base for adres info

Posted on 1998-10-09
1
146 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

Title # Comments Views Activity
Update a registry value to every user hive 15 83
How to count json data 2 79
How can I do this in Pyhton? 12 126
Transform normalized CSV to line in powershell 7 38
Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

823 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