简体   繁体   English

如何不通过URL将dataURL保存到mysqli数据库?

[英]How can I save dataURL to a mysqli database not through the URL?

I want to save a dataURL generated from a HTML5 canvas to a MYSQLI database. 我想将HTML5画布生成的dataURL保存到MYSQLI数据库。 Everything I am finding is telling me to post it in the URL and then handle it on the next page. 我发现的所有内容都告诉我将其发布在URL中,然后在下一页进行处理。 The dataURL is to long for that as I have other things as well, and in the future I want to save a JSON string to the same MYSQLI database and definitely can't pass it in the URL, it will be way to long. dataURL太长了,因为我还有其他事情,将来我想将JSON字符串保存到相同的MYSQLI数据库中,并且绝对不能在URL中传递它,这将是很长的路要走。 What do I do for both the JSON and the dataURL when i'm using PHP and MYSQLI? 当我使用PHP和MYSQLI时,我同时对JSON和dataURL做什么?

万一其他人想知道该怎么做,您所要做的就是用ajax传递数据!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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