-
password protecting on field
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form id="RSSFEED" name="RSSFEED" method="post" action="rss_update.php"> <table width="309" border="1"> <tr> <th width="83" scope="col">RSS Feed </th> <th width="198" scope="col"> </th> </tr> <tr> <td>Title : </td> <td><label> <input name="rsstitle" type="text" id="rsstitle" size="33" /> </label></td> </tr> <tr> <td>Link : </td> <td><label> <input name="rsslink" type="text" id="rsslink" size="33" /> </label></td> </tr> <tr> <td>Description : </td> <td><label> <textarea name="rssdescription" cols="30" rows="5" id="rssdescription"></textarea> </label></td> </tr> <tr> <td>Author : </td> <td><label> <input name="rssauthor" type="text" id="rssauthor" size="33" /> </label></td> </tr> <tr> <td>Password : </td> <td><label> <input name="rsspassword" type="password" id="rsspassword" size="33" /> </label></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="Submit" value="Submit" /> <input type="reset" name="Submit2" value="Reset" /> </label></td> </tr> </table> </form> </body> </html> Hey, I was wondering whether someone could help answer me this simple question, I want the user to have to type a password in this box which is preset, if the password is correct then the form will be added to database otherwise id get an error. And which page would i put this piece of code in , <label> <input name="rsspassword" type="password" id="rsspassword" size="33" /> </label> Cheers in advance
-
problem with rss in php
cheers mate it works now
-
problem with rss in php
thats because its a .xml file and not .php i have www.getrecognized.co.uk/test1.php also that shows some data but doesnt come up right confused
-
problem with rss in php
http://www.getrecognized.co.uk/test1.xml and well i used a tutorial so i dont understand why it doesnt work ? cheers
-
problem with rss in php
<?php echo '<?xml version="1.0" ?>'; echo '<rss version="2.0">'; echo '<channel>'; // Opens our main content echo '<title>Test Website RSS Feed</title>'; // Defines the title of the RSS feed echo '<link>http://www.testsite.com</link>'; // Where the RSS feed is from echo '<description>This RSS feed is all about the pie.</description>'; // What its about $c = mysqli_connect('localhost', '', '', '') or die(mysqli_error($c)); // Connect with our information $q = mysqli_query($c, 'SELECT * FROM news ORDER BY id DESC LIMIT 5') or die(mysqli_error($c)); // Query the table for 5 news articles sorting by 'id' while($r = mysqli_fetch_assoc($q)) // While there is more rows to get (max of 5) we get an associative array { echo '<item>'; // Begin a news article echo '<title>'.$r['title'].'</title>'; // Give it a title echo '<link>'.$r['permalink'].'</link>'; // The link to the article echo '<description>'.$r['content'].'</description>'; // The description or content of the article echo '<author>'.$r['author'].'</author>'; // The author echo '<pubDate>'.$r['date'].'</pubDate>'; // The date is was published echo '</item>'; // End news article } // End while statement echo '</channel>'; echo '</rss>'; /> im confused as when i load it up i get an error saying "XML Parsing Error: no element found Location: http://www.quad.co.uk/test1.xml Line Number 27, Column 3:?> --^" where could i be going wrong? thanks in advance