The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> collapsible content is not working inside php form
shankar from vizag
post Oct 23 2023, 08:30 PM
Post #1


Advanced Member
****

Group: Members
Posts: 202
Joined: 18-June 13
Member No.: 19,316



Greetings

I placed a collapsible content in my php page. But it is not working inside the form.

If form is removed working fine. But I required form to proceed further. Kindly help me in getting out of the issue.

Regards

Attached File  collapsible.php ( 2.45k ) Number of downloads: 94
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 23 2023, 09:59 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



Without a TYPE attribute, the first BUTTON element defaults to a submit button, so when clicking it the form is submitted every time. Try adding

CODE
TYPE="button"

to the BUTTON element.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
shankar from vizag
post Oct 24 2023, 01:34 AM
Post #3


Advanced Member
****

Group: Members
Posts: 202
Joined: 18-June 13
Member No.: 19,316



QUOTE(Christian J @ Oct 24 2023, 08:29 AM) *

Without a TYPE attribute, the first BUTTON element defaults to a submit button, so when clicking it the form is submitted every time. Try adding

CODE
TYPE="button"

to the BUTTON element.



For the last 4 days I stuck and trying and trying.

Now, it is working fine with you suggestion sir.

Earlier it was worked fine. Dont know suddenly this problem occurs 4 days back.


My sincere and heartful of thanks to you.
Regards
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 24 2023, 09:31 AM
Post #4


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



You're welcome!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 12:41 PM