Please help. I cant find how to do this...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
I AM
Forum Newbie
Posts: 3
Joined: Wed Jan 07, 2009 12:50 pm

Please help. I cant find how to do this...

Post by I AM »

I have a button that is, by default, disabled=True.

After I press the submit button, which runs sql to insert a field, I want to set the another button Disabled = False.

I dont want to use javascript.

Is there a way to change the attribute of the button via php?

Thanks!!
User avatar
sergio-pro
Forum Commoner
Posts: 88
Joined: Sat Dec 27, 2008 12:26 pm

Re: Please help. I cant find how to do this...

Post by sergio-pro »

Hi

Button HTML is generated on the server,
So, after insert (which is also processed on server usually) you can make button attributes whatever you want using php.

Hope that helps )
I AM
Forum Newbie
Posts: 3
Joined: Wed Jan 07, 2009 12:50 pm

Re: Please help. I cant find how to do this...

Post by I AM »

Sorry, but it does not make sense to me.

Can you show me what the code would be?

Thanks!!
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Please help. I cant find how to do this...

Post by onion2k »

I AM wrote:Sorry, but it does not make sense to me.

Can you show me what the code would be?

Thanks!!
You won't learn anything if you don't think about it.
I AM
Forum Newbie
Posts: 3
Joined: Wed Jan 07, 2009 12:50 pm

Re: Please help. I cant find how to do this...

Post by I AM »

onion2k wrote:
I AM wrote:Sorry, but it does not make sense to me.

Can you show me what the code would be?

Thanks!!
You won't learn anything if you don't think about it.
WOW!
What a dick!!
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Please help. I cant find how to do this...

Post by onion2k »

Well, yes, you could look at it that way. People often do when they ask for people to write code for free and get turned down. I can assure you that my comment was more than that though. I want you to improve as a web developer. I want everyone here to. And the only way you will is by thinking about the problem, asking for help rather than a finished solution, and understanding what it is you're coding.

And for the record, I do have the power to ban you, so try not to be abusive again please.
Post Reply