Hi all,
I joined your list hoping to find-out how to convert a .asp page to .php
I do realize that I am off the mark on this
and there is much to learn in this area.
Perhaps one of you could point me to a place where I get small sample
pages in php so that I can get started with .php in a simple way.
My problems are:
1 I want to have a page which will send me emails
You know, a kind of form where one types the message in
and then click send and off it goes
to an specified email address
2 I need the below page which is mirrored from a Win environment
to be converted to a .php page on my Linux 8.0 system
Well If this is asking for too much, then please forgive this post.
regards
Metta
<script LANGUAGE="javascript">
<!--
function ValidateFields() {
if
(document.frmSubscription.cboSalutation.value=="") {
alert("Select Saluation");
document.frmSubscription.cboSalutation.focus();
return false;
}
if
(document.frmSubscription.txtName.value=="") {
alert("Enter Name");
document.frmSubscription.txtName.focus();
return false;
}
if
(document.frmSubscription.txtAddress.value=="") {
alert("Enter Address");
document.frmSubscription.txtAddress.focus();
return false;
}
if
(document.frmSubscription.txtCity.value=="") {
alert("Enter City Name");
document.frmSubscription.txtCity.focus();
return false;
}
if
(document.frmSubscription.txtCountry.value=="") {
alert("Enter Country Name");
document.frmSubscription.txtCountry.focus();
return false;
}
if
(document.frmSubscription.txtEmail.value=="") {
alert("Enter Email Address");
document.frmSubscription.txtEmail.focus();
return false;
}
else {
var intPos;
intPos =
frmSubscription.txtEmail.value.search(/^[a-z0-9](\.\w|\w)[EMAIL
PROTECTED](\.\w|\w)*\.[a-z]{2,3}$/i);
if(intPos==-1)
{
alert("Enter Valid Email
Address");
document.frmSubscription.txtEmail.focus();
return false;
}
}
frmSubscription.SubClicked.value="Ok";
return true;
}
//-->
</script>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<TITLE>Subscription Form</TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function radMember_onclick() {
frmSubscription.radAM(0).disabled=true;
frmSubscription.radAM(1).disabled=true;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<p><font color="#FF8000" size="5" face="Arial">Subscription Form</font></p><!--<form
method="post" action="Subscription.asp" name="frmSubscription" LANGUAGE="javascript"
onsubmit="return ValidateFields()">-->
<form method="post" action="Subscription.asp" name="frmSubscription"
LANGUAGE="javascript" onsubmit="return ValidateFields()">
<input type="hidden" name="SubClicked" >
<table border="0" cellpadding="0" cellspacing="0" width="540" height="900">
<tr>
<td width="25%" height="10"></td>
<td width="25%" height="10"></td>
<td width="25%" height="10"></td>
<td width="25%" height="10">
<font face="Verdana" size="1">Address all correspondence to:</font><br>
<font face="Verdana" size="1">Buddhist Publication Society<br>
54, Sangharaja Mawatha<br>
Kandy,<br> Sri Lanka</font></p>
</td>
</tr>
<tr>
<td width="100%" height="22" colspan="4"><HR>
</td>
</tr>
<tr>
<td width="100%" colspan="4" height="34">
<font face="Verdana" size="2">Annual subscription (valid for one calendar year):
Air Mail U.S. $20.00; Pounds Sterling 12.50.</font></td>
</tr><tr>
<td width="100%" colspan="4" height="10">
<tr>
<td width="100%" colspan="4" height="66"><font face="Verdana" size="2">
Remittances may be sent by personal cheque, international money order or bank-draft
made payable to: Buddhist Publication Society. Please mark all cheques etc.:<br>
A/C Payee Only, Hongkong & Shanghai Banking Corporation Ltd. Kandy.
Account number 002-017689-025.</font></td>
</tr>
<tr>
<td width="100%" colspan="4" height="10"></td>
</tr>
<tr>
<td width="100%" colspan="4" height="34"><font face="Verdana" size="2">Members
will receive BPS Book Publications and News once in every six months as long as
membership remains valid.</font></td>
</tr>
<tr>
<td width="100%" colspan="4" height="10">
<tr>
<td width="100%" colspan="4" height="34"><font face="Verdana" size="2">A
discount of 10% is given to members (on BPS titles only). Membership number should be
quoted when requesting a discount.</font></td>
</tr>
<tr>
<td width="100%" colspan="4" height="10"></td>
</tr>
<tr>
<td width="100%" colspan="4" height="10">
<font size="4" ></font><FONT face=Verdana><font size="2">The fields in * are
mandatory!</font></FONT>
</td>
</tr>
<tr>
<td width="100%" colspan="4" height="10">
<HR>
</td>
</tr>
<tr>
<td width="25%" height="22"><font face="Verdana"
size="2">Salutation*</font></td>
<td width="75%" height="22" colspan="3"><font face="Verdana">
<select name="cboSalutation">
<option value ="" selected >
<option value="Mr">Mr.</option>
<option value="Ms">Ms.</option>
<option value="Mrs">Mrs.</option>
<option value="Ven">Ven.</option>
<option value="Dr">Dr.</option>
</select></font></td>
</tr>
<tr>
<td width="25%" height="22"><font face="Verdana"
size="2">Name*</font></td>
<td width="75%" height="22" colspan="3"><font face="Verdana"
size="2"><input name="txtName" size="22"
maxLength=50></font></td>
</tr>
<tr>
<td width="25%" height="22"><font face="Verdana"
size="2">Address*</font></td>
<td width="75%" height="22" colspan="3"><font face="Verdana"
size="2"><input name="txtAddress" size="70"
maxLength=100></font></td>
</tr>
<tr>
<td width="25%" height="21"><font face="Verdana"
size="2">City*</font></td>
<td width="75%" height="21" colspan="3"><font face="Verdana"><input
name="txtCity" size="22" maxLength=25></font></td>
</tr>
<tr>
<td width="25%" height="22"><font face="Verdana"
size="2">Country*</font></td>
<td width="75%" height="22" colspan="3"><font face="Verdana"><input
name="txtCountry" size="22"maxLength=25></font></td>
</tr>
<tr>
<td width="25%" height="22"><font face="Verdana" size="2">Email
Address*</font></td>
<td width="75%" height="22" colspan="3"><font face="Verdana"><input
name="txtEmail" size="22" maxLength=25></font></td>
</tr>
<tr>
<td width="100%" colspan="4" height="22"><HR></td>
</tr>
<tr>
<td width="25%" height="22"><font face="Verdana" size="2">Membership*</font></td>
<td width="25%" height="22"></td>
<td width="25%" height="22"><font face="Verdana" size="2">Duration*</font></td>
<td width="25%" height="22"></td>
</tr>
<tr>
<td width="25%" height="22"><FONT size="2"></FONT></FONT></td>
<td width="25%" height="22">
</td>
<td width="25%" height="22"><FONT size="2"><INPUT name="radYear" type=radio
checked value="1 Yr."><FONT face=Verdana>1 Yr.</FONT></FONT>
</td>
<td width="25%" height="22"></td>
<tr>
<td width="25%" height="22"><FONT size="2"> <FONT face=Verdana><INPUT
name="radMember" type=radio checked value="Annual Member" LANGUAGE=javascript>Annual
Member</FONT></FONT></td>
<td width="25%" height="22">
</td>
<td width="25%" height="22"><FONT size="2"><FONT face=Verdana><INPUT
name="radYear" type=radio value="2 Yrs.">2 Yrs.</FONT> </FONT><FONT
face=Verdana> </FONT>
</td>
<td width="25%" height="22"></td>
</tr>
<tr>
<td width="25%" height="22">
</td>
<td width="25%" height="22">
</td>
<td width="25%" height="22"><FONT size="2"><FONT face=Verdana><INPUT
name="radYear" type=radio value="3 Yrs.">3 Yrs.</FONT> </FONT><FONT
face=Verdana> </FONT>
</td>
<td width="25%" height="22"></td>
</tr>
<tr>
<td width="25%" height="22">
<font size="2" face="Verdana">If as Annual Member</font>
</td>
<td width="25%" height="22">
</td>
<td width="25%" height="22"><FONT size="2"><FONT face=Verdana><INPUT
name="radYear" type=radio value="4 Yrs.">4 Yrs.</FONT> </FONT><FONT
face=Verdana></FONT>
</td>
<td width="25%" height="22"></td>
</tr>
<tr>
<td width="25%" height="21"><FONT size="2"><FONT face=Verdana><INPUT
name="radAM" type=radio checked value="New Annual Member">New</FONT></FONT></td>
<td width="25%" height="21">
</td>
<td width="25%" height="21"><FONT size="2"><FONT face=Verdana><INPUT
name="radYear" type=radio value="5 Yrs.">5 Yrs.</FONT> </FONT><FONT
face=Verdana> </FONT>
</td>
<td width="25%" height="21"></td>
</tr>
<tr>
<td width="25%" height="22"><FONT size="2"><FONT face=Verdana><INPUT
name="radAM" type=radio value="Renewal Annual Member">Renewal</FONT></FONT><FONT
face=Verdana> </FONT>
</td>
<td width="25%" height="22"></td>
<td width="25%" height="22"></td>
<td width="25%" height="22"></td>
</tr>
<tr>
<td width="100%" height="22" colspan="4">
<HR></td>
</tr>
<tr>
<td width="64%" height="22" colspan="3"><font size="2">
<INPUT name=btnSendEmail type=submit value="Send">
<FONT face=Verdana>My Subscription As An Associate Member</FONT></font></td>
<td width="31%" height="22" colspan="2"><font size="2">
<input name="btnReset" style="HEIGHT: 24px; WIDTH: 63px" type="reset"
value="Reset"> </font></td>
</tr>
<tr>
<td width="100%" height="22" colspan="4">
</td>
</tr>
</table>
</form>
</BODY>
</html>
--
A saying of the Buddha from http://metta.lk/
Happy is one, who beholds the holy ones. To live with the holy ones is ever pleasant.
It would be pleasant if one never comes across a fool.
Random Dhammapada Verse 206
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php