Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 03-09-2004, 06:07 PM Link Submission Form
KRYPTOR's Avatar
Skilled Talker

Posts: 62
Name: Ray
Location: Illinois
Trades: 0
OK, below is the script for a Link
Submission Form. I need to change
the Form Action Line to href email address, because thats where I want
the inputted info to goto; however,
everytime you click submit if you have
an email address for the form action,
a window pops up with microsoft
outlook. Is there ANY WAY to have a
form action statement going to the
email box automatically with the info
a person types in this form from a
website???



<script language="JavaScript">
function description(){
if (document.extrequest.contactname.value == "") {
alert("Your Name is Required");
document.extrequest.contactname.focus();
return false;
}
if (document.extrequest.contactemail.value == "") {
alert("Your Email address is Required");
document.extrequest.contactemail.focus();
return false;
}


var Email = document.extrequest.contactemail.value;
var matchString = "^.+@.+\\..+$" ;

if (Email.match(matchString)) {
}
else {
alert("Not a valid e-mail address");
document.extrequest.contactemail.focus();
return false;
}

if (document.extrequest.sitename.value == "") {
alert("The Site Name is Required");
document.extrequest.sitename.focus();
return false;
}
if (document.extrequest.siteurl.value == "") {
alert("The URL is Required");
document.extrequest.siteurl.focus();
return false;
}
if (document.extrequest.sitedesc.value == "") {
alert("The description is Required");
document.extrequest.sitedesc.focus();
return false;
}
if (document.extrequest.sitedesc.length > 350) {
alert("Your description is too long");
document.extrequest.sitedesc.focus();
return false;
}
if (document.extrequest.reciplinklocation.value == "") {
alert("Reciprocal Link Location is Required");
document.extrequest.reciplinklocation.focus();
return false;
}

if (document.extrequest.message.length > 500) {
alert("Your message is too long");
document.extrequest.message.focus();
return false;
}
document.extrequest.submit();
}

</script>
</head>

<script Language=Javascript>
<!--
function pop_network(helpfile)
{
var MAC, NS, Linux, w, h, settings;
MAC = (navigator.appVersion.indexOf("Mac") != -1) ? 1 : 0;
Linux = (navigator.appVersion.indexOf("Linux") != -1) ? 1 : 0;
var NS = (navigator.appName.indexOf("Netscape") != -1) ? 1 : 0;
if (Linux) {
settings = "toolbar=no,scrollbars=no,location=no,width=615,he ight=515,resizable=yes";
} else if (MAC) {
settings = "toolbar=no,scrollbars=no,location=no,width=600,he ight=500,resizable=yes";
} else if (!MAC && !NS) {
settings = "toolbar=no,scrollbars=no,location=no,width=600,he ight=500,resizable=yes";
} else {
settings = "toolbar=no,scrollbars=no,location=no,width=615,he ight=518,resizable=yes";
}

helpWindow = window.open(helpfile, "", settings);

}
</script>

<tr valign="top">
<td><CENTER><span class="pagetitle">Link trade request for Savemoneytoo.com</span></div><br><span class="bodytextbold">To be considered for inclusion in the SaveMoneytoo.com link directory, you must place a reciprocal link on your site. Information for the reciprocal link will be provided upon succesful completion of your submission.
</span><br><span class="text10blk">(<font color="FF0000">* = Required</font>)
</span><br><br>

<span class="bodytext">
<form action="extlinkrequestsubmit.cfm" method="POST" name="extrequest">
<table align="center">
<tr>
<td class="bodytextbold"><font color="FF0000">*</font>Your Name:<br><input type="Text" name="contactname" size="50" maxlength="150"></td>
</tr>

<tr>
<td class="bodytextbold"><font color="FF0000">*</font>Your Email:<br><input type="Text" name="contactemail" size="50" maxlength="150"></td>
</tr>
<tr>
<td class="bodytextbold"><font color="FF0000">*</font>Your Site Name:<br><input type="Text" name="sitename" size="50" maxlength="100"></td>
</tr>
<tr>
<td class="bodytextbold"><font color="FF0000">*</font>Your Site Url:<br><input type="Text" name="siteurl" size="50" maxlength="150"></td>
</tr>

<tr>
<td class="bodytextbold"><font color="FF0000">*</font>Site Description:<br><span class="bodytext">(This will go next to your link)</span><br><textarea name="sitedesc" cols="50" rows="5" wrap="soft"></textarea></td>
</tr>
<tr>
<td class="bodytextbold"><font color="FF0000">*</font>Reciprocal Link URL:<br><span class="bodytext">(where your reciprocal link will be located)</span><br><input type="Text" name="reciplinklocation" size="50" maxlength="200"></td>
</tr>

<tr>
<td class="bodytextbold">Message:<br><span class="bodytext">(Any additional information you want to provide about your request)</span><br><textarea name="message" cols="50" rows="5" wrap="soft"></textarea></td>
</tr>
<input type="Hidden" name="cid" value="3195">
<tr><td><input type="button" name="Submit" value="Submit" onClick="description()"></td></tr>
</table>

</span>
</form>

</span></td>
</tr>
</table>

Please Help!

The KRYPTOR
__________________
"What is SEEN is TEMPORAL, What is UNSEEN is ETERNAL".


Please login or register to view this content. Registration is FREE
KRYPTOR is offline
Reply With Quote
View Public Profile Visit KRYPTOR's homepage!
 
 
Register now for full access!
Old 03-09-2004, 06:20 PM
Experienced Talker

Posts: 31
Location: Worchester, MA
Trades: 0
There is no way to do it automatically from the client (using a form action with a mailto URL). This is a security feature, if the email were to just automatically send, then every website you visit could easily harvest your email address without your knowledge! All they would need to do is make a form that submits via email and submit it automatically through JS.

If you want to mail the contents of a form automatically, I would suggesst looking into sever-side scripting (PHP, ASP, etc.)
__________________

Please login or register to view this content. Registration is FREE
JoeGoldberg is offline
Reply With Quote
View Public Profile
 
Old 03-13-2004, 06:18 PM
wicko3's Avatar
The Wickmeister

Posts: 368
Location: Derby, UK
Trades: 0
Quote:
If you want to mail the contents of a form automatically, I would suggesst looking into sever-side scripting (PHP, ASP, etc.)
Hi Kryptor,

Server side scripting is not as difficult as it sounds. I remember thinking it was something you had to be a big corporation to do, or own your own webserver or something. Ask your web hosting company for details on how to upload your own server side scripts.

Wicko
__________________
Wicko
--------------------------------------------------------------------
Always proof-read your posts to see if you any words out.
wicko3 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Link Submission Form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31114 seconds with 12 queries