Jump to content

Submitting news through a PHP page


FM 98.5

Recommended Posts

Can someone please have a look at this page. Someone submits a news item then is uploaded onto the index page. Then, that same news is automatically put into the "More news stories" bit down the bottom of the page as you will see. Only problem is when you click "click for more" on one of the news, the page loads and it doesn't show that news item. It just shows exactly the same page. As you will see in the source code, the news items are under "pr01" "pr02" etc..

Does anyone know what I'm doing wrong? Thanks for your help!

http://www.scma1.com/news.php

And this is the code:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/scma.dwt" codeOutsideHTMLIsLocked="false" -->

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- InstanceBeginEditable name="doctitle" -->

<title>Southern Community Media Assoc.</title>

<!-- InstanceEndEditable -->

<!-- InstanceBeginEditable name="head" -->

<style type="text/css">

<!--

.style7 {font-size: x-small}

a:hover {

color: #0000FF;

}

.style10 { color: #0069B3;

font-weight: bold;

}

-->

</style>

<!-- InstanceEndEditable -->

<style type="text/css">

<!--

<style>

#footer {

bottom:10;

float: inherit;

position: relative;

}

#Layer1 {

position:relative;

z-index:1;

left: 100;

top: 100;

}

#Layer2 {

position:absolute;

width:200px;

height:164px;

z-index:2;

left: 77px;

top: 15px;

}

body {

background-image: url(images/bg.jpg);

background-repeat: no-repeat;

}

#Layer3 {

position:absolute;

width:244px;

height:85px;

z-index:2;

left: 257px;

top: 53px;

}

#Layer4 {

position:absolute;

width:200px;

height:164px;

z-index:3;

left: 77px;

top: 15px;

}

#Layer5 {

position:absolute;

width:200px;

height:115px;

z-index:3;

left: 55px;

top: 27px;

}

#Layer6 {

position:absolute;

width:601px;

height:7px;

z-index:4;

left: 128px;

top: 171px;

}

#Layer7 {

position:absolute;

width:13px;

height:0px;

z-index:5;

left: 64px;

top: 171px;

}

#home {

position:absolute;

left:228px;

top:198px;

width:107px;

height:1px;

z-index:6;

}

#news {

position:absolute;

left:333px;

top:198px;

width:89px;

height:3px;

z-index:7;

}

#Layer8 {

position:absolute;

left:434px;

top:198px;

width:83px;

height:3px;

z-index:8;

}

#copyright {

position:absolute;

width:743px;

height:40px;

z-index:1;

left: 11px;

top: 1100px;

}

.style6 {font-family: "Trebuchet MS", Arial, Helvetica}

#Layer9 {

position:absolute;

width:157px;

height:93px;

z-index:1;

right: 10px;

top: 63px;

}

-->

</style>

</head>

 

<body>

<div align="center">

<table width="815" border="0" cellpadding="0" cellspacing="0">

<!--DWLayoutTable-->

<?php include('prmain.php'); ?>

<table width="100%" height="278" border="0" cellspacing="0">

<tr>

<p> </p>

<td width="78%" valign="top"><div align="center">

<h2><strong></strong></h2>

<h2><strong><?php echo $head; ?></strong></h2>

</div>

<p><?php echo $content; ?> <a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.scma1.com/news.php?storyid=prmain">

</p></td>

</tr>

<tr>

<td> </td>

<td valign="top">

 

<!-- InstanceEnd --><html>

 

 

 

 

 

 

 

 

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/scma.dwt" codeOutsideHTMLIsLocked="false" -->

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- InstanceBeginEditable name="doctitle" -->

<title>Southern Community Media Assoc.</title>

<!-- InstanceEndEditable -->

<!-- InstanceBeginEditable name="head" -->

<style type="text/css">

<!--

.style7 {font-size: x-small}

a:hover {

color: #0000FF;

}

.style10 { color: #0069B3;

font-weight: bold;

}

-->

</style>

<!-- InstanceEndEditable -->

<style type="text/css">

<!--

<style>

#footer {

bottom:10;

float: inherit;

position: relative;

}

#Layer1 {

position:relative;

z-index:1;

left: 100;

top: 100;

}

#Layer2 {

position:absolute;

width:200px;

height:164px;

z-index:2;

left: 77px;

top: 15px;

}

body {

background-image: url(images/bg.jpg);

background-repeat: no-repeat;

}

#Layer3 {

position:absolute;

width:244px;

height:85px;

z-index:2;

left: 257px;

top: 53px;

}

#Layer4 {

position:absolute;

width:200px;

height:164px;

z-index:3;

left: 77px;

top: 15px;

}

#Layer5 {

position:absolute;

width:200px;

