PHP and HTML Questions
Results 1 to 4 of 4

Thread: PHP and HTML Questions

  1. #1
    Banned
    Join Date
    Apr 2003
    Posts
    51

    PHP and HTML Questions

    I have 2 questions which pretty much have nothing to do with each other...

    first the html one...How do I link something in a higher directory without using the full url, ie: i'm in the /one/two directory, and i wanted to link something in the /one directory. How would i do that without having to type in the full url or is that just impossible?

    second, for the php question, i think it'll probably be a fuction, but i'm getting information from a form and i want to make sure its a integer, so what can i use to make sure it is?

  2. #2
    Senior Member
    Join Date
    Jan 2003
    Posts
    3,914
    Hey Hey...

    Not too sure on the first one, depends on a lot of things prolly but you should beable to do ../<file>

    For the second one you want to use the php is_int function.
    if (is_int(1234324)) {
    print "true";
    } else {
    print "false";
    }
    IT Blog: .:Computer Defense:.
    PnCHd (Pronounced Pinched): Acronym - Point 'n Click Hacked. As in: "That website was pinched" or "The skiddie pinched my computer because I forgot to patch".

  3. #3
    Banned
    Join Date
    Apr 2003
    Posts
    51
    ok thanks, that helped, and on the first quesiton, i'm thinking it just cant be done...

  4. #4
    Senior Member
    Join Date
    Aug 2001
    Posts
    251
    Code:
    One
    if done from page two should get you to the parent directory like HTRegz vaguely stated. It should work, it works on my servers apache on MacOS X and on Mandrake.

    I'm getting more and more interested in PHP..., I think it is the increased liesure time attributed to un-employment/no income, and the general dislike of my current websites static nature that would have be edit 30 - 40 files to get something that when printed out takes up 15 pages and contains oh so many typos and errors but is to hard to edit.

    ciao,
    Dhej
    The owl of Minerva spreads its wings only with the falling of dusk. -Hegel

Posting Permissions

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