Jump to content

Recommended Posts

In the file attached, there is a while loop in which am trying to display the records from a table and on each iteration a text field is also printed, which I have declared as an array  'marks[]'.

Am stuck with the way how values are retrieved from those php printed text fields i.e., echo "<input type='text' name='marks[]'>";

 

 

Please help. Thanks in advance

Facultymarks.php

The data will be in $_POST['marks']. It will contain an array of all the values from the fields named as marks[]

 

You can use print_r to output the structure of the array

echo '<pre>' . print_r($_POST['marks'], 1) . '</pre>';
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.