Results 1 to 5 of 5

Thread: can i execute command in button using php?

  1. #1

    can i execute command in button using php?

    is there a way to execute command using button made in photoshop or flash in php?

    i like to use button for calculating the sum of 2 text box, is't possible?

  2. #2
    Just create a regular HTML form, with a submit button that calls the required PHP function, as then use CSS to alter the appearance of the button.
    Last edited by duncanhall; February 15th, 2007 at 07:34 AM.

  3. #3

    re:

    sir can you show me some example or links of that

  4. #4

  5. #5
    Quote Originally Posted by flagbarton View Post
    is there a way to execute command using button made in photoshop or flash in php?

    i like to use button for calculating the sum of 2 text box, is't possible?
    dont need php. just javascript.

    Code:
    <script type="text/javascript">
    
    function addIt(){
    
    var one = document.addThem.inputOne.value;
    var two = document.addThem.inputTwo.value;
    var sum = document.addThem.sum;
    
    sum.value = one + two;
    return false;
    
    }
    
    </script>
    <form name="addThem">
         <input type="text" name="inputOne" />
     +  <input type="text" name="inputTwo" />
    ____________________________________
     <input type="text" name="sum" readonly="readonly" />
    
    <input type="submit" value="Calcumalate!" onclick="addIt();" />
    </form>

    im no JS bunny, but that should work.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012