Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop
    1. Home
    2. ciaompe
    3. Posts
    • Profile
    • Following 19
    • Followers 20
    • Topics 6
    • Posts 89
    • Best 37
    • Controversial 0
    • Groups 8

    Posts made by ciaompe

    • RE: C Programming මුල සිට ඉගෙනගනිමු (part 16 - C functions)

      good work bro

      posted in Blogs
      ciaompe
      ciaompe
    • RE: php form එකක තියෙන variable එකක් තව multiple pages වලට යවන්නේ(පෙන්නන්නේ) කොහොමද php වලින්.

      Sample html form

      <form action="form.php" method="POST">
                <div class="form-group">
                  <input type="text" name="name" id="name" class="form-control" placeholder="Name">
                </div>
      
                <div class="form-group">
                <input type="email" name="email" id="email" class="form-control" placeholder="Email">
                </div>
      
                <button class="btn btn-primary" type="submit">Submit</button>
      </form>
      

      Add this on to your website footer

        <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
      

      The back end part

      <?php
      	$form_data = array();
      
      	$form_data['name'] = $_POST['name'];
      	$form_data['email'] = $_POST['email'];
      
      	echo json_encode($form_data);
      ?>
      

      This is the form submit through javascript with query ajax part

      <script>
        $(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);
            }
          });
          })
        });
      </script>
      
      posted in General Discussion
      ciaompe
      ciaompe
    • RE: Google Adsense මුල ඉදලම ඉගෙන ගෙන ලොකු මුදලක් මාසිකව ඉගෙන ගන්න.

      superb bro.

      posted in Blogs
      ciaompe
      ciaompe
    • RE: C Programming මුල සිට ඉගෙනගනිමු (part 4 - Input & Output functions)

      @Kalana-Eranda-Jayasuriya

      podi app ekak kiuwe, data input karala manipulate karana podi programe ekak

      posted in Blogs
      ciaompe
      ciaompe
    • RE: C Programming මුල සිට ඉගෙනගනිමු (part 4 - Input & Output functions)

      Superb bro, මේ කරපු ඒවා ටික use කරලා පොඩි application එකක් හදන්න පුලුවන්නම් ගොඩක් හොදයි

      posted in Blogs
      ciaompe
      ciaompe
    • RE: Android සිංහලෙන් Video Series

      niyamai bro digatama karagena yanna.

      posted in Android Development
      ciaompe
      ciaompe
    • RE: C Programming මුල සිට ඉගෙනගනිමු(part 1 - Introduction)

      good article, keep it up

      posted in Blogs
      ciaompe
      ciaompe
    • RE: Deploy Angular on Firebase Hosting for FREE!

      can you add article contents to this forum thread ?

      posted in Front-End Development
      ciaompe
      ciaompe
    • RE: පහසුන්වෙන්ම ඔබෙ Angular Application එක නොමිලෙ Netlify server එකෙ deploy කර ගමු. (Simple English)

      Keep it up, good luck

      posted in Front-End Development
      ciaompe
      ciaompe
    • RE: Firebase and Laravel

      yes you can do that

      https://www.cloudways.com/blog/firebase-realtime-database-laravel/

      posted in Web Development
      ciaompe
      ciaompe
    • RE: C++ to txt file update

      me thiyenne .txt eken use karana widiya.

      #include <iostream>
      #include <fstream>
      #include <conio.h>
      #include <string>
      
      using namespace std;
      
      class User {
      
      public:
      	string username;
      	string password;
      
      	void userRegister()
      	{
      		ofstream usersFile ("userData.txt");
      		if (	!usersFile.is_open())
      		{
      			usersFile.open("userData.txt");
      		}
      	        usersFile << username << " " << password << endl;
      	        usersFile.close();
      	}
      
      };
      
      int main() {
      	
      	User user1;
      	
      	cout << "Welcome!\n-------------------------------\n\nPlease register.\nEnter a new username:\n";
      	cin >> user1.username;
      
      	cout << "\nPlease enter a new password:\n";
      	cin >> user1.password;
      
      	user1.userRegister();
      
      	getch();
      }
      
      posted in Programming
      ciaompe
      ciaompe
    • RE: C++ to txt file update

      .txt use karanna epa .dat use karnana oyata lesiyen karnana puluwan oya wade.

      posted in Programming
      ciaompe
      ciaompe
    • RE: What is Docker 🐋 ?

      Good job @b6, Nice explanation

      posted in System & Network Configurations
      ciaompe
      ciaompe
    • RE: Hacking websites with SQL Injection 💉

      Awesome, we want this kind of articles. Thanks

      posted in Information Security
      ciaompe
      ciaompe
    • RE: Need Sinhala devs for react.js

      @Manokaran-Majushan

      Nice Work bro. welcome to the developer community in Sri Lanka

      posted in General Discussion
      ciaompe
      ciaompe
    • RE: Lanka Developers Community T-shirts

      @Dulaj_Nadawa

      alt text

      posted in Announcements
      ciaompe
      ciaompe
    • RE: Lanka Developers Community T-shirts

      @shazz-mhd

      Where did your ordered the t-shirt ? What is your email address,

      posted in Announcements
      ciaompe
      ciaompe
    • Lanka Developers Community T-shirts

      We gonna release Lanka Developers t-Shirts to 10 winners as we committed in our promotional period and now you can reserve your one.

      alt text
      alt text
      alt text
      alt text

      Buy Here

      posted in Announcements
      ciaompe
      ciaompe
    • RE: Blockchain Meetup #5 - February 2019

      Thanks malith.

      posted in Meetups & Workshop Sessions ( Free & Paid )
      ciaompe
      ciaompe
    • RE: Lanka Developers Meetup

      Good idea. we can do this. we want your contribution Thanks

      posted in General Discussion
      ciaompe
      ciaompe
    • 1
    • 2
    • 3
    • 4
    • 5
    • 2 / 5