SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    make url into variable

    Hi

    I'm still very much a beginner so don't really understand how this might be done.

    I need a client to be able to add there own url to some code but wanted to separate it, so they can paste it at the top of the code so its clear for them to see. Then reference the variable in the link.

    thanks

  2. #2
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use get method to pass the variable into the url. the rewrite the url using any "url rewrite tool" then paste the new url in .htaccess file.

  3. #3
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Client cant get to the htaccess file as this is through a CMS.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by g3t View Post
    Client cant get to the htaccess file as this is through a CMS.
    None of those sorts of changes can be done with JavaScript. I suggest that you investigate using a server-side script, such as PHP, to perform the task instead.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •