Vb to PHP to HTML
Vb to PHP to HTML
Vb to PHP to HTML
Vb to PHP to HTML
Vb to PHP to HTML
Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML
Vb to PHP to HTML Vb to PHP to HTML
Vb to PHP to HTML
Go Back  Xtreme Visual Basic Talk > > > Vb to PHP to HTML


Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2012, 02:08 PM
3dkingpin 3dkingpin is offline
Junior Contributor
 
Join Date: Feb 2008
Posts: 256
Default Vb to PHP to HTML


ON a vb form I have:

Code:
Line1 & Then

Line2

Lilne3

Now the form passes this text to a php script using webrequest and POST method.

The PHP script then reads this into a variable and stores the value into a MYSQL database.

No when a visitor presses view button on a website it opens another PHP script which then get that text from MYSQL database and creates HTML website output using echo statement.

Code:
echo "<B>".$input."</B><BR />";
So the same text is being handled by VB.NET, PHP, MYSQL and HTML.

Now I know different languages have different chars for new line etc.. So thats one problem.

The other is symbols.

For example in the text above. After the text has entered into mysql table by php, if that text value is retrieved back into the vb program using PHP script all the text after the "&" on line 1 is not shown. I assume at some point the "&" was processed as a special character of some sort which meant the rest of the text was truncated. I check the text stored in the mysql table and it was truncated after the & ( so the problem occurred in the PHP script). I tested it by changing the "&" to a "and" and it worked.

so what best way to handle multiline text in this setup.
__________________
Hey, Looking for entry level job in VB net programming. Got basic qualification, years of programming experience (mainly self taught) and good portfolio. (UK)
Reply With Quote
  #2  
Old 12-31-2012, 10:45 PM
bluefire bluefire is offline
Newcomer
 
Join Date: Jul 2009
Posts: 2
Default

Please try out

Line1 & vbcrlf

Line 2

Line 3
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Vb to PHP to HTML
Vb to PHP to HTML
Vb to PHP to HTML Vb to PHP to HTML
Vb to PHP to HTML
Vb to PHP to HTML
Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML Vb to PHP to HTML
Vb to PHP to HTML
Vb to PHP to HTML
 
Vb to PHP to HTML
Vb to PHP to HTML
 
-->