Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 532 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Ahh!

Thread title: Ahh!
Closed Thread    
    Thread tools Search this thread Display Modes  
02-19-2005, 11:35 PM
#1
CEStudios is offline CEStudios
Status: Junior Member
Join date: Jan 2005
Location:
Expertise:
Software:
 
Posts: 78
iTrader: 0 / 0%
 

CEStudios is on a distinguished road

  Old  Ahh!

Ok, i am making a part on this bands site where people can sign up for a newsletter. Everything is right on the button and everyhting but my php isnt right. I combined php and html so they would get the site when they entered there e-mail and hit submit they would get the site and it would say thank you for joining. But for some reason when i load that page it doesnt show any of my scripting, i saved it as a php file, and this is the script for the entire page, its long so bear with me, now i need o know why its not working. Thanks.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Bound To Change - Official Homepage</title>
<?php
$yourmail = "cnkrsdyj@cuttingedgestudios.com";

$t1 = $_POST['mail'];

$data = "Here is an e-mail to add to the newsletter list:$t1\n";

mail ($yourmail, "Newsletter E-mails", $data);

die ("Form submited\n");
?>
<style >
<!--
body {
background-color: #000000;
}
.style2 {
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
background-color: #FF0000;
color: #FFFFFF;
border: 1px solid #999999;
}
.red {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: bold;
font-variant: normal;
color: #FF0000;
}
.pagedef {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #e3e3e3;
}
.pagedefbold {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: e3e3e3;
}
.style1 {color: #FFFFFF}
.style2 {font-size: 18px}
a {
font-size: 16px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
a:link {
color: #CCCCCC;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #CCCCCC;
}
a:hover {
text-decoration: none;
color: #FFFFFF;
}
a:active {
text-decoration: none;
}
-->
</style></head>

<body leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<TABLE id=Table_01 cellSpacing=0 cellPadding=0 width=792 align=center
border=0><TBODY>
<TR>
<TD Colspan=5 height=66><Img height=66 alt=""
src="images/topbar.gif"
width=800></TD>
</TR>
<TR>
<TD Colspan=3 height=414><Img height=414 alt=""
src="images/picture.gif"
width=376></TD>
<TD Colspan=2 background="images/navarea.gif">
<div style="padding-top: 30px; padding-left: 50px;"><a href="http://www.boundtochange.com/index.html">HOME</a></div>
<div style="padding-bottom: 0px; padding-left: 260px;"><a href="http://www.boundtochange.com/music.html">MUSIC</a></div>
<div style="padding-bottom: 0px; padding-left: 90px;"><a href="http://www.boundtochange.com/bios.html">BIO'S</a></div>
<div style="padding-bottom: 0px; padding-left: 220px;"><a href="http://www.boundtochange.com/pics.html">PIC'S</a></div>
<div style="padding-bottom: 0px; padding-left: 40px;"><a href="http://www.boundtochange.com/shows.html">SHOWS</a></div>
<div style="padding-bottom: 0px; padding-left: 240px;"><a href="http://www.boundtochange.com/contact.html">CONTACT</a></div>

</TD></TR>
<TR>
<TD valign=top height=395><img height=395 alt""
src="images/bottomleft.gif"
width=27></TD>
<TD valign=top height=307>
<Table width="285" border=0 cellpadding=0 cellspacing=0>
<TBODY>
<TR>
<TD height="54">&nbsp;</TD>
</TR>
<TR>
<TD height="35">
<TABLE width="77%" height="18" border=0 cellpadding=0 cellspacing=0>
<TBODY>
<TR>
<TD height="15" class=red ><div align="center"></div></TD>
</TR></TBODY></TABLE></TD></TR>
<TR>
<TD height="50">&nbsp;</TD>
</TR>
<TR>
<TD height="130"></TD>
</TR>
</TBODY></Table></TD>
<TD valign top width=64><img height=395
src="images/bottommiddle.gif"
width=64></TD>
<TD valign=top width=387>
<table cellspacing=0 cellpadding= width="100%" border=0>
<TBODY>
<TR>
<TD><img height=54
src="images/contactinfo.gif"
width=386></TD>
</TR></tbody></table>
<table cellspacing=5 cellpadding=0 width="100%" height="42" border=0>
<tbody>
<TR>
<TD height="30"><Span class=red>Sucess!</span> <BR>
<span class="pagedef">Thank you for signing up for the Bound To Change Newsletter. </span></div>
</div></TD>
</TR>
</TBODY></Table></TD>
<TD valign=top width=38><img height=395 alt=""
src="images/bottomright.gif"
width=38></TD>
</TR></TBODY></TABLE></BODY></HTML>
</body>
</html>

02-19-2005, 11:47 PM
#2
opserty is offline opserty
Status: I love this place
Join date: Jan 2005
Location: UK, Birmingham
Expertise:
Software:
 
Posts: 606
iTrader: 0 / 0%
 

opserty is on a distinguished road

Send a message via MSN to opserty

  Old

You can't see your html or just the php because your not meant to see any php the task is performed by the server and then an action is outputted by the server depending on the task.

02-20-2005, 02:41 AM
#3
CEStudios is offline CEStudios
Status: Junior Member
Join date: Jan 2005
Location:
Expertise:
Software:
 
Posts: 78
iTrader: 0 / 0%
 

CEStudios is on a distinguished road

  Old

figured it out, their host does not support php, so thats why it didnt work right, its scripted right, but host does not support php. Thanks tho,

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed