Let’s look at a piece of code first (PHP example)
1. Form code (form.php)
2. Action code (formAction.php):
alert('test....');"; ?>
OK, the above code is very simple, but it realizes form submission without any problem. Refresh....Why is this?
Oh~ In fact, a very basic thing... is the attribute problem of the form tag... as shown in the picture:
More iframe tags implement form form submission without page refresh (no page refresh) Requires js)---Please pay attention to the PHP Chinese website for parsing related articles!