When using .asp forms, is there any way to space your form email results.
For example:
name:
address:
(double space)
comments:
(double space)
how did you find our site?
...etc.?
Thanks!
When using .asp forms, is there any way to space your form email results.
For example:
name:
address:
(double space)
comments:
(double space)
how did you find our site?
...etc.?
Thanks!
if you havent yet found a solution to your problem let me know and i'll be glad to assist
Hi,
Sorry to respond so late. I still haven't found a solution. Regardless of how many <br /> or I insert in the form, my form results still come out the same. Any ideas are greatly appreciated. This is my form:
Code:<html> <head><title>Ill Form-Article Linker</title> <script language="JavaScript"> function loadRefURL (){ var Referrer=document.referrer; Referrer=unescape(Referrer).replace(/[+]/g , " "); document.forms[0].theAddr.value = Referrer; } </script> <script language="JavaScript"> // JavaScript Document /* This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com Created by: wsabstract.com | http://www.wsabstract.com */ function checkrequired(which) { var pass=true; for (i=0;i<which.length;i++) { var tempobj=which.elements[i]; if (tempobj.name.substring(0,8)=="required") { if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) { pass=false; break; } } } if (!pass) { shortFieldName=tempobj.name.substring(8,30).toUpperCase(); alert("The "+shortFieldName+" field is a required field."); return false; } else { return true; } } </script> <meta name="keywords" content=""> <meta name="Generator" content="HTMLpad"> <style type="text/css"> <!-- .style1 { font-size: 18px; font-weight: bold; } --> </style> <script type="text/javascript"> function getQueryValue(name) { var match = (new RegExp('[?&;]' + name + '=([^&;#]*)')).exec(document.referrer); return match ? unescape(match[1]) : null; } function populateFields() { var controls = document.forms.form1.elements, fieldMap = {ArticleTitle: 'atitle', JournalTitle: 'title', ISSN: 'issn', DatePub: 'date', StartPage: 'spage', Volume: 'volume', Issue: 'issue', AuthorLastName: 'aulast', AuthorFirstName: 'aufirst', ArticleAuthor: 'author', Authors: 'authors'}; for (var i = 0, n = controls.length; i < n; ++i) { var value = getQueryValue(fieldMap[controls[i].name]); if (value) controls[i].value = value; } } </script> </head> <body onLoad="populateFields(); loadRefURL()"> <form method=post action=http://www.twu.edu/cgi-bin/aspmail.asp id=form1 name=form1 onSubmit="return checkrequired(this)"> <input type=hidden name=sendername value="Automailer"> <input type=hidden name=subject value="Request for interlibrary loan (generated by Article Linker results page)"> <input type=hidden name=recipientname value="ILL"> <input type=hidden name=recipientmail value="bklug@mail.twu.edu"> <input type=hidden name=redirect value=http://www.twu.edu/library/> <input type=hidden name=userinfo value="on"> <span class="style1">Interlibrary Loan request form--TWU Libraries</span> <br /> <br /> <b>Patron Last Name, First Name: (required field)</b> <input type="text" name="required Name" size="50" /><br /><br /> <b>Student ID: (required field)</b> <input type="text" name="required ID#SSN" size="50" /><br /><br /> <b>Patron Address: (required field)</b> <br /> <textarea name="required Address:" rows="3" cols="20" wrap="virtual"></textarea><br><br> <b>Patron Email Address (required field): </b> <input type="text" name="required Email Address" size="50"/><br /><br /> <b>Phone: </b> <input type="text" name="Phone" size="50"/><br /><br /> <b>Pickup Location: </b> <select id="Department" name="Campus"> <option selected>Denton</option> <option>Parkland</option> <option>Presbyterian</option> <option>Houston</option> <option>Distance Education</option> </select><br /><br /> <b>Campus Status: </b> <select id="Status" name="CampusStatus"> <option selected>Undergraduate</option> <option>Graduate</option> <option>Distance Education</option> <option>Faculty</option> <option>Staff</option> <option>Other</option> </select><br /><br /> <b>Other Comments (optional): </b> <br /> <textarea name="Comments:" rows="3" cols="40" wrap="virtual"></textarea><br><br> <strong>Please scroll down and submit the form. Do not edit any information below this point.</strong> <br /><br /> <strong> <label>Journal Title:</label> <input name="JournalTitle" type="text" /><br /><br /> <label>ISSN:</label> <input name="ISSN" type="text" /><br /><br /> <label>Volume: </label><input name="Volume" type="text" /><br /><br /> <label>Issue: </label><input name="Issue" type="text" /><br /><br /> <label>Date: </label><input name="DatePub" type="text" /> <br /><br /> <label>Article Title: </label><input name="ArticleTitle" type="text" /><br /><br /> <label>Author: </label><input name="ArticleAuthor" type="text" /><br /><br /> <label>Author Last Name: </label><input name="AuthorLastName" type="text" /><br /><br /> <label>Author First Name: </label><input name="AuthorFirstName" type="text" /><br /><br /> <label>Authors: <input name="Authors" type="text" size="50" / ></label><br /><br /> <label>Start Page: <input name="StartPage" type="text" size="50" /></label></strong><br /><br /> <strong>Date Requested: </strong><input type="text" name="Requested" size=11><br /><br /> <strong>Page URL: </strong><input type=text name="theAddr" size=50 /><br /><br /> <input type="submit" value="submit"> </form> <script> /*Current date in form credit: JavaScript Kit (www.javascriptkit.com) Over 200+ free scripts here! */ var mydate=new Date() var theyear=mydate.getYear() if (theyear < 1000) theyear+=1900 var theday=mydate.getDay() var themonth=mydate.getMonth()+1 if (themonth<10) themonth="0"+themonth var theday=mydate.getDate() if (theday<10) theday="0"+theday //////EDIT below three variable to customize the format of the date///// var displayfirst=themonth var displaysecond=theday var displaythird=theyear //////////////////////////////////// document.form1.Requested.value=displayfirst+"/"+displaysecond+"/"+displaythird </script> </body> </html>
try this
<html>
<head><title>Ill Form-Article Linker</title>
<script language="JavaScript">
function loadRefURL (){
var Referrer=document.referrer;
Referrer=unescape(Referrer).replace(/[+]/g , " ");
document.forms[0].theAddr.value = Referrer;
}
</script>
<script language="JavaScript">
// JavaScript Document
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: wsabstract.com | http://www.wsabstract.com */
function checkrequired(which) {
var pass=true;
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
}
}
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("The "+shortFieldName+" field is a required field.");
return false;
} else {
return true;
}
}
</script>
<meta name="keywords" content="">
<meta name="Generator" content="HTMLpad">
<style type="text/css">
<!--
.style1 {
font-size: 18px;
font-weight: bold;
}
-->
</style>
<script type="text/javascript">
function getQueryValue(name) {
var match = (new RegExp('[?&;]' + name + '=([^&;#]*)')).exec(document.referrer);
return match ? unescape(match[1]) : null;
}
function populateFields() {
var controls = document.forms.form1.elements,
fieldMap = {ArticleTitle: 'atitle', JournalTitle: 'title', ISSN: 'issn', DatePub: 'date',
StartPage: 'spage', Volume: 'volume', Issue: 'issue',
AuthorLastName: 'aulast', AuthorFirstName: 'aufirst', ArticleAuthor: 'author', Authors: 'authors'};
for (var i = 0, n = controls.length; i < n; ++i) {
var value = getQueryValue(fieldMap[controls[i].name]);
if (value) controls[i].value = value;
}
}
</script>
</head>
<body onLoad="populateFields(); loadRefURL()">
<form method=post action=http://www.twu.edu/cgi-bin/aspmail.asp id=form1 name=form1 onSubmit="return checkrequired(this)">
<input type=hidden name=sendername value="Automailer">
<input type=hidden name=subject value="Request for interlibrary loan (generated by Article Linker results page)">
<input type=hidden name=recipientname value="ILL">
<input type=hidden name=recipientmail value="bklug@mail.twu.edu">
<input type=hidden name=redirect value=http://www.twu.edu/library/>
<input type=hidden name=userinfo value="on">
<span class="style1">Interlibrary Loan request form--TWU Libraries</span>
<table width="59%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<th width="37%" align="left" scope="col"> </th>
<th width="4%" scope="col"> </th>
<th width="59%" scope="col"> </th>
</tr>
<tr>
<th align="left" scope="row"><b>Patron Last Name, First Name: (required field)</b></th>
<td> </td>
<td><input type="text" name="required Name" size="50" /></td>
</tr>
<tr>
<th align="left" scope="row"><b>Student ID: (required field)</b></th>
<td> </td>
<td><input type="text" name="required ID#SSN" size="50" /></td>
</tr>
<tr>
<th align="left" scope="row"><b>Patron Address: (required field)</b></th>
<td> </td>
<td><textarea name="required Address:" rows="3" cols="20" wrap="virtual"></textarea></td>
</tr>
<tr>
<th align="left" scope="row"><b>Patron Email Address (required field): </b></th>
<td> </td>
<td><input type="text" name="required Email Address" size="50"/></td>
</tr>
<tr>
<th align="left" scope="row"><b>Phone:</b></th>
<td> </td>
<td><input type="text" name="Phone" size="50"/></td>
</tr>
<tr>
<th align="left" scope="row"><b>Pickup Location:</b></th>
<td> </td>
<td><select id="Department" name="Campus">
<option selected>Denton</option>
<option>Parkland</option>
<option>Presbyterian</option>
<option>Houston</option>
<option>Distance Education</option>
</select></td>
</tr>
<tr>
<th align="left" scope="row"><b>Campus Status:</b></th>
<td> </td>
<td><select id="Status" name="CampusStatus">
<option selected>Undergraduate</option>
<option>Graduate</option>
<option>Distance Education</option>
<option>Faculty</option>
<option>Staff</option>
<option>Other</option>
</select></td>
</tr>
<tr>
<th align="left" scope="row"><b>Other Comments (optional):</b></th>
<td> </td>
<td><textarea name="Comments:" rows="3" cols="40" wrap="virtual"></textarea></td>
</tr>
<tr align="left">
<th colspan="3" scope="row"><strong>Please scroll down and submit the form. Do not edit any information below this point.</strong></th>
</tr>
<tr>
<th align="left" scope="row"><strong>Journal Title:</strong></th>
<td> </td>
<td><strong>
<input name="JournalTitle" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>
<label>ISSN:</label>
</strong></th>
<td> </td>
<td><strong>
<input name="ISSN" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Volume</strong>:</th>
<td> </td>
<td><strong>
<input name="Volume" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Issue:</strong></th>
<td> </td>
<td><strong>
<input name="Issue" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Date:</strong></th>
<td> </td>
<td><strong>
<input name="DatePub" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Article Title:</strong></th>
<td> </td>
<td><strong>
<input name="ArticleTitle" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Author:</strong></th>
<td> </td>
<td><strong>
<input name="ArticleAuthor" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Author Last Name:</strong></th>
<td> </td>
<td><strong>
<input name="AuthorLastName" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Author First Name:</strong></th>
<td> </td>
<td><strong>
<input name="AuthorFirstName" type="text" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Authors:</strong></th>
<td> </td>
<td><strong>
<input name="Authors" type="text" size="50" / >
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Start Page:</strong></th>
<td> </td>
<td><strong>
<input name="StartPage" type="text" size="50" />
</strong></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Date Requested:</strong></th>
<td> </td>
<td><input type="text" name="Requested" size=11></td>
</tr>
<tr>
<th align="left" scope="row"><strong>Page URL:</strong></th>
<td> </td>
<td><input type=text name="theAddr" size=50 /></td>
</tr>
</table>
<input type="submit" value="submit">
</form> <script>
/*Current date in form credit:
JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/
var mydate=new Date()
var theyear=mydate.getYear()
if (theyear < 1000)
theyear+=1900
var theday=mydate.getDay()
var themonth=mydate.getMonth()+1
if (themonth<10)
themonth="0"+themonth
var theday=mydate.getDate()
if (theday<10)
theday="0"+theday
//////EDIT below three variable to customize the format of the date/////
var displayfirst=themonth
var displaysecond=theday
var displaythird=theyear
////////////////////////////////////
document.form1.Requested.value=displayfirst+"/"+displaysecond+"/"+displaythird
</script>
</body>
</html>
That is awesome! Thank you so much.
Bookmarks