Button-hyperlink.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • opt_inf_env@yahoo.com

    Button-hyperlink.

    Hi,

    Is it right that the following code will create a button, which being
    pressed causes loading a new page (some type of hyper link).

    <form actioni=new_pag e.php>
    <input type="submit" value="Cancel">
    </form>

    I expected it is true. But it is not. So how then can one create
    button-hyperlink?

  • Darin McGrew

    #2
    Re: Button-hyperlink.

    <opt_inf_env@ya hoo.com> wrote:[color=blue]
    > Is it right that the following code will create a button, which being
    > pressed causes loading a new page (some type of hyper link).
    >
    > <form actioni=new_pag e.php>
    > <input type="submit" value="Cancel">
    > </form>
    >
    > I expected it is true. But it is not. So how then can one create
    > button-hyperlink?[/color]

    The online validator http://www.htmlhelp.com/tools/validator/ reports:

    Error: there is no attribute ACTIONI for this element (in this HTML
    version)

    Error: required attribute ACTION not specified

    It seems that you've typed "actioni" instead of "action".

    But see also http://www.cs.tut.fi/~jkorpela/www/links.html
    --
    Darin McGrew, mcgrew@stanford alumni.org, http://www.rahul.net/mcgrew/
    Web Design Group, darin@htmlhelp. com, http://www.HTMLHelp.com/

    "When strong encryption is outlawed, only outlaws jvyy hfr fgebat rapelcgvba."

    Comment

    • opt_inf_env@yahoo.com

      #3
      Re: Button-hyperlink.

      OK, thank you. It was my mistake. However, it seems to me that it is
      not only mistake. I have created button-hyperlink with the usage of the
      following lines:

      <form action="newpage .php?id=3">
      <input type="submit" value="Cancel">
      </form>

      But the created in such way button load "newpage.ph p?" (not
      "newpage.php?id =3"). Do you know what I am doing wrong this time?

      Comment

      • kchayka

        #4
        Re: Button-hyperlink.

        opt_inf_env@yah oo.com wrote:[color=blue]
        >
        > I have created button-hyperlink with the usage of the
        > following lines:
        >
        > <form action="newpage .php?id=3">
        > <input type="submit" value="Cancel">
        > </form>
        >
        > But the created in such way button load "newpage.ph p?" (not
        > "newpage.php?id =3").[/color]

        Why bother with a form at all? Why not just use a regular link? You can
        style it to look like a button if you want, but I don't recommend it.
        [color=blue]
        > Do you know what I am doing wrong this time?[/color]

        Trying to fix the wrong problem?

        --
        Reply email address is a bottomless spam bucket.
        Please reply to the group so everyone can share.

        Comment

        Working...