skip to Main Content

On clicking the submit button of a form, it's not responding – PHP

Form submit button is not responding even though I have specified the action, in the form action field. <div class="container"> <form action="php/record.php"> <h3>Enter the following details :</h3> <form autocomplete="off" action=""> <div class="autocomplete" style="width:300px;"> <label for="school">School :</label> <br> <input id="school" type="text"…

VIEW QUESTION

On submits doesn't trigger a function in ReactJs

const CreateMessage = () => { const disatch = useDispatch() const chatR = useSelector(state => state.chat); const { chat } = chatR; const [text, setText] = useState("") useEffect(()=>{ setText("") },[chat]) function handleSubmit(event) { event.preventDefault() console.log(3333) } return ( <StyledCreateMessage id="myform"…

VIEW QUESTION
Back To Top
Search