Jump to content

Recommended Posts

Hi Guys,

 

Ok this is might be a strange and new request.

 

I have a php page with a link on the side menu which when you click you can add a customer into my database.

 

I would another link (to book an appointment) to appear on this page when the customer has been added or the link should be disabled before the customer is added and enabled when the customer is added. Is this possible?

Please help

 

Thanks alot

Link to comment
https://forums.phpfreaks.com/topic/242434-php-disable-and-enabling-a-link/
Share on other sites

there are a few ways that this can be done..you can have the link hidden until the customer data has been added to the database, i would recommend doing this with jquery. You can also have the link present, but have it disabled until the customer data is submitted, again you can do this with either jquery or javascript...or even CSS..depends what route you want to go

you can look around the jquery site for what you need, this doesn't necessarily need to be done with jquery, but they have cool effects and such and make it easier on the code to use javascript with there functions..

 

http://jquery.com/

 

as for the javascript method, you can simply good something like "javascript disable link"

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.