Jump to content

PHP Edit Page


anp24

Recommended Posts

Hello,

        I have a PHP page with a list of records coming from the database through the while loop. Each record can be edited with the edit link with code as

 

<form action='' method='post' name='fr'>
                         <input type='image' src='images/edit.png' name='task' value='Edit' />
				   </form>

 

Now I want to know, if I want to pass Edit Id for each record through session variable, How can I do this.

Link to comment
Share on other sites

yeah, I got that, but to pass it through the session, first you need to know what it is, then you need to place it in the session.

 

so you use the hidden field so you can grab it and place it in the session, otherwise how do you know which one was selected by the user?

Link to comment
Share on other sites

Hello,

        Only in Server Side PHP Code and no hidden field. This means that ID value is stored in an array and when user selects that particular record, the value from array will be passed to the session variable.

Thank You

Regards

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.