<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්.]]></title><description><![CDATA[<p dir="auto">හිතනවකෝ, form එකකට input කරනවා නමයි(Name), නම්බරයයි(PhoneNumber). මට ඕන නමයි, නම්බරයයි එක page එකක පෙන්නලා(page_one.php), ඒ නමම වෙනම තව page (page_two.php)එකක පෙන්නන්න ඔනේ.කොහොමද අප්පා ඒක කරන්නේ php වලින්.</p>
]]></description><link>https://lankadevelopers.lk/topic/486/php-form-එකක-ත-ය-න-variable-එකක-තව-multiple-pages-වලට-යවන-න-ප-න-නන-න-ක-හ-මද-php-වල-න</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 10:02:40 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/486.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Jan 2020 13:50:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Fri, 17 Jan 2020 07:57:29 GMT]]></title><description><![CDATA[<p dir="auto">man dakka uda kiyala thiba nama yawana one kiyala ilagana page ekta, lesiyanma oka karana puluwan php session ekin, oya form eka thiyana page ekan php session ekata dapn name eka itapse ara page dekama call karapn iwarine wade</p>
]]></description><link>https://lankadevelopers.lk/post/2842</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2842</guid><dc:creator><![CDATA[KrissSachintha]]></dc:creator><pubDate>Fri, 17 Jan 2020 07:57:29 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Thu, 16 Jan 2020 12:37:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/27">@root</a> Thankz brother</p>
]]></description><link>https://lankadevelopers.lk/post/2839</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2839</guid><dc:creator><![CDATA[Kataz]]></dc:creator><pubDate>Thu, 16 Jan 2020 12:37:50 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Wed, 15 Jan 2020 13:55:40 GMT]]></title><description><![CDATA[<p dir="auto">Sample html form</p>
<pre><code class="language-html">&lt;form action="form.php" method="POST"&gt;
          &lt;div class="form-group"&gt;
            &lt;input type="text" name="name" id="name" class="form-control" placeholder="Name"&gt;
          &lt;/div&gt;

          &lt;div class="form-group"&gt;
          &lt;input type="email" name="email" id="email" class="form-control" placeholder="Email"&gt;
          &lt;/div&gt;

          &lt;button class="btn btn-primary" type="submit"&gt;Submit&lt;/button&gt;
&lt;/form&gt;
</code></pre>
<hr />
<p dir="auto">Add this on to your website footer</p>
<pre><code class="language-html">  &lt;script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"&gt;&lt;/script&gt;
</code></pre>
<p dir="auto">The back end part</p>
<pre><code class="language-php">&lt;?php
	$form_data = array();

	$form_data['name'] = $_POST['name'];
	$form_data['email'] = $_POST['email'];

	echo json_encode($form_data);
?&gt;
</code></pre>
<p dir="auto">This is the form submit through javascript with query ajax part</p>
<pre><code class="language-javascript">&lt;script&gt;
  $(document).ready(function() {
    $('form').submit(function(e) {
      e.preventDefault();
      var values = $(this).serialize();
      $.ajax({
        url: "form.php",
        type: "post",
        data: values ,
        success: function (res) {
          alert('Form submitted successfully...')
          console.log(res)
        },
        error: function(xhr, status, error) {
          console.log(xhr.responseText);
        }
      });
     //send second form request
    $.ajax({
      url: "form2.php",
      type: "post",
      data: values ,
      success: function (res) {
        alert('Form submitted successfully...')
        console.log(res)
      },
      error: function(xhr, status, error) {
        console.log(xhr.responseText);
      }
    });
    })
  });
