Jump to content
php.lv forumi

Recommended Posts

Posted

Tiek padots formas lauks:

 

<form action="" method="post">

<input type="text" name="kkas[0]">

<input type="text" name="kkas2[0]">

<input type="text" name="kkas[1]">

<input type="text" name="kkas2[1]">

<input type="submit" value="submits..">

</form>

 

Apstrādes vietā vajag sekojošu lietu, lai ieraksta:

kkas[0], kkas2[0]

kkas[1], kkas2[1]

...līdz ir []

 

Ja būtu tikai kkas[], tad jau būtu sekojoši:

foreach ($prece as $value)

{

//kverijs $value;

}

 

Kā var viņus apvienot vienā reizē? ;)

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...