PDA

View Full Version : web preview in vb


Rappa
02-07-2006, 02:22 AM
i have a program that generates a code for the user depending on the options he/she chose.

its displayed in a textbox at the bottom
i have a button called preview

i was wondering if its possible to open a web browser that will display the code in the textbox which is the users choice when they clicked the preview button

thx

mark87
02-07-2006, 02:39 PM
Easiest method would be to pass the parameter to the page, using PHP probably. e.g. You could make VB open up the URL -

"yoursite.com/vb.php?choice=" & Textbox1.Text

Then use PHP to grab the value and put it in the text box.

<input type="text" value="<? php echo $_POST['choice']; ?>" />

My PHP isn't too strong, you may have to use GET instead of POST.