Jump to content


Photo

Quick Button Qustion


  • This topic is locked This topic is locked
4 replies to this topic

#1 FusionGTX

FusionGTX

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 02 July 2005 - 08:18 PM

Can someoen tell me how to link a command button to a website? So when u click it , it will take u to the website u entered.

#2 HaloprO

HaloprO

    Requires Armed Escort

  • Members
  • PipPip
  • 310 posts
  • Gender:Male
  • Location:California, USA

Posted 02 July 2005 - 11:55 PM

<?php

$where = $_GET['where'];

if (isset($where)) {

header("Location: where");

}

?>

<form>

Where?<br>

<input type="text" name="where"><br>

<input type="submit" name="submit" value="Go!">

</form>


#3 NGPixel

NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 05 July 2005 - 10:03 PM

Lol, nice try but thats not VB. :)

use this code:

Private Sub Command1_Click()
Shell "explorer " & "http://www.google.com"
End Sub

replace the http://... value with your url.

#4 jeremyyak

jeremyyak

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 02 October 2005 - 08:07 AM

"explorer" isnt needed in that line...if you keep that in there and someone is using fire fox it will still open in IE, but if remove it, it opens into MOST default browser (IE, Firefox, Oprea, etc)

#5 MK_LAGI

MK_LAGI

    Jedi In Training

  • Members
  • PipPip
  • 437 posts
  • Location:Cardiff, Wales
  • Interests:p2l :D

Posted 21 October 2005 - 06:01 PM

here
Private Sub Command1_Click()
Shell "explorer " & "the site here"
End Sub

Edited by MK_LAGI, 21 October 2005 - 06:02 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users