&lt;/script&gt;
</code></pre>
]]></description><link>https://lankadevelopers.lk/post/2832</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2832</guid><dc:creator><![CDATA[ciaompe]]></dc:creator><pubDate>Wed, 15 Jan 2020 13:55:40 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Wed, 15 Jan 2020 12:19:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/1243">@Kataz</a></p>
<p dir="auto">Machan meka karanna puluwan JavaScript ajax request ekakin.</p>
]]></description><link>https://lankadevelopers.lk/post/2831</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2831</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Wed, 15 Jan 2020 12:19:20 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Wed, 15 Jan 2020 09:46:39 GMT]]></title><description><![CDATA[<p dir="auto">ade mama wade anala thiyenne.  "multiple actions in a form" thama mata wenna one.</p>
<p dir="auto">&lt;form action= "page_one.php" method=post&gt; kiyala thibbama oya form ekata insert karana data tika yanne page_one.php kiyana ekatane. mata ekatath yawanna one thawa page_two.php kiyana page ekatath yawanna one.<br />
hariyata meh wage,<br />
&lt;form action= "page_one.php" &amp;&amp; "page_two.php"method=post&gt; (meka waradi neh)<br />
mata oka kara ganna thama one.<br />
Real word example ekak widiyata meka hithannako,<br />
form ekakata user, userge details add karanawa(name and email), e add karana details crud ekakin admin ta yanwa. e ekkama page eka redirect wenawa "thank you" (thankyou.php) page ekakata. e page eke thiyenawa ""Thank you, ________(userge name eka)". mata anna eka thama hada ganna one. mn dakka google eke thiyenwa js walin oka karana widiyak eth eka math hariyata therune nah.</p>
]]></description><link>https://lankadevelopers.lk/post/2827</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2827</guid><dc:creator><![CDATA[Kataz]]></dc:creator><pubDate>Wed, 15 Jan 2020 09:46:39 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Tue, 14 Jan 2020 18:11:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/1243">@Kataz</a></p>
<p dir="auto">code eke ona tika witharak danna</p>
]]></description><link>https://lankadevelopers.lk/post/2821</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2821</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Tue, 14 Jan 2020 18:11:53 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Tue, 14 Jan 2020 17:40:48 GMT]]></title><description><![CDATA[<p dir="auto">code eka daapan mchan balana</p>
]]></description><link>https://lankadevelopers.lk/post/2814</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2814</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Tue, 14 Jan 2020 17:40:48 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Tue, 14 Jan 2020 14:40:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/1243">@Kataz</a> ප්‍රශ්නය තව ටිකක් පැහැදිලි කරානම් හරි. මට තේරුනෙත් ඔයා කිව්ව දේ වැරදියට</p>
]]></description><link>https://lankadevelopers.lk/post/2804</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2804</guid><dc:creator><![CDATA[Kalana]]></dc:creator><pubDate>Tue, 14 Jan 2020 14:40:36 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Tue, 14 Jan 2020 14:38:28 GMT]]></title><description><![CDATA[<p dir="auto">නෑ නෑ මන් කතා කරන්නේ multiple form action ගැන. අඩේ code එක පට්ට ලොකුයි. crud  එක වැඩ.</p>
]]></description><link>https://lankadevelopers.lk/post/2803</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2803</guid><dc:creator><![CDATA[Kataz]]></dc:creator><pubDate>Tue, 14 Jan 2020 14:38:28 GMT</pubDate></item><item><title><![CDATA[Reply to php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්. on Tue, 14 Jan 2020 14:34:00 GMT]]></title><description><![CDATA[<p dir="auto">ප්‍රශ්නයේ හැටියට ඔයා <code>PHP</code> වලට අලුත් කෙනෙක් වගේ පේන්නේ. මේකට ඔයා ට්‍රයි කරපු code එකත් දැම්මනම් වැඩේ ලේසියි. මන් මේකට මෙහෙම උදව්වක් කරන්නම්. ඔයා input කරන විස්තර ඒ ඒ අදාල variable එකේ store වෙනවා. ඊට් පස්සේ ඔයාට තියෙන්නේ ඒ store  කරගත්තු variable ටික page_one.php එකටයි page_two.php එකටයි call කරන එක.</p>
<p dir="auto">ඔයා මෙහෙම කරන්න. Google එකට ගිහින් <code>crud operations in php</code> කියලා සර්ච් කරන්න. නැත්තම් <a href="https://www.tutorialrepublic.com/php-tutorial/php-mysql-crud-application.php" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.tutorialrepublic.com/php-tutorial/php-mysql-crud-application.php</a> ඔය ලින්ක් එකට ගිහින් බලන්න. එතකොට ඔයාට idea එකක් එයි. ඒකෙත් ඔයාගේ ප්‍රශ්නයට අදාල වෙන කොටස තියෙන්නේ <code>Creating the Read Page</code> කියන කොටසේ.</p>
]]></description><link>https://lankadevelopers.lk/post/2802</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2802</guid><dc:creator><![CDATA[Kalana]]></dc:creator><pubDate>Tue, 14 Jan 2020 14:34:00 GMT</pubDate></item></channel></rss>