Php While

While

PHP while loop can be used to traverse set of code like for loop. The while loop executes a block of code repeatedly until the condition is FALSE. Once the condition gets FALSE, it exits from the body of loop. It should be used if the number of iterations is not known. Php sqlite search 'engine' not working help 1; Making a site with a database kind of like WoWHead.com 2; SessionOnEnd, SessionEnd, or Timeout help 4; Submit form where parts of form are echoed - doesn't submit. 14; How to search data from multiple table in mysql using php 4; Load a HTML page (that loads Javascript scripts) using a Java. PHP do-while loop can be used to traverse set of code like php while loop. The PHP do-while loop is guaranteed to run at least once. The PHP do-while loop is used to execute a set of code of the program several times. If you have to execute the loop at least once and the number of iterations is not even fixed, it is recommended to use the do.

Hi all,
im sorry, im just a beginner, I had never come across to such circumstances.
Submit a form, with while loop, how am i going to retreive every single value submitted from the form?

can someone guide me,please. How to retreive all the value after submit
Thank you!

Php while continueBreakPhp while else
  • 2 Contributors
  • forum2 Replies
  • 2,589 Views
  • 9 Hours Discussion Span
  • commentLatest PostLatest Postby qwertpink

Recommended Answers

Use $_POST to get the values submitted in the form (use for each field name and replace the word fieldname with your actual field names).

Jump to Post

All 2 Replies

Use $_POST to get the values submitted in the form (use for each field name and replace the word fieldname with your actual field names).

Hi, I am new to php and html, so I need some help with a problem: I am trying to make a form where you can select from a dropbox, but thae data from the dropbox should be retrieved from a sql database.
If I save the code bellow as php, the dropbox is created and retrieves the data from sql, but then the submit button (together with everything else I put after the while loop) disappeares. If I save it as a html file, the form and submit button works, but it doesn't retrieve any data from sql database.

Thanks

  • 5 Contributors
  • forum5 Replies
  • 4,289 Views
  • 6 Years Discussion Span
  • commentLatest PostLatest Postby kosikondo

Recommended Answers

You're missing an opening < on your submit button input.

Jump to Post

Hi,
As per 'pixelsoul' please check syntex i.e. <

Also I have suggest another coding sytle. i.e.
a) Do Not open connection in <select>
b) First Opne Connection and get result
c) Fetch only result loop in <select>
d) You can also use following coding style to better understand …

Jump to Post

Php While Statement

All 5 Replies

Php While Fetch

Php While

Php While Fetch

You're missing an opening < on your submit button input.