{"id":1464,"date":"2022-08-30T15:16:45","date_gmt":"2022-08-30T15:16:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/19\/iframe-select-content-of-left-fram-as-link-and-post-it-to-right-frame-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:16:45","modified_gmt":"2022-08-30T15:16:45","slug":"iframe-select-content-of-left-fram-as-link-and-post-it-to-right-frame-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/iframe-select-content-of-left-fram-as-link-and-post-it-to-right-frame-collection-of-common-programming-errors\/","title":{"rendered":"iframe select content of left fram as link and post it to right frame-Collection of common programming errors"},"content":{"rendered":"<p>I am not a php expert so maybe my question is trivial<\/p>\n<p>I have a page links.php with two iframes (left and right).<\/p>\n<p>left lists Link sections after a query from db, right should list all links from a section after section has been selected by click.<\/p>\n<p>the result &#8211; section&#8217;s names [Section] is displayed in left frame and a number for each row [Sectionid] has been requested,to<\/p>\n<p>If I perform for test<\/p>\n<pre><code>   echo $row['Sectionid'];\n   echo $row['Section'];\n<\/code><\/pre>\n<p>I get correctly both values for each row and of course the name of the section [Section] displays correctly.<\/p>\n<p>now I want to post the request to right frame, where I need $Sectionid; for the query in the link table.<\/p>\n<p>First I did the following:<\/p>\n<pre><code>  echo'' ;\n  echo '<b>'.$row['Section'].'<\/b>';\n  echo \"\"; \n  echo '';\n<\/code><\/pre>\n<p>This will show the content in the right frame as desired, but it displays a button with the section number in the left frame. Not exactly what I want. I would like to display the Section list on the left as links on the menu names to be selected. So I tried the following;<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>While in this case the section names are indeed displayed as links, when I click on one of these links it does not behave as desired.<\/p>\n<p>First I get an answer in the same frame (the one that lists the Sections), so target is ignored<\/p>\n<p>Second the value for Sectionid is not posted to linkcontent.php, as I get the errormessage:<\/p>\n<pre><code>Notice: Undefined index: Sectionid in \/usr\/share...\n<\/code><\/pre>\n<p>Simply it does not work.<\/p>\n<p>How can I make perform php the action in order to obtain the result in the second frame as with the form command?<\/p>\n<p>A minor question: when I first call link.php both frames listmenu.php and linkcontent.php of course are displayed, but right frame displays<\/p>\n<pre><code>Notice: Undefined index: Sectionid in \/usr\/share... \n<\/code><\/pre>\n<p>as it did not receive any value, of course. While it is obvious that it cannot receive any value before a Section has been selected, I would like to suppress this message with some function telling not to expect a value for Sessionid if value for Sessionid is empty in order to have the page blank before any selection in the menu list.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-19 13:18:27. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am not a php expert so maybe my question is trivial I have a page links.php with two iframes (left and right). left lists Link sections after a query from db, right should list all links from a section after section has been selected by click. the result &#8211; section&#8217;s names [Section] is displayed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1464","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1464"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1464\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}