简体   繁体   中英

Input from Model not included in form POST data

I have a simple HTML POST form with a model contained within like so:

https://jsfiddle.net/pilotman/rn9gspz8/6/

note: the JS fiddle is basic and just for demo and is not perfect.

So when I submit the form and let the input inside the model has some text, my server script does not see 'input2'

$_POST['input2'];

Does the data inside the model get sent with the POST data from the form? If not can it be done (I assume anything inside the form tag would be sent but I am clearly wrong)?

Thanks

Your code is correct. as per your jsfiddle

$_POST['input1']; is the normal input

$_POST['input2']; is the popup model input field;

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM