Jump to content


Photo

<textarea> not working


  • Please log in to reply
3 replies to this topic

#1 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 14 August 2006 - 11:13 AM

Ok and the problem here is??? Its not showing anything in the Textarea, even if i manually type in the info??

<?
  // Split the address
  $temp_add = explode(",",$companies['company_address']);
  $company_address = "";
  foreach ($temp_add as $ta) {
    $company_address .= $ta . "<br>";
  }
?>
<textarea name="companyaddress" rows="2" cols="5">
  <? echo $company_address; ?>
</textarea>

http://thewebsolutionprovider.com - A Solution For Everything Web!

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 14 August 2006 - 11:21 AM

<?
  // Split the address
  $temp_add = explode(",",$companies['company_address']);
  $company_address = "";
  foreach ($temp_add as $ta) {
    $company_address .= $ta . "<br>";
  }
?>
<textarea name="companyaddress" rows="2" cols="5">
  <? echo $company_address; ?>
</textarea>

Where is $companies['company_address'] set?

Maby you wanted?

<?
  // Split the address
  $temp_add = explode(",",$_POST['companyaddress']);
  $company_address = "";
  foreach ($temp_add as $ta) {
    $company_address .= $ta . "<br>";
  }
?>
<form actione="" method="post">
<textarea name="companyaddress" rows="2" cols="5">
  <? echo $company_address; ?>
</textarea>
</form>

Regards
Liam
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 14 August 2006 - 01:22 PM

$companies['company_address'] is in the while loop searching through the records with $companies = mysql_fetch_array()
http://thewebsolutionprovider.com - A Solution For Everything Web!

#4 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 14 August 2006 - 01:28 PM

can you post your full code please?

Liam
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users