Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. data save on button click

data save on button click

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
phpdatabase
3 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umeshdaiya
    wrote on last edited by
    #1

    hi i would like to know that i have a button save when i click on this button i want that all textboxs value store in database. how i can perform this task. i am new user of php please :-D

    M R 2 Replies Last reply
    0
    • U umeshdaiya

      hi i would like to know that i have a button save when i click on this button i want that all textboxs value store in database. how i can perform this task. i am new user of php please :-D

      M Offline
      M Offline
      Mohammad Dayyan
      wrote on last edited by
      #2

      I guess it's an AJAX question, Not PHP. However you should use AJAX. For that you should learn JAVASCRIPT. But I suggest ,use Prototype[^] Framework. It's easy.

      1 Reply Last reply
      0
      • U umeshdaiya

        hi i would like to know that i have a button save when i click on this button i want that all textboxs value store in database. how i can perform this task. i am new user of php please :-D

        R Offline
        R Offline
        Ranjit Viswakumar
        wrote on last edited by
        #3

        You will have to have an AJAX function that updates the database. There are 3 components here- 1. AJAX script: http://whatsaranjit.com/includes/grabData.js[^] 2. A button that calls AJAX:

        <input type=button value=Update onClick="grabData('value','IDofDiv', page.php)'>

        3. A user-facing page with a text field. When the button is pushed, object.value (or whatever value) is passed to page.php as a $GET['q']. The PHP page should receive the $_GET['q'] as process a mysql_query() to update the database. The 'IDofDiv' is optional if you'd like the output of page.php to report content in between <div id=IDofDIv></div>. Good luck! Ranjit Viswakumar Professional Services Specialist rviswakumar@hostmysite.com HostMySite.com[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups