Advertisement

10.09.2008 at 02:52AM PDT, ID: 23800314
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

Variable stripping after space

Asked by AndrewJDavis in Active Server Pages (ASP), Programming for ASP.NET

This has got to be simple, i cant see what i am not getting.
i have a form on an ASP web site that has some simple boxes then posts the form to a new page that then processes the data. One of the fields that i have is a phone number it works fine if the end user enters the number.  however it first pulls the number from a table and populates it. however the number that ends up in the box is missing any characters after the first space.
i am doing the same thing in other areas without issue the only difference here is that all the characters are numeric or space. no alphas. below is a snippet of the code.


the two lines
        <span>Phone Number:<br/><%=LPhone %></span><br/>            This returns say 0419 111 222

        <input name="request_number" type="text" value=<%=LPhone %> size="20"
               maxlength="20" onfocus="showtip('4');" onblur="hideall();"><br/>                                However this one puts a box on the screen with just "0419" in it

Any ideas?????
Thanks in advance
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
requester_id = session("userjob_id")
consql="select * from my_table where jobrquester_id=" & requester_id
Set rs= conn.execute(consql)
If Not rs.eof Then
    LName=rs("first_name")
//    LPhone=rs("phoneno")  ** i have tried this but made no difference**
    LPhone=Trim(Replace(rs("phoneno"),"'","''"))
    response.write LPhone & "..<br>"                ***** this returns the correct number to the screen eg "0419 111 222.."
    %>
        <span>Name:<br/></span>
        <input name="request_name" type="text" class="input_yellow" value=<%=LName %> size="15" 
               maxlength="15" onfocus="showtip('4');" onblur="hideall();"><br/>
        <span>Phone Number:<br/><%=LPhone %></span><br/>
        <input name="request_number" type="text" value=<%=LPhone %> size="20" 
               maxlength="20" onfocus="showtip('4');" onblur="hideall();"><br/>
 
 
[+][-]10.09.2008 at 03:12AM PDT, ID: 22676883

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), Programming for ASP.NET
Sign Up Now!
Solution Provided By: TimCottee
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628