Solved

Easy

Posted on 1998-12-28
5
165 Views
Last Modified: 2013-12-25
Hi I am new to cgi and I have a send mail script. I know that if I place these hidden fields what happens,

<input type=hidden name="redirect" value="http://host.com/to/file.html">

I wanted to know if there is any hidden fields which sends the mail in HTML format?

Thanks Aseem
0
Comment
Question by:aseem072898
[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
  • 2
  • 2
5 Comments
 

Author Comment

by:aseem072898
ID: 1830298
Edited text of question
0
 
LVL 1

Accepted Solution

by:
flivauda earned 10 total points
ID: 1830299
A hidden tag just means the user doesnt see the input box.  It works exactly like a regular input box.  What you do with it on the cgi end is up to you.  As far as sending in html format you need to do that when you send it out and if the person receving the email has an html enabled mail client it will display in html. for example if you wanted it all in bold you could put your message in <b>bold tags</b> and it would be in bold.  You can do any kind of html formatting you want on the server end but it is upto the mail client asto wether or not it will display it.

Let me know if you have any more questions or need any more help
0
 

Author Comment

by:aseem072898
ID: 1830300
That is the prolem. I generate a HTML code and when I send it OUTLOOK Express and other web free e-mail receive the code not the page!
0
 
LVL 1

Expert Comment

by:flivauda
ID: 1830301
Let me see the html code you are generating.  
0
 
LVL 1

Expert Comment

by:dpuckett
ID: 1830302
Aseem,
RE: javascript Q."A=X, F=M..."

I can't believe you, I wrote a complete SearchAndReplae fuction in javascript for you, that supports conditional replaces, replacing preceeding n number of proceeding characters, plus an example HTML page for you, all for 39 points.

You seemed unable to read javacode, so even remarked the lines you would duplicate and change to perform additional search and replaces, debugged the functions (took an hour), sent it to you, and you grade a D!

You have no honor, you have no skill, and you can't spell, and your grammer stinks.


for all to read and judge them selves, this was my answer
---------------------------------------------------------------

Re-read your question, the answer I posted exacly answers your question, but I think you actually meant:

that for a given 'string' of chars in a given textarea, replace each occurance of 'A' with 'X' and replace each occurance of 'F' with 'M' and display the modified 'string' in a second textarea.

And I might add, that I can't believe I gave this to you for 34 points!

<HTML>
<HEAD>
<SCRIPT language = "JavaScript">
<!-- Begin Script
function SearchReplaceChar(sourceItem,searchItem,replaceItem,unlessPreceededBy,eatLeft) {
    sl=searchItem.length;
    rl=sl;
    if(eatLeft!=0) rl=(sl+eatLeft);
    ul=unlessPreceededBy.length;
    for (i = 0; i < sourceItem.length; i++) {
        doit=0;
        if(sourceItem.substring(i,(i+sl))==searchItem) {
            if(eatLeft!=0) i=(i-eatLeft);
            if(ul==0) doit=1;
            if(sourceItem.substring((i-ul),i)!=unlessPreceededBy) doit=1;
            if(doit==1) {
                c = sourceItem.substring(0,i);
                d = sourceItem.substring((i+rl),sourceItem.length);
                sourceItem = c + replaceItem + d;
                i=(i+(replaceItem.length-rl));
                }
            if(eatLeft!=0) i=(i+eatLeft);
            }
        }
    return sourceItem;
    }
function Check() {
    ToCheck = document.F.TA1.value;
    Checked = SearchReplaceChar(ToCheck,"A","X","",0);

//duplicating these two lines changing the "F" and the "M"
//for additional search and replaces
    ToCheck = Checked;
    Checked = SearchReplaceChar(ToCheck,"F","M","",0);

    document.F.TA2.value=Checked;
    }
    // -->
</SCRIPT>
</HEAD>
<BODY>
<form name=F>
<textarea wrap=virtual name=TA1 cols=8 rows=3></textarea><br>
<textarea wrap=virtual name=TA2 cols=8 rows=3></textarea><br>
<input type=button value="Do It!" onclick="Check()">
</form>
</BODY>
</HTML>
0

Featured Post

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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 …

630 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