Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Server-side Scripting _ collapsible content is not working inside php form

Posted by: shankar from vizag Oct 23 2023, 08:30 PM

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: 115

Posted by: Christian J Oct 23 2023, 09:59 PM

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.

Posted by: shankar from vizag Oct 24 2023, 01:34 AM

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

Posted by: Christian J Oct 24 2023, 09:31 AM

You're welcome!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)