Solved

email with data base for adres info

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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…

756 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