# HTML Form Submit to table in same page

I have the form and works fine. On submit I have no idea where the data is going. I want it to go into a table on the same page. What am I doing wrong?

``````<form id="myForm" action="" method="post" target="_parent">

<p>Date:
<input type="date" cf_name="Date" value="" maxlength="25" size="60">

Weight:
<input type="text" cf_name="Weight" value="" maxlength="25" size="60">
</p>

<input type="text" cf_name="comments" value="" maxlength="200" size="60">
</p>

<p>Insert Picture (optional):
<input type="text" cf_name="pic1" value="" maxlength="200" size="60">
</p>

<p>
<input id="submit" type="button" value="Submit" cf_name="submit">
<input type="button" cf_name="cancel" value="Cancel" onClick="closebox()">
</p>
</form>

<table id="details"></table>
``````

Not sure about the `cf_name` attribute in your input fields. I seem to remember that might be an implementation of Adobe ColdFusion but it's certainly not HTML compliant.
{"ft_lang_label":"__label__en","ft_lang_prob":0.57241845,"math_prob":0.4226656,"size":757,"snap":"2021-04-2021-17","text_gpt3_token_len":213,"char_repetition_ratio":0.16467464,"word_repetition_ratio":0.0,"special_character_ratio":0.35138705,"punctuation_ratio":0.0625,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9668649,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-18T13:42:48Z\",\"WARC-Record-ID\":\"<urn:uuid:ca3b9cf5-0841-4014-b16e-4af6221b2ec4>\",\"Content-Length\":\"145653\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:687e40a1-4945-41b7-87ce-61ec0be6ee35>\",\"WARC-Concurrent-To\":\"<urn:uuid:30385179-47a5-460d-bcd2-e9dcb2453d1b>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://wordpress.stackexchange.com/questions/284949/html-form-submit-to-table-in-same-page\",\"WARC-Payload-Digest\":\"sha1:GYGMR5DP3ZHC63LH2FUX7MEB2DHIKTOG\",\"WARC-Block-Digest\":\"sha1:WSTDFKGTAWA6SW3LZ2IV6JRAJ6T5OSNN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703514796.13_warc_CC-MAIN-20210118123320-20210118153320-00696.warc.gz\"}"}