Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
CodeIgniter Framework HELP
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="විල්සන් මාමා" data-source="post: 16959866" data-attributes="member: 397789"><p><span style="font-size: 15px">CodeIgniter Framework එක්ක වැඩ කරන ය කව්ද ඉන්නේ </span></p><p><span style="font-size: 15px">මට පොඩි ප්රශ්නයක් තියෙනවා <img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /><img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /></span></p><p><span style="font-size: 15px">CSFR attacks ගැන </span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px">මේකයි </span></p><p><span style="font-size: 15px">මගේ form එකක් තියෙනවා </span></p><p><span style="font-size: 15px">මේ form එකේ data DB එකට යන්නේ ajax request එකකින් </span></p><p><span style="font-size: 15px">Form එක errors නැතුව submit කලාම මෙන්න මෙහෙම error එකක් දෙනවා </span></p><p></p><p style="text-align: left"><span style="font-size: 15px"><span style="color: #FF0000"><span style="font-family: 'Consolas'">POST <a href="http://localhost/photo_galleryV2.0/index.php/viewer/signup_process" target="_blank">http://localhost/myproject/index.php/viewer/signup_process</a> 500 (Internal Server Error)</span></span></span></p><p></p><p><span style="font-size: 15px">මම Google කලාම මේකට හේතුව CSFR attack කියලා හොයාගත්තා </span></p><p><span style="font-size: 15px">මම config.php එකේ $config['csrf_protection'] = TRUE; කරලා තියෙන්නේ.</span></p><p><span style="font-size: 15px">Form එකටත් පාවිච්චි කලේ form_open() & form_close() tags</span></p><p></p><p><span style="font-size: 15px">මේ දේවල් කලත් තාම <p style="text-align: left"><span style="color: #FF0000"><span style="font-family: 'Consolas'">POST <a href="http://localhost/photo_galleryV2.0/index.php/viewer/signup_process" target="_blank">http://localhost/</a></span></span><span style="color: #FF0000"><span style="font-family: 'Consolas'"><a href="http://localhost/photo_galleryV2.0/index.php/viewer/signup_process" target="_blank"><span style="font-size: 15px"><span style="color: #FF0000"><span style="font-family: 'Consolas'">[URL="http://localhost/photo_galleryV2.0/index.php/viewer/signup_process"]myproject</span></span></span></a>/index.php/viewer/signup_process[/URL] 500 (Internal Server Error)</span></span></p><p>එක එනවා </span></p><p><span style="font-size: 15px">මේක තමයි මගේ script එක </span></p><p></p><p></p><p>[CODE]</p><p> $("#sign-up").submit(function(e){</p><p> e.preventDefault(); </p><p> </p><p></p><p> alert($(this).serialize());</p><p> $.ajax({</p><p> method:"POST",</p><p> data:$(this).serialize(),</p><p> url:"<?php echo site_url('viewer/signup_process')?>",</p><p> success:function(data){</p><p> $("#update").html(data);</p><p> }</p><p> }) ;</p><p> });</p><p>[/CODE]<span style="font-size: 15px">කාටහරි කියන්න පුළුවන්ද මේ ඇයි කියලා </span></p><p><span style="font-size: 15px">මොකක්ද කරන්න ඕනේ </span></p><p><span style="font-size: 15px">මම පාවිච්චි කරන්නේ CodeIgniter_2.1.4 version එක </span></p><p><span style="font-size: 15px">මේක හින්දා මට ajax වලින් database එකට insert & update කරන්න බැහැ </span></p><p><span style="font-size: 15px">මාර අස්පට් එක </span></p><p><span style="font-size: 15px">මේක දන්න අය උදව්වක් දුන්නොත් ගොඩක් පින් <img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></span></p><p><span style="font-size: 15px"></span></p></blockquote><p></p>
[QUOTE="විල්සන් මාමා, post: 16959866, member: 397789"] [SIZE=4]CodeIgniter Framework එක්ක වැඩ කරන ය කව්ද ඉන්නේ මට පොඩි ප්රශ්නයක් තියෙනවා :(:( CSFR attacks ගැන මේකයි මගේ form එකක් තියෙනවා මේ form එකේ data DB එකට යන්නේ ajax request එකකින් Form එක errors නැතුව submit කලාම මෙන්න මෙහෙම error එකක් දෙනවා [/SIZE] [LEFT][SIZE=4][COLOR=#FF0000][FONT=Consolas]POST [URL="http://localhost/photo_galleryV2.0/index.php/viewer/signup_process"]http://localhost/myproject/index.php/viewer/signup_process[/URL] 500 (Internal Server Error)[/FONT][/COLOR][/SIZE][/LEFT] [SIZE=4]මම Google කලාම මේකට හේතුව CSFR attack කියලා හොයාගත්තා මම config.php එකේ $config['csrf_protection'] = TRUE; කරලා තියෙන්නේ. Form එකටත් පාවිච්චි කලේ form_open() & form_close() tags[/SIZE] [SIZE=4]මේ දේවල් කලත් තාම [LEFT][COLOR=#FF0000][FONT=Consolas]POST [URL="http://localhost/photo_galleryV2.0/index.php/viewer/signup_process"]http://localhost/[/URL][/FONT][/COLOR][COLOR=#FF0000][FONT=Consolas][URL="http://localhost/photo_galleryV2.0/index.php/viewer/signup_process"][SIZE=4][COLOR=#FF0000][FONT=Consolas][URL="http://localhost/photo_galleryV2.0/index.php/viewer/signup_process"]myproject[/FONT][/COLOR][/SIZE][/URL][SIZE=4][COLOR=#FF0000][FONT=Consolas][/FONT][/COLOR][/SIZE]/index.php/viewer/signup_process[/URL] 500 (Internal Server Error)[/FONT][/COLOR][/LEFT] එක එනවා මේක තමයි මගේ script එක [/SIZE] [CODE] $("#sign-up").submit(function(e){ e.preventDefault(); alert($(this).serialize()); $.ajax({ method:"POST", data:$(this).serialize(), url:"<?php echo site_url('viewer/signup_process')?>", success:function(data){ $("#update").html(data); } }) ; }); [/CODE][SIZE=4]කාටහරි කියන්න පුළුවන්ද මේ ඇයි කියලා මොකක්ද කරන්න ඕනේ මම පාවිච්චි කරන්නේ CodeIgniter_2.1.4 version එක මේක හින්දා මට ajax වලින් database එකට insert & update කරන්න බැහැ මාර අස්පට් එක මේක දන්න අය උදව්වක් දුන්නොත් ගොඩක් පින් :yes::yes::yes: [/SIZE] [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom