Jump to content

Archived

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

glenelkins

<textarea> not working

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]

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
$companies['company_address'] is in the while loop searching through the records with $companies = mysql_fetch_array()

Share this post


Link to post
Share on other sites

×

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.