Solved

Easy

Posted on 1998-12-28
5
160 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange, scripts 3 60
How does Redux fit into React? 3 67
Some AHK commands fail in Microsoft OneNote 5 32
change the windows script file to BAT 10 29
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
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 …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

911 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

20 Experts available now in Live!

Get 1:1 Help Now