Jump to content

Php mysql problem . its very urgent.


srinivas6203

Recommended Posts

Hi all

I am doing a website. when user edit his account total details are stored into the database. Then he click "apply changes" link, a .conf file will be generated with his total details fetching the values from database.

 

Total these task working fine. But management asking as

 

"When user edit his account then only 'apply changes' link will be come. The link will be there until he click that link.

If he click that link .conf file will be generated with his modified details. otherwise the link will be there until he click that.

 

any idea pls

 

thanq

Link to comment
Share on other sites

use some javascript along with php on the file.

 

When the page loads with all the users content, pass the php variables that print the text in the form to javascript.

Then have javascript compare the form's text fields to the ones it started with.

 

Using enviroment changes like keypress, let it wait like 2 seconds with no other changes, then pop up a javascript submit yes/no box, and if yes it will do the post command the old one would do when submitted.

Link to comment
Share on other sites

Its kind of a bit of a workload for that.

But since this is obviously some type of job, I won't just hand it to you.

 

Go and read some tutorials about user input and javascript.

You will get a LOT more out this if you learn to do it yourself and spend the hours doing so.

 

Now I would be happy to help once you have something started.

 

Take a look at the OnChange event.

 

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.