Solution to dedecms custom form data checksum

Source: Internet
Author: User

Like, we will not use the DEDECMS with the form on the page to operate, with more custom forms, commonly used post methods to submit data.

But sometimes when we customize the form submission, we often get an error:

We go to the following points to check the program files:

1:/plus/diy.php whether the file exists or not.

2::

1
<input name= ' sex ' id= ' sex ' type= ' text '/>


Name,id,type, and whether it corresponds to the background custom form.

3:value values and background custom forms all the time, if not all the time, copy the code in the foreground preview.

4: The value behind this code is unique, each site has a separate value value, so you also need to copy the foreground preview of the URL code values.

Solution:

1:
plus/diy.php whether the file exists or not.
2:


<input name= ' sex ' id= ' sex ' type= ' text ' class= ' IPT ' style= ' width:399px '/>
Name,id,type, and whether it corresponds to the background custom form.

3:
Whether the value is consistent with the background custom form, and if not, copies the URL code for the foreground preview.

4:
The value after this code is unique, each site has a separate value value, so you also need to copy the foreground preview URL code values.

Solution II

Spring Brother tips to check a few program files:

1:/plus/diy.php whether the file exists or not.
2::<input name= ' sex ' id= ' sex ' type= ' text '/> Name,id,type, and whether it corresponds to a background custom form.
Whether the 3:value value is consistent with the background custom form, and if not all the time, copy the code in the foreground preview.
4: The value behind the code is unique, each site has a separate value value, so you also need to copy the foreground preview of the URL code values.

Solution:

1:<form action= "/plus/diy.php" enctype= "Multipart/form-data" method= "POST" >
plus/diy.php whether the file exists or not.
2:<input name= ' sex ' id= ' sex ' type= ' text ' class= ' IPT ' style= ' width:399px '/>
Name,id,type, and whether it corresponds to the background custom form.
3:<input type= "hidden" name= dede_fields "value=" Name,text;sex,radio;tel,text;pro,select;dizhi,text;note, Htmltext;mail,text "/>
Whether the value is consistent with the background custom form, and if not, copies the URL code for the foreground preview.
4: <input type= "hidden" name= "Dede_fieldshash" value= "5B6DDC6659F6278ADD0EBD009229F7CB"/>
The value after this code is unique, each site has a separate value value, so you also need to copy the foreground preview URL code values.

Value Lookup Method:

<input type= "hidden" name= "Dede_fieldshash" value= "33a0260e10c5209c22d60e6cb3e8befa"/>

That's the value= "33a0260e10c5209c22d60e6cb3e8befa," which has a problem.

After customizing the form to add all fields to the network, click the "Foreground preview"--> point "publish information"--> view the page source file, you can see a complete form form, copy it out.
There is the value of that, here is the correct, cover out the code in the that can be, in the submission form there is no error prompted, the successful submission of the reservation.
And the word, if you modify the field type in the custom form or add fields or something, it will change. Then you have to go to the foreground preview to get the hash value in the source code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.