Jump to content

shahab.fm

New Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

shahab.fm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I am trying to read the atom atom rss standard with the following code, but I do not manage to read the LINK & CONTENT. Could you please help me ? I have posted my php code here and I also attached a sample of the XML code i am reading with its source link under here. Thank in advance for your help. <?php function getFeed($feed_url) { $content = file_get_contents($feed_url); $x = new SimpleXmlElement($content); echo "<ul>"; foreach($x->entry as $entry) { //WORKS echo $entry->title; echo $entry->author->name; //DOESNT WORK echo $entry->content; echo $entry->link; } echo "</ul>"; } ?> A sample of RSS code I am reading : <?xml version="1.0" encoding="ISO-8859-1"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>FINN jobb - Alle stillinger</title> <link rel="alternate" href="http://www.finn.no/finn/job/fulltime/result/" title="FINN jobb - Alle stillinger" /> <rights>Copyright 2010</rights> <logo>http://cache.finn.no/img/logofinn.gif</logo> <entry> <title>Lyst å jobbe med IT support?</title> <link rel="alternate" href="http://www.finn.no/finn/object?finnkode=38539103" title="Annonse" /> <author> <name>People4you It Bemanning AS</name> </author> <published>2012-11-24T00:07:00Z</published> <content type="html"><div><div style='float:left;'>Sted: Oslo<br/>Firma: IT People4you<br/>Tittel: Support / brukerstøtte<br/>Kategori: IT / Telekommunikasjon / Internett, IT / Telekommunikasjon / Internett<br/></div></div></content> </entry> Source
  2. Hi, I am trying to make a form in PHP/HTML for a project. In the first form I get all the information (text & multiple files) and then when the SUBMIT button is pressed I post this to a validation page that checks the enteries with the database (MS SQL) to prevent duplication. The tricks I use in this page is that I copy all the information in a hidden form and Auto-Submit it by a javascript code on page_load. <body onLoad="document.form1.submit();"> However I dont know how to copy the available data in $_FILES ??? I tried this and some other variants (echo) without any luck ... <input name="filesToUpload[]" id="filesToUpload" type="file" multiple="" value="<?php =$_FILES ?>" /> My code for copying other parameters with the help of echo : <form action="<?php echo $url ?>" method="POST" name="form1" enctype="multipart/form-data"> <input type="text" id="komponentid_id" required value="<?php echo $_POST["component_id"]; ?>" name="component_id" minlength="18" maxlength="40" /> <input type="date" name="prod_date" id="prod_date_id" required value="<?php echo $_POST["prod_date"]; ?>" /> <input type="text" id="resept_num_id" required value="<?php echo $_POST["resept_num"]; ?>" name="resept_num" minlength="4" maxlength="25" /> <input type="text" id="wire_batch_ext_id" required value=" <?php echo $_POST["wire_batch_ext"]; ?>" name="wire_batch_ext" minlength="5" maxlength="24" /> <input type="text" id="wire_batch_int_id" required value=" <?php echo $_POST["wire_batch_int"]; ?>" name="wire_batch_int" minlength="8" maxlength="24" /> <input type="text" id="subs_num_ext_id" required value="<?php echo $_POST["subs_num_ext"]; ?>" name="subs_num_ext" minlength="5" maxlength="24" /> <input type="text" id="subs_num_int_id" required value="<?php echo $_POST["subs_num_int"]; ?>" name="subs_num_int" minlength="5" maxlength="24" /> <input type="text" id="comment_id" value="<?php echo $_POST["comment"]; ?>" name="comment" minlength="0" maxlength="500" /> <input type="text" id="error_id" value="<?php echo $error; ?>" name="error" minlength="0" maxlength="500" /> <input name="filesToUpload[]" id="filesToUpload" type="file" multiple="" value="<?php echo $_FILES ?>" /> <input type="text" id="error_code_id" value="<?php echo $error_code; ?>" name="error_code" minlength="0" maxlength="500" /> <input type="submit" value="Upload" /> </form>
×
×
  • 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.