• ADADADADAD

    html提交数据如何加密[ 网络知识 ]

    网络知识 时间:2024-11-20 12:07:59

    作者:文/会员上传

    简介:

    在html中使用MD5对提交数据进行加密html代码如下:<formid=&#39;test_form&#39;action=&#39;&#39;method=&#39;&#39;omsubmit=&#39;returncheckForm()&#39;><inputtype=&#39;t

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    在html中使用MD5对提交数据进行加密

    html代码如下:

    <formid='test_form'action=''method=''omsubmit='returncheckForm()'>

    <inputtype='text'name='username'value=''/>

    <inputtype='password'id='input_pwd'value=''/>

    <inputtype='hidden'name='pwd'id='md5_pwd'value=''/>

    <buttontype='submit'>提交</button>

    </form>

    <script>

    functioncheckForm(){

    varinput_pwd=document.getElementById('input_pwd');

    varmd5_pwd=document.getElementById('md5_pwd');

    md5_pwd.value=toMD5(input_pwd.value);

    //进行下一步

    returnture;

    }

    </script>

    html提交数据如何加密.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: 数据加密html