1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Pushbutton to open new page

Discussion in 'PHP' started by lost, Oct 17, 2005.

  1. #1
    Hi,
    I'm trying to accomplish something extremely simple, yet I don't know how...I have a pushbutton that once clicked on, I would like it to open a new .php page.

    Here is what I have:

    <INPUT TYPE=button VALUE="Search" NAME="searchbutton" onClick="searchform.php">


    I have the searchform.php file all coded and ready, yet nothing happens when I click the button.


    Thanks.
     
    lost, Oct 17, 2005 IP
  2. durango

    durango Guest

    Messages:
    83
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try:

    <INPUT TYPE=button VALUE="Search" NAME="searchbutton" onClick="window.location='searchform.php';">
    Code (markup):
     
    durango, Oct 17, 2005 IP
  3. lost

    lost Peon

    Messages:
    144
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you Durango...that worked!
     
    lost, Oct 17, 2005 IP