Posts by user1818765 • 19 points
2 posts
-
0
votes1
answer46
viewsQ: How to mount key vaue array pair to insert into table?
$key = "id,name"; $val = "'$lastid','$autor'"; ... if ($email){ $key .= ",email"; $val .= ",'$email'"; } ... $keys = \explode(',', $key); $vals = \explode(',', $val); $arr =…
-
1
votes1
answer1121
viewsQ: Using filter_input_array(INPUT_POST,"var_name") vs. $_POST
I have the following variable input in my form: <input class="caption_text" type="text" name="caption[]" required/> That I create dynamically with JS. After submitting I test the following:…