Why not? Just add it if you like.
Hi Takayuki Miyoshi,
This does not work:
[submit myname "My label"]
will give
<input value="My label" class="wpcf7-form-control wpcf7-submit" type="submit">
The name does not appear as attribute of the submit…
Am I wrong?
-
This reply was modified 8 years, 6 months ago by
Kreeger.
-
This reply was modified 8 years, 6 months ago by
Kreeger.
Not a form-tag, put a button element directly.
Okay… Thanks. Not very intuitive but it is ok for me
Hi again,
I have just tried, but I still do not get the value of the <input type=”submit” name=”test” value=”myvalue”> in $_POST.
add_action('wpcf7_before_send_mail', '_wpcf7_before_send_mail_data', 5);
function _wpcf7_before_send_mail_data($cf7) {
var_dump($_POST); // I get an array of all my fields but not of the submit. Here I need to get "myvalue"...
}
🙁
-
This reply was modified 8 years, 6 months ago by
Kreeger.