473,322 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

why is my text getting cut?

15
For some reason, certain fields on a form I am designing are being cut! These are ordinary text fields on an HTML form that are filled via PHP from a database. The programming works, since the boxes are correctly filled, but some are having their contents cut. The ones that are suffering all seem to have their contents cut at the first 'space' character. The email text box displays correctly - there are no spaces in an email address.
For example, I have a text field which (using an example) should say
"British Fuma Ryu ninjitsu society" but only "British" actually appears in the box. Here's the box:-
Expand|Select|Wrap|Line Numbers
  1. <td><?php echo "<input type='text' name='club' value=$theclub size='50' maxlength='50'>"; ?></td>
Both maxlength and size are set to 50, and in the DB the data type is char(50) so why does there seem to be a problem with the space character?
Help!
Jan 30 '10 #1
2 1318
wizardry
201 100+
it looks like your missing quotes around the object value='$theclub'
Jan 30 '10 #2
starman
15
Dear Wizardry,
Thanks for that. As it happens, I did actually crack it (finally - at 2.30 a.m.!), using this syntax inside the <td></td>tags:
Expand|Select|Wrap|Line Numbers
  1. <?php echo "<input type='text' name='loginname' value=$varname size='10' maxlength='10'>"; ?>
  2.  
Maybe someone else might find some use in that. Thanks anyway!
Mike
Jan 30 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: F. Da Costa | last post by:
Hi, I' looking to retrieve ProdName1 form the <tr> below. <tr id="1-1-1" class="even"> <td> <div class="tier4"> <a href="#" class="leaf"></a> ProdName1 </div>
18
by: OrenFlekser | last post by:
Hi I've posted this message couple of days ago, but I can't find it now, so sorry if you see it twice... Anyways - I have a text box, and I want my users to be able to write only in english...
11
by: Mark Schneider | last post by:
I'm trying to avoid using <table> for formatting purposes where other, reasonable means exist. I'm stuck trying to find a way to find an equivalent for the code below. <table align="center">...
0
by: TadPole | last post by:
I am using FOP to create PDF documents. I have the problem where I need to create line of text on a document in a certain line (absolute position), then the rest of the text needs to follow...
3
by: luna | last post by:
theres no errors in my code - but it does nothing at all - its supposed to be populating text boxes!! any ideas ? (im am pretty new to all this) If Not Page.IsPostBack Then Dim search As...
5
by: Hassan Bassam | last post by:
I am having a problem. How can I get the selected text from a text editor. I am using ASP.NET and VB as language. Thanx
0
by: Alan Carpenter | last post by:
I'm curious about getting to the text of procedures in a database other than the current database without a new instance of Access. Note I don't want to execute or call anything, I just want to...
24
by: garyusenet | last post by:
I'm working on a data file and can't find any common delimmiters in the file to indicate the end of one row of data and the start of the next. Rows are not on individual lines but run accross...
2
by: Duk Lee | last post by:
What is the most elegant way to clear all the text fields on asp.net page? I just don't think that txtShortName.Text = "" txtYearFounded.Text = "" txtCompanyCode.Text = "" txtCity.Text = ""...
1
by: blangela | last post by:
Bjarne Stroustrup has a new text coming out called "Programming: Principles and Practice Using C++" (ISBN: 0321543726), due to be published in December of this year. Some of the features of this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.