<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress DK Forum Topic: Mit eget PHP script i WP</title>
		<link>http://wp-danmark.dk/forum/topic/mit-eget-php-script-i-wp</link>
		<description>WordPress DK Forum Topic: Mit eget PHP script i WP</description>
		<language>da-DK</language>
		<pubDate>Sun, 27 Sep 2026 03:28:04 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/topic/mit-eget-php-script-i-wp" rel="self" type="application/rss+xml" />

		<item>
			<title>TeamEmilie om "Mit eget PHP script i WP"</title>
			<link>http://wp-danmark.dk/forum/topic/mit-eget-php-script-i-wp#post-56508</link>
			<pubDate>tors, 27 mar 2014 13:15:47 +0000</pubDate>
			<dc:creator>TeamEmilie</dc:creator>
			<guid isPermaLink="false">56508@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Takker
&#60;/p&#62;</description>
		</item>
		<item>
			<title>René Skou om "Mit eget PHP script i WP"</title>
			<link>http://wp-danmark.dk/forum/topic/mit-eget-php-script-i-wp#post-56505</link>
			<pubDate>tors, 27 mar 2014 12:57:18 +0000</pubDate>
			<dc:creator>René Skou</dc:creator>
			<guid isPermaLink="false">56505@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;&#60;code&#62;&#60;br /&#62;
[insert_php]&#60;br /&#62;
$submit_value = $_POST['action'];&#60;/p&#62;
&#60;p&#62;if(!empty($submit_value) &#38;amp;&#38;amp; $submit_value == 'post')&#60;br /&#62;
{&#60;br /&#62;
    $width = $_POST['width'];&#60;br /&#62;
    $length = $_POST['length'];&#60;br /&#62;
    $area = $width*$length;&#60;br /&#62;
    echo '&#38;lt;h2&#38;gt;Results&#38;lt;/h2&#38;gt;';&#60;br /&#62;
    echo 'The area of a rectangle '.$width.' x '.$length.' is '.$area;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;[/insert_php]&#60;br /&#62;
&#38;lt;form enctype=&#34;multipart/form-data&#34; method=&#34;post&#34; action=&#34;&#34;&#38;gt;&#60;br /&#62;
    &#38;lt;p&#38;gt;Width:&#38;lt;input name=&#34;width&#34; /&#38;gt;&#38;lt;/p&#38;gt;&#60;br /&#62;
    &#38;lt;p&#38;gt;Length:&#38;lt;input name=&#34;length&#34; /&#38;gt;&#38;lt;/p&#38;gt;&#60;br /&#62;
    &#38;lt;button type=&#34;submit&#34; name=&#34;action&#34; value=&#34;post&#34;&#38;gt;Send&#38;lt;/button&#38;gt;&#60;br /&#62;
&#38;lt;/form&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>TeamEmilie om "Mit eget PHP script i WP"</title>
			<link>http://wp-danmark.dk/forum/topic/mit-eget-php-script-i-wp#post-56499</link>
			<pubDate>tors, 27 mar 2014 10:44:22 +0000</pubDate>
			<dc:creator>TeamEmilie</dc:creator>
			<guid isPermaLink="false">56499@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej&#60;br /&#62;
Jeg har et par simple script der beregner en værdi udfra nogle input felter. Er der nogen der kan give et eksempel på hvordan man gør det?&#60;/p&#62;
&#60;p&#62;Jeg har forsøgt at installere PHP insert plugin'et og det virker til dels også.&#60;br /&#62;
Problemet her er blot at den ikke kommer med et resultat. Jeg har gjort som vist her:&#60;br /&#62;
[insert_php]&#60;br /&#62;
 if ($_GET['calc'] == &#34;yes&#34;)&#60;br /&#62;
 {&#60;br /&#62;
 $width = $_GET['width'];&#60;br /&#62;
 $length = $_GET['length'];&#60;br /&#62;
 $area = $width*$length;&#60;br /&#62;
 print &#34;&#38;lt;h2&#38;gt;Results&#38;lt;/h2&#38;gt;&#34;;&#60;br /&#62;
 print &#34;The area of a rectangle $width x $length is $area &#38;lt;p&#38;gt;&#34;;&#60;br /&#62;
 }&#60;br /&#62;
[/insert_php]&#60;br /&#62;
&#38;lt;form method=&#34;post&#34;&#38;gt;&#60;br /&#62;
   &#38;lt;p&#38;gt;First name: &#38;lt;input type=&#34;text&#34; name=&#34;width&#34; /&#38;gt;&#38;lt;/p&#38;gt;&#60;br /&#62;
   &#38;lt;p&#38;gt;Last name: &#38;lt;input type=&#34;text&#34; name=&#34;length&#34; /&#38;gt;&#38;lt;/p&#38;gt;&#60;br /&#62;
   &#38;lt;input type=&#34;hidden&#34; name=&#34;calc&#34; value =&#34;yes&#34;&#38;gt;&#60;br /&#62;
   &#38;lt;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;Submit&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;/form&#38;gt;&#60;/p&#62;
&#60;p&#62;Jeg har brug for hjælp til enten hvordan jeg skal gøre det eller hvordan jeg får mit eksempel til at virke. Det må have noget med post og get at gøre, går jeg ud fra.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
