Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Easy

Posted on 1998-12-28
5
Medium Priority
?
167 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 20 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

Implementing Azure Infrastructure Exam 70-533

This course is designed to familiarize and instruct students in the content that is covered by Microsoft Exam 70-533, Implementing Microsoft Azure Solutions. It focuses on all the November 2016 objective domain topics.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

715 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