Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Need Help on Oracle Web Server
Hi,
mandelia_at_my-dejanews.com wrote:
> I am Manish Mandelia a graduate student. I have very little experience with
> Oracle Web Server and need some help with a project I have.
>
> I need to generate email messages from a form. The email address should be
> picked up from a field and the message should be automatically generated upon
> hitting a button on the form.
Have you every checked out the possible actions in HTML form tag ?
If you simple want to generate email you can do something like this
<FORM ACTION="mailto:targetmailbox_at_targetpostoffice.targetdomaine"
NAME="mailform" >
<INPUT TYPE="TEXT" SIZE=200 MAXLENGTH=1000>
If you have to pick the message from a field define this field
<INPUT TYPE="TEXT" SIZE=30 MAXLENGTH=100 NAME="address">
Finally the submit button <INPUT TYPE="BUTTON" VALUE="SUBMIT" onClick="setmailtarget();">
So providing functionallity needed you would have to implement a javascript like the following. As demostrated above the javascript function setmailtarget() will be call every time the user clicks on the SUBMIT - Button.
function setmailtarget() {
document.mailform.action = "mailto:"+ document.mailform.address.value ;
-- this sets the mail - address as the form action target
document.mailform.submit(); // trigger form submit : This actually
sends the from as email to the given email target.
}
> Any help will be appreciated. With the kind of experience I have on the Web
> Server, some detail will be greatly appreciated.
>
> Thanks
>
> Manish Mandelia
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/ Now offering spam-free web-based newsreading
Received on Sat Jun 13 1998 - 14:22:45 CDT