I have a ReactJS form that I should send to a PHP page, but for some reason when I submit the form the page goes to http://localhost:3000/ricevi.php?input21=a&input2_=b
and the page refreshes not executing the PHP code.
This is the code I made:
<form className="formoid-solid-red" action="ricevi.php" method="GET">
<!-- inputs --->
<input type="submit" value={this.state.can_send_btn} disabled={this.state.can_send}/>
</form>
Note:
I'm using the create-react-app and yarn start
to make my app run.