| |

VerySource

 Forgot password?
 Register
Search
Author: joyoyj

Ask the form array problem

[Copy link]

1

Threads

14

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-11-19 14:30:01
| Show all posts
But how do you judge whether the checkbox is selected in PHP?
Can checkbox.value be passed?
Reply

Use magic Report

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2022-8-26 02:14:55
| Show all posts
Count() as an array and i am lost

  1.   $nfield = $_POST[nfield];
  2.     if (count($nfield) > 0)
  3.     {
  4.         foreach ($nfield as $key => $var)
  5.         {
  6.             $var = check_html($var, "nohtml");
  7.             $var = trim(htmlspecialchars($var, ENT_QUOTES));
  8.             $nfield[$key] = $var;
  9.         }
  10.     }
Copy the Code


the above code comes from my registration page
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list