Jump to content

qwikad

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

qwikad's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. One more thing, do I simply repeat the same input field like so?: <input name="area" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> <input name="area" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> <input name="area" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> Or do I modify it as well?
  2. Psycho, This is the code that calls that text area out: <?php $loc = ""; if($ad['area']) $loc = $ad['area']; if($loc) echo " <span class=\"adarea\">($loc)</span>"; ?> How would you modify it to call out let's say 3 input fields? Also, when are saying to create as many arrays as I wish do you mean something like?: <input name="area[]" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> <input name="area[]" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> <input name="area[]" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> Thanks!
  3. Sure this is what i did: I placed this into the post page: <input name="area[]" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> <input name="area[]" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> <input name="area[]" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> And then I tried to pull the data out with this (for simplicity purposes): <? echo($_POST['area'][0]); echo($_POST['area'][1]); echo($_POST['area'][2]); ?> It showed Array Array Array. The original code that pulls the data out is actually this: <?php $loc = ""; if($ad['area']) $loc = $ad['area']; if($xcityid < 0) $loc .= ($loc ? ", " : "") . $ad['cityname']; if($loc) echo " <span class=\"adarea\">($loc)</span>"; ?> When I tried to add the array to it it still showed Array Array Array. Can you please modify this code to pull all three entries the right way? Thanks for your help!
  4. I just tried it. All it shows is Array Array Array (I used 3 fields). Can you post an exact code here how this can be done?
  5. 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: <input name="area" type="text" size="40" class="input" maxlength="50" value="<?php echo $data['area']; ?>"> 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?
×
×
  • 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.