height:115px;

z-index:3;

left: 55px;

top: 27px;

}

#Layer6 {

position:absolute;

width:601px;

height:7px;

z-index:4;

left: 128px;

top: 171px;

}

#Layer7 {

position:absolute;

width:13px;

height:0px;

z-index:5;

left: 64px;

top: 171px;

}

#home {

position:absolute;

left:228px;

top:198px;

width:107px;

height:1px;

z-index:6;

}

#news {

position:absolute;

left:333px;

top:198px;

width:89px;

height:3px;

z-index:7;

}

#Layer8 {

position:absolute;

left:434px;

top:198px;

width:83px;

height:3px;

z-index:8;

}

#copyright {

position:absolute;

width:743px;

height:40px;

z-index:1;

left: 11px;

top: 1100px;

}

.style6 {font-family: "Trebuchet MS", Arial, Helvetica}

#Layer9 {

position:absolute;

width:157px;

height:93px;

z-index:1;

right: 10px;

top: 63px;

}

-->

</style>

</head>

 

<body>

<div align="center">

<table width="815" border="0" cellpadding="0" cellspacing="0">

<!--DWLayoutTable-->

<?php include("http://www.scma1.com/Templates/header.html") ?>

<td height="777" valign="top"><!-- InstanceBeginEditable name="body" -->

<?php include('prmain.php'); ?>

<table width="100%" height="278" border="0" cellspacing="0">

<tr>

<td width="22%" height="112" valign="top" background="Drag to a file to choose it."><p><img src="/images/ceo.jpg" alt="Ray Hazen -- CEO" width="80" height="99" /><br />

Ray Hazen<br />

C.E.O.</p>

<p> </p>

<p><strong><a href="http://www.ozradiolive.com/"><img src="/images/ozradiolive.JPG" width="154" height="34" /></a></strong><br />

<a href="http://www.ozradiolive.com/" onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'">Click here</a> to listen<br />

to live streaming<br />

from

member <br />

stations @ <a href="http://www.ozradiolive.com/" onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'"><br />

OzRadoLive.com </a></p></td>

<td width="78%" valign="top"><div align="center">

<h2><strong></strong></h2>

<h2><strong><?php echo $head; ?></strong></h2>

</div>

<p><?php echo $content; ?> <a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.scma1.com/news.php?storyid=prmain"><span class="style7">[click for more]</span> </a></p>

<p>______________________________________________________</p></td>

</tr>

<tr>

<td> </td>

<td valign="top">

<h2>More news stories</h2>

<p>

<?php include('pr06.php');

echo '<p>'.$head.'   '; ?>

<a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.scma1.com/news.php?storyid=pr06"><span class="style7">[click for more]</span></a>

</p>

<?php include('pr05.php'); echo '<p>'.$head.'   '; ?>

<a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.scma1.com/news.php?storyid=pr05"><span class="style7">[click for more]</span></a>

</p>

 

<?php include('pr04.php'); echo '<p>'.$head.'   '; ?>

<a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.scma1.com/news.php?storyid=pr04"><span class="style7">[click for more]</span></a>

</p>

 

<?php include('pr03.php'); echo '<p>'.$head.'   '; ?>

<a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.scma1.com/news.php?storyid=pr03"><span class="style7">[click for more]</span></a>

</p>

 

<?php include('pr02.php'); echo '<p>'.$head.'   '; ?>

<a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.scma1.com/news.php?storyid=pr02'"><span class="style7">[click for more]</span></a>

</p>

 

<?php include('pr01.php'); echo '<p>'.$head.'   '; ?>

<a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.scma1.com/news.php?storyid=pr01"><span class="style7">[click for more]</span></a></p>

</p>

<br />

<br />

<br />

<span class="style10"><font style="vertical-align:baseline;">You are visitor number</font></span><a onmouseover="this.style.backgroundColor='blue'"

onmouseout="this.style.backgroundColor='transparent'" href="http://www.statcounter.com/" target="_blank"> <img src="http://c21.statcounter.com/counter.php?sc_project=2220494&java=0&security=b02b3dd2&invisible=0" alt="free hit counter" border="0" align="absbottom" class="style10" /></a></td>

</tr>

</table>

<!-- InstanceEndEditable --><br />

</table>

</div>

<?php include("http://www.scma1.com/Templates/footer.html") ?>

</body>

<!-- InstanceEnd --></html>

 

Link to comment
Share on other sites

Thanks teng84,

I deleted the parts where it said HTML is locked, if that's the right thing to do. It didn't make any difference to it. I did some research on double HTML declaration and can't find much to do with it. Well, nothing about it being double. How do I fix this double html declaration?

Thanks for your help!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.