Jump to content

<textarea> not working


glenelkins

Recommended Posts

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

[code]
<?
  // 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>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/17493-not-working/
Share on other sites

[code]<?
  // 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>[/code]

Where is $companies['company_address'] set?

Maby you wanted?

[code]<?
  // 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>
[/code]

Regards
Liam
Link to comment
https://forums.phpfreaks.com/topic/17493-not-working/#findComment-74414
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.