Check whether post is empty. how can I write it?

Source: Internet
Author: User
Check and find that post is empty. how should I write a newbie? I just learned it for two days and stuck it in many places? it's hard to find various types of code. I am stuck here for help now.
 Print test
 
Display:


Reply to discussion (solution)

You didn't see any submit.
You can add print_r ($ _ POST); to see if there is any post

You didn't see any submit.
You can add print_r ($ _ POST); to see if there is any post


I have a submit following Line 29. I used print_r ($ _ POST) to view the empty Array.

$ _ POST will not be blank after submission
But $ _ POST ['id'] only uses one and is the last $ row ['id']
This is obviously incorrect.

$ _ POST will not be blank after submission
But $ _ POST ['id'] only uses one and is the last $ row ['id']
This is obviously incorrect.


Moderator
How should I write an ID for each row for subsequent location and deletion?

If you want to delete a table by submitting a form, each row (tr) should have a form (form)



Forms enclosed in the outside are not required.
Action =" "
Submitted to this page. you can skip this step.

After this submission, $ _ POST ['id'] is the id to be deleted.

If you want to delete a table by submitting a form, each row (tr) should have a form (form)



Forms enclosed in the outside are not required.
Action =" "
Submitted to this page. you can skip this step.

After this submission, $ _ POST ['id'] is the id to be deleted.


 Print test
 
Display:
Objname Objinfo

Click here to add information


After I changed it, the echo post is still empty. why?

Have you clicked the delete button?

Paste html in the browser

Print test
 
Display:
Objname Objinfo

Click here to add information

1 Array ()


Have you clicked the delete button?

Paste html in the browser

Have you clicked the delete button?

Paste html in the browser


Got the den trick.
The value of the 30 rows is incorrect.
Thank you for your help!

Have you clicked the delete button?

Paste html in the browser


The previous error is only one.
What I wrote in the database is objid $ row. The id is incorrect.
After the value is changed, the value is obtained. but why is post still null?
Print test
 
Display:
Objname Objinfo

Click here to add information

1 Array ()

You mean

Click here to add information


1 Array
(
)
Is this empty?
Here, you need to submit (click the delete button) before the value is available!


Have you clicked the delete button?

Paste html in the browser


The previous error is only one.
What I wrote in the database is objid $ row. The id is incorrect.
After the value is changed, the value is obtained. but why is post still null?
Print test
 
Display:
Objname Objinfo

Click here to add information

1 Array ()


Yes. you can still put it in the form while...

You mean

Click here to add information


1 Array
(
)
Is this empty?
Here, you need to submit (click the delete button) before the value is available!


After clicking delete, the post value is found.
Thank you!



Have you clicked the delete button?

Paste html in the browser


The previous error is only one.
What I wrote in the database is objid $ row. The id is incorrect.
After the value is changed, the value is obtained. but why is post still null?
Print test
 
Display:
Objname Objinfo

Click here to add information

1 Array ()


Yes. you can still put it in the form while...



Is it true to put it in it?




Have you clicked the delete button?

Paste html in the browser


The previous error is only one.
What I wrote in the database is objid $ row. The id is incorrect.
After the value is changed, the value is obtained. but why is post still null?
Print test
 
Display:
Objname Objinfo

Click here to add information

1 Array ()


Yes. you can still put it in the form while...



Is it true to put it in it?


So many forms are not awkward...

You can use the check box to select data for the user. the check box is named lst []. all check boxes are called this, and the value is $ row [id]. then, click a button to submit the data to the deletion interface. php receives the lst and obtains all the selected data.

And the form action can be blank if it is submitted to the current page.

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.