using not GET method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    using not GET method

    Code:
    <Tr class='pendingAppointment'>
                    <Td>1</Td>
    
                    <Td><a href="/hms-new/index.php/appointment?id=2">Pradeep g</a></Td>
                    <Td>1</Td>
    
                    <Td>Telphone</Td>
                    <Td>Sudeep  Rai</Td>
    
                    <Td>Regular</Td>
    
                    <Td>10:00 AM</Td>
                    <Td><a href='/hms-new/public/update.php?id=2'>Update</a></Td>
    
                    <Td><a href='/hms-new/public/cancel.php?id=2'>Cancel<a/></Td>
    
            </Tr>
            <Tr class='pendingAppointment'>
                    <Td>2</Td>
    
                    <Td><a href="/hms-new/index.php/appointment?id=1">shashank h</a></Td>
    
                    <Td>2</Td>
                    <Td>Walkin</Td>
                    <Td>Krishna  Rao</Td>
                    <Td>Regular</Td>
    
                    <Td>11:00 AM</Td>
    
                    <Td><a href='/hms-new/public/update.php?id=1'>Update</a></Td>
    
                    <Td><a href='/hms-new/public/cancel.php?id=1'>Cancel<a/></Td>
    
            </Tr>
    i was using code like above where in i was using GET method to get the ID and display a form with the ID details from DB. Now e have decided not to have GET in our webiste. So how should i proceed with out using a GET method and only post .each row in a table displayed above has 3 actions.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    There is no simple way to do such navigation without using the query string (GET). It would require you to use JavaScript, or a hidden form.

    Is there a reason why you want to do this?
    Generally speaking, when data is passed to PHP in order to "get" information, it should be sent via the query string. - The POST method should be used to post new data; to add information.

    If you are worried about security, POST offers very little over GET in that department. If somebody is bothering to intercept the request at all, he will undoubtedly have access to data belonging to both methods.

    Comment

    Working...