the remaining problems are:
i did this step in cpanel
1. setted up test.domain.com as a subdomain
2. setted up its redirection to index.php in a certain folder say testscr so that the full url for the script will have to be www.domain..com/testscr/index.php
(of course i can pass some variables on that with a link like this www.domain.com/testscr/?var1=1&var2=2)
3. then the index.php for the login can be accessed using the link
test.domain.com/?var1=1&var2=2
but the main problem is it keeps on expanding to
www.domain.com/testscr/?var1=1&var2=2
how can i make it so it will remain on the shorter url
test.domain.com/?var1=1&var2=2
and the last problem is
the variable is dologout and dologin so stop calling it doglogout and doglogin that...hehehe just joking. :)
~thanks
kray
[EMAIL PROTECTED] wrote:
For your first question:
Make your index.php file say
include("login.php");
?>
As for your second one, I'd suggest making dologout or dologin = true then
check it with isset on $_POST['doglogin'] or $_POST['doglogout']
(better yet, make it one variable and check which action to do).
---- kray blue wrote:
> Hello bright people, :)
>
> **Hope to not be moderated after all my questions. I have been studying php so please bear with me.
>
> >>>URL!?
>
> scenario: I want to have this subdomain http://login.domain.com and configured it as a subdomain. Pointed/redirected it to a script named login.php.The main problem is I would like for it to stay the same even when I have made it redirected.
>
> testing: When I went to test it and typed the url http://login.domain.com the redirection that I have made on the cpanel would expand it to http://www.domain.com/login.php when all I want for it to stay like the first url without people knowing which script runs.
>
> question: how can i make it stay like it was typed?
>
> >>>get method
>
> scenario: I have this script called login.php which asks for 2 things: dologin and dologout.
> i want it to be like this
> http://www.domain.com/login.php?dologin&session_maybe_here=123
> it will log the user in.
> http://www.domain.com/login.php?dologout&session_maybe_here=123
> will log the user out.
>
> question: how can i know that the dologin and dologout variable are on the url?
> tia,
> ~kray
>
>
> __ _
> ____ | |(_)
> / || | __ _ ,_ _______
> | -- | || |> \/'\/ || __ |
> \ \ | || || +-+-+ || ___/
> /+__\ \| || || | | | | \ \
> < > copyryt 2003 (r)
>
>
>
> ---------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------------
> Come to the monthly meetings at UTD in Richardson, TX.
> Second Tuesday of every month.
> Yahoo! Groups Links
>
>
>
>
>
__ _
____ | |(_)
/ || | __ _ ,_ _______
| -- | || |> \/'\/ || __ |
\ \ | || || +-+-+ || ___/
/+__\ \| || || | | | | \ \
< > copyryt 2003 (r)
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
[Non-text portions of this message have been removed]
The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.
YAHOO! GROUPS LINKS
- Visit your group "php_mysql" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
