How to refresh variables in earlier created url

Discussion in 'PHP' started by globalcashsite, Jan 3, 2010.

  1. #1
    Guys

    I need help how to refresh variables in previously created variables. For example I created a url with data taken from variables.

    I wish that when I change/update data in one field, that variables data should also update in that url.

    I will call following link (update1.php) from update.php

    http://www.globalcashsite.com/update1.php?added=20-Dec-09&lastpay=01-Jan-10&m_status=Paying&programid=59

    Now above link is created before field update. I wish when I update lastpay field, that updated figure also changes in above url?

    Please let me know how to do this?

    GCS
     
    globalcashsite, Jan 3, 2010 IP
  2. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #2
    Just set all the other variables in inputs or hidden inputs that you need and then use a hidden input for the date like so: <input type="hidden" name="lastpay" value="<?php echo date(m-d-Y); ?>" />.
     
    Pudge1, Jan 3, 2010 IP
  3. globalcashsite

    globalcashsite Peon

    Messages:
    806
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for addressing my problem. Please visit this thread to understand what I want to do?

    http://forums.digitalpoint.com/showthread.php?t=1634870

    Problem is very simple, display 10 records at same time and update fields and update these records easily, either by one click or by 10 clicks.

    First I displayed 10 records by array/sql command and now I wish to have update link/button infront of each row so if I update only one row I can click link/button and script may update new values of those fields.

    Simply how to send script to any function by submit button or link? I prefer good looking submit button.

    GCS
     
    globalcashsite, Jan 3, 2010 IP