Solved

Easy

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
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…
The viewer will learn how to count occurrences of each item in an array.

707 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

15 Experts available now in Live!

Get 1:1 Help Now