Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

email with data base for adres info

Posted on 1998-10-09
1
Medium Priority
?
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
sybe earned 400 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

596 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