Results 1 to 3 of 3

Thread: Create a dynamic URL with parameter?

  1. #1
    Join Date
    Dec 2007
    Location
    Stranded in Sarasota Florida
    Posts
    75
    Thanks
    7
    Thanked 2 Times in 2 Posts

    Question Create a dynamic URL with parameter?

    I'm trying to create a dynamic URL passing on a parameter, here is what I have...

    Page Function
    contact_artist(law);
    Main Script
    function contact_artist(artist) {
    var ajax_this = 'includes/contact-email.php?nameis=' + artist;
    ajaxpage(ajax_this, 'promptsajax');
    }
    I would like to have the script create a URL of...
    includes/contact-email.php?nameis=law
    ...in this example. What am I doing incorrectly?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    contact_artist('law');
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2007
    Location
    Stranded in Sarasota Florida
    Posts
    75
    Thanks
    7
    Thanked 2 Times in 2 Posts

    Default

    A thank you to you sir!

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
  •