Page 1 of 1

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

Posted: Wed Jan 07, 2009 12:52 pm
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!!

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

Posted: Wed Jan 07, 2009 2:13 pm
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 )

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

Posted: Wed Jan 07, 2009 4:14 pm
by I AM
Sorry, but it does not make sense to me.

Can you show me what the code would be?

Thanks!!

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

Posted: Wed Jan 07, 2009 4:17 pm
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.

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

Posted: Wed Jan 07, 2009 9:44 pm
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!!

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

Posted: Fri Jan 09, 2009 12:49 pm
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.