Solved

email with data base for adres info

Posted on 1998-10-09
1
143 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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 …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

771 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

16 Experts available now in Live!

Get 1:1 Help Now