473,507 Members | 2,545 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visible and Invisible buttion

250 Contributor
I have a php page which is having "sumbit" and "cancel" buttion in default. but when user click submit button I want to hide"submit" button and display "ok" button. How can I do that?
Jul 14 '09 #1
6 4132
Dormilich
8,658 Recognized Expert Moderator Expert
@ghjk
what for? if you wand to submit a form, a submit button seems to be the way to go...

further, PHP can only take action after the form was submitted (and there I'm wondering what the OK button should be for). for any changes before submission you may consider Javascript to change the buttons.
Jul 14 '09 #2
creative1
274 Contributor
I imagine doing it by:
1. Create a button with dynamic text on it, That will change after click. You can use session variable to check that. and ofcourse, it will be done after form SUBMIT and will require a page reloading.
2. Display both button on the page and make ok button invisible. You would need Java script for that.

Please, correct me if I am wrong.
Jul 14 '09 #3
pdkadam
6 New Member
Use jQuery AJAX to change the SUBMIT button to OK button.
First of all use only a part of the page for the form. Using AJAX call, you can submit only this selected part and not entire page. Hence the whole page will not be reloaded. The section which will be refreshed will have SUBMIT button replaced by OK button using jQuery replacewith() function.

Here's a link for reference:
http://docs.jquery.com/Manipulation/replaceWith
Jul 14 '09 #4
Dormilich
8,658 Recognized Expert Moderator Expert
still the question remains, why an OK button?
Jul 14 '09 #5
pdkadam
6 New Member
May be the case is like this: After clicking a submit button, i.e. after submitting the form, a message is displayed to the user which has an OK button as an acknowledgement that the user has read the message. It do not see such a thing normally but you can have something like this.
Jul 14 '09 #6
Dormilich
8,658 Recognized Expert Moderator Expert
I would do that with a different page, since the original form is not needed anymore
Jul 14 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4187
by: PCB | last post by:
Hi all, Not sure if this is possible, but can I change the controls of a command button on a per record bases in a subform. In my case, I would like to make a command button visible only if...
3
2022
by: lauren quantrell | last post by:
I have an Access 2000 form that I open showing only the header. The form's detail section visible property is set to false. The detail section contains a subform. Using a command button, I use the...
3
6805
by: Susan Bricker | last post by:
Greetings. I have three forms that are open at the same time. They are related and cascading. The first form (frmEventAdd) is the anchor. Each event can have many Trials. The second form is...
2
1954
by: john | last post by:
I have some controls that I want to be invisible, but if the user does something, they will become visible using javascript. So I can't set its "visible" property to false, because then they won't...
4
7108
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
8
3967
by: Roy | last post by:
What is the best way to approach this problem? I have a datagrid with an imagebutton. When one clicks the imagebutton it triggers an onClick sub which makes column 9 (a user control) visible or...
6
2021
by: Nick Stansbury | last post by:
Hi, I have a loop running on Page_PreRender that sets a number of controls to invisible based on a set of criteria. Before I do this however, I set all of the drop down lists to be visible with...
6
14673
by: Selden McCabe | last post by:
I have a form with a bunch of image buttons. When the user moves the mouse over a button, I want to do two things: 1. change the Imagebutton's picture, and 2. make another control visible. I'm...
4
3201
by: TS | last post by:
I am losing my colgroup html element of a table that i toggle back and forth of being visible=true/false. is there any workaround since the rendered html doesn't contain it even though it has not...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.