Solved

Easy

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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 the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

830 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