Home Articles CV / Résumé Downloads Photo Gallery Web LinksJuly 31 2010 22:16:36
View Thread
Adnan's Webspace | PHP Fusion | Articles
Author adding textarea
liliplanet
Member

Posts: 3
Location: Cape Town
Joined: 06.01.07
Posted on 06-01-2007 13:27
Hi Adnan!

Hope this message finds you very well.

I've added an extra field in editprofile.php which works perfectly, thank you so much for that:

<td class='tbl'>Test Profile</td>
<td class='tbl'><input type='text' name='user_profile' value='".$userdata['user_profile']."' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>




but instead of just a textbox, I want a textarea, but when I do the following, it doesn't work.

<tr>
<td class='tbl'>Profile</td>
<textarea name='user_profile' rows='5' class='textbox' style='width:295px'>".$userdata['user_profile']."</textarea></td>




Is it the textarea code that is wrong, as the field in the sql is large text. Should I change that to something else?

Look most forward to any help, and thank you so much!
Lilian
</tr>
Send Private Message
Author Sponsored Link
Advertisement


Location: Internet
Author RE: adding textarea
Adnan
Super Administrator

Posts: 80
Location: Montreal, Canada
Joined: 23.03.06
Posted on 08-01-2007 00:39
Hi,

Your code seems fine, the SQL field i presume is set to 'text', so that there is no limit on how much text that can be added to the SQL field. Is it not saving it? Can you manually change the info in the Datbase and see if its seeing the proper field and displaying the appropriate result when viewing the profile?

Go to includes/update_profile_include.php and at the bottom there is a redirect to edit_profile.php, can you comment out that redirect and do the change again, let me know what error message, if any, pops up.

Adnan.
http://www.theadnanahmed.com Send Private Message
Author RE: adding textarea
liliplanet
Member

Posts: 3
Location: Cape Town
Joined: 06.01.07
Posted on 08-01-2007 01:00
Adnan, thank you for your reply .. it's all good now. actually don't know what caused it, just got fixed somehow.

My member directory is up .. thanx to your help, see:

http://www.filmmaker.co.za/directlory.php

Adnan, please would you be so kind to help me with a little html:

http://www.filmmaker.co.za/directory.php?group=9

I would like:

username<td>name<td>company<td>telephone<td>location
user_id<td>user_realname<td>user_company<td>user_tel<td>user_ocation

currently the code is a mess:

while ($data = dbarray($result)) {
$cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"; $i++;
echo "<tr>\n<td class='$cell_color'>\n<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."<br>".$data['user_realname']."</a></td>\n";

echo "<td align='center' width='80%' class='$cell_color' style='white-space:nowrap'>".$data['user_company']." : ".$data['user_tel']." : ".$data['user_location']."</td>\n</tr>";
}
echo "</table>\n";




basically just need how to fix the layout ... have tried for hours, to no avail.

Did you see my Shout regarding invalid IP4, I use to have the same problem and that link fixed it.

Wishing you a Fabulous 2007.

Sincere regards,
Lilian
Send Private Message
Jump to Forum:

This site is optimized for viewing with Firefox!
All articles, pictures, and any other material obtained from this site is Copyright © 2007, and may not be reproduced without permission from the author.
Link Exchange - Directory - Windows Hosting