glenelkins Posted August 14, 2006 Share Posted August 14, 2006 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] Quote Link to comment Share on other sites More sharing options...
shocker-z Posted August 14, 2006 Share Posted August 14, 2006 [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]RegardsLiam Quote Link to comment Share on other sites More sharing options...
glenelkins Posted August 14, 2006 Author Share Posted August 14, 2006 $companies['company_address'] is in the while loop searching through the records with $companies = mysql_fetch_array() Quote Link to comment Share on other sites More sharing options...
shocker-z Posted August 14, 2006 Share Posted August 14, 2006 can you post your full code please?Liam Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.