Is it possible to split an input field into two fields? See details inside.

I would like to split the field specific location on a page into two fields.

( This is how it looks now: http://qwikad.com/?view=post&cityid=269&lang=en&catid=3&subcatid=27&shortcutregion= )

I want keep the same MySQL table for that field but make it possible for visitors to enter 2 separate texts. This is how the code looks right now:

I am not strong in PHP programming at all, so I tried to copy and paste that field twice, but it only posts one entry out of the two.

Can this be done?

yes this can be done you need to use the symbols [], and turn the field into an array so it would look like:
[php]



[/php]
then to pull the data you can use some like :

[php]

<? echo($_POST['area'][0]); echo($_POST['area'][1]); echo($_POST['area'][2]); ?>

[/php]

Not working. All it shows is Array Array Array - three times instead of what I entered. Is there a reason for this?

show me how you are using the code, because this does work:
http://plintu.com/arraydata.php

also show me what it is that you are trying to send in the post data that is giving you an array error
did you put the number after the $_POST[’’] like so []?

Sponsor our Newsletter | Privacy Policy | Terms of Service