Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Mod Rewrite ... Help

  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    ok i have the chatroom page...

    mysite.com/chat/

    on this page i have the links to

    mysite.com/chat/general
    mysite.com/chat/teens

    with teens and general both being chatrooms.

    Now..

    what i want is a form on mysite.com/chat that will allow a private chatroom ...

    <form action="i dont know " method="post">


    Private Room: <input type="text" name="room" value="" maxlength="15" />

    <input type="submit" />
    </p>
    </form>

    What would I put in form action? Or do I HAVE to make a simple redirect script.. i.e Will just pass the variable post to a page that will sort out the right url for me.

    I Hope this makes sense.

  2. #2
    Member looony's Avatar
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    95
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Default

    hmmmm try
    add the variable to the form then use the $_REQUEST to call the variable from the url and form so.

    Code:
    <form action="page.php?private=$variable " method="post">
    
    
    Private Room: <input type="text" name="room" value="" maxlength="15" />
    
    <input type="submit" />
    </p>
    </form>

  3. #3
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    I fixed the easy way to do this

    Code:
    echo "<form action=\"What-php.php\" method=\"post\">";
    echo "<input  name=\"room\" value=\"$room\" maxlength=\"20\"/>
    ";
    echo " <input type=\"submit\" value=\"SUBMIT\"/>|<input type=\"reset\" value=\"RESET\"/> 
    ";
    
    echo "<input type=\"hidden\" name=\"action\" value=\"Where\"/>";
    echo "</form>
    ";
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

  4. #4
    Member
    Join Date
    Nov 2005
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    <div class='quotetop'>QUOTE (subzero @ Feb 5 2009, 01:21 PM) [Only registered and activated users can see links. Click Here To Register...]</div>
    I fixed the easy way to do this

    Code:
    echo "<form action=\"What-php.php\" method=\"post\">";
    echo "<input  name=\"room\" value=\"$room\" maxlength=\"20\"/>
    ";
    echo " <input type=\"submit\" value=\"SUBMIT\"/>|<input type=\"reset\" value=\"RESET\"/> 
    ";
    
    echo "<input type=\"hidden\" name=\"action\" value=\"Where\"/>";
    echo "</form>
    ";
    [/b]
    I think you did not understand me. @Loony that does not work.

    I don&#39;t think what I want to do is possible.

    Imagine this

    [myinputboxishere]privateroom[endinputbox]
    [submit]

    when i enter privateroom into the input box i want the url im going to, to be mysite.com/chat/WHATEVERIHAVEINPUTTED

    It don&#39;t matter, i do not think its possible i will just make a redirection script.

  5. #5
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    You want links to work in a selete ?
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

  6. #6
    Member
    Join Date
    Nov 2005
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    <div class='quotetop'>QUOTE (subzero @ Feb 5 2009, 01:39 PM) [Only registered and activated users can see links. Click Here To Register...]</div>
    You want links to work in a selete ?[/b]
    Look at this url you should get an idea of what i mean [Only registered and activated users can see links. Click Here To Register...]

    Notice where the first two links go to. That is the same sort of thing I want the input to go to.

  7. #7
    Member looony's Avatar
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    95
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Default

    i have something like this on my site the navi input i just used a redirect to do it but im sure there would be a better way to do it

  8. #8
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    cut out chat/ try ../chat/
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

  9. #9
    Member
    Join Date
    Nov 2005
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Lol, no that won&#39;t work. I know the <form action="chat/" is wrong just now. Don&#39;t worry im just going to make a redirection script. Bare in mind there is no /chat/general/ folder on my server. It doesn&#39;t exist. Mod_Rewrite just makes you think there is.

  10. #10
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    i know how to mod things
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SocialEngine mod Video 3.05 jwplayer hak
    By GumSlone in forum SocialEngine
    Replies: 1
    Last Post: 12-06-09, 19:14
  2. mgigs.com v1.0 mod script
    By CreativityKills in forum Scripts Forum
    Replies: 12
    Last Post: 01-06-09, 14:19
  3. [web] All 188 Mod For vBulletin 3.8.x
    By MaD-DoC in forum Scripts Forum
    Replies: 3
    Last Post: 26-03-09, 16:46
  4. Mod Levels In Rw Script
    By Regz in forum Site / Script testing and error fixing
    Replies: 22
    Last Post: 09-07-07, 19:29

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
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19