SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Apr 2003
    Posts
    311
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    new needs help with php line

    Code:
    echo("<a href=\"$url/showthread.php?threadid=$threads[threadid]&goto=newpost\" style=\"color: $lc;\" title=\"$threads[title]\">$title</a></nobr></td>\n");
    im trying to incorporate this link into this line for a php script and i dont know if u can or not its a javascript line

    <a href='http://www.test.com/php.php' onClick="this.form.submit();"><b>Contact Us</b></a>

  2. #2
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would think you would want to have your href target be either:
    href="#" onClick="this.form.submit();"
    or
    href="javascript:this.form.submit()"
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why use javascript if you can just use an input..

    <input type="image" border="0" name="Submit" src="images/submit-button.gif" width="61" height="19" />

    greets,

    Peanuts
    Last edited by peanuts; Jul 24, 2003 at 04:21.
    the neigbours (free) WIFI makes it just a little more fun


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •