Link to home
Start Free TrialLog in
Avatar of mgv
mgv

asked on

I wanna hide the adress links

Hi Guys,
the code below works good, but I would like to hide the link test.one.two/test/input and the returnurl=https://return.three.four/test/return.php when I do my javascript code for some reasons it does not pass the variables values of the form to the web page input.

Any suggestions
<form method="POST" name="onlineform" action="https://test.one.two/test/input?returnurl=https://return.three.four/test/return.php">
<input type="hidden" name="a" size="6" maxlength="6" value=<?print $a?>
<input type="Submit" name=""  value="Go To next page">
</form>
thank you
Avatar of venkateshwarr
venkateshwarr


what is <?print $a?>

should it not be <?php print $a?>>

venkat.
Avatar of mgv

ASKER

let's say value="5"
Hi Guys,
the code below works good, but I would like to hide the link test.one.two/test/input and the returnurl=https://return.three.four/test/return.php when I do my javascript code for some reasons it does not pass the variables values of the form to the web page input.

If I understand what you are trying to do, i think you want something like:

<form method="POST" name="onlineform" action="https://test.one.two/test/input"
<input type="hidden" name="returnurl" value="https://return.three.four/test/return.php">
<input type="hidden" name="a" size="6" maxlength="6" value="5"
<input type="Submit" name=""  value="Go To next page">
</form>

You are using a post method which does not pass the value as the var=value strings, it sends it encripted.  if you want to send with an argument string you need to use a get method, not post.

Cd&
Avatar of mgv

ASKER

The idea here is  I am receiving data (value="5" and value="7") for the variables names "a" and "b" and then I send those values to the link https://test.one.two/test/input.php  after I process that data. The return values Go to https://return.three.four/test/return.php.
Questions:
1) How to hide the link action="https://test.one.two/test/input returnurl=https://return.three.four/test/return.php" with javascript in order to disable the toolbars. I meant not to get the user to naviagate back to the other page.

Tthe code below works fine, but When I try to disable toolbars with my javascript my values are getting lost.

<html>
<body>
<form method="POST" name="onlineform" action="https://test.one.two/test/input.php? returnurl=https://return.three.four/test/return.php">
<input type="hidden" name="a" size="6" maxlength="6" value="5"
<input type="hidden" name="b" size="6" maxlength="6" value="7"

<input type="Submit" name=""  value="Go To next page">
</form>
</body>
</html>
Thank you

Okay, I got it now.

You think you can hide the url from the user but still let the browser see it.  Lots of luck.  If it has to be in the code, there is no way to prevent the user from finding out what it is.  If you want to play games with re-direction without the user being able to track it then every thing has to be managed server side, with nothing but a random code and session id coming to the server.  The random code gets generate with the page and is associated with the session id.  And doing that will be a challenge to hackers so the security on your server better be up to snuff.

Cd&
Avatar of mgv

ASKER

Thank you much for your inputs.
How would you disable the toolbars in  in both web pages "https://test.one.two/test/input.php? returnurl=https://return.three.four/test/return.php
check the example above.
I really appreciate your inputs.

Thank you
The links don't work.

As to diabling the toolbars.  You cannot disable anything or modify any of the user settings on the exixting window.  If you want a window with part of the user control options removed, then you have to open the window with client side scripting.  If the user has disabled active  scripting(about 15% of users) the page will not display. If the user has a popup blocker or has set popups disable in Mozilla, the page will not display. Some users will automatically just close it because they do not like having popups with disable controls shoved in their faces.

If you have a design that is dependent on reducing user control and limiting the contol they have of their browser,  you should re-think it because all that is going to do is convince users to find whatever content you have somewhere else on the Internet.

Cd&
Avatar of mgv

ASKER

Hi Guys,

The idea here is  I am receiving data (value="5" and value="7") for the variables names "a" and "b" and then I send those values to the link https://test.one.two/test/input.php  after I process that data. The return values Go to https://return.three.four/test/return.php.

1) How to disable the toolbars in  action="https://test.one.two/test/input.php?returnurl=https://return.three.four/test/return.php" with javascript.
2) the variables "a" and "b" are passed hidden to the  action="https://test.one.two/test/input

The program below works fine, but I need to write a javascript function to disable the toolbars
any ideas

<html>
<body>
<form method="POST" name="onlineform" action="https://test.one.two/test/input.php? returnurl=https://return.three.four/test/return.php">
<input type="hidden" name="a" size="6" maxlength="6" value="5"
<input type="hidden" name="b" size="6" maxlength="6" value="7"

<input type="Submit" name=""  value="Go To next page">
</form>
</body>
</html>
Thank you
>>>I need to write a javascript function to disable the toolbars
any ideas

From my previous post:
"
You cannot disable anything or modify any of the user settings on the existing window.
"

What part of that do you not understand?  You are not going to disable the the toolbar.  If you want a window with no toolbar then open a popup.

Cd&
Im assuming that you dont want the stuff that you are passing showing, i.e. everything after the ? in the link.

If this is the case there are two work-arounds to this..
1) make your page a frames page, the first frame you dont really need to do anything in, and it will not change
    this way when you are opening a new link in the second frame the url will not show in the toolbar

2) use session variables to pass your data rather then passing it in the link

the second way is really your way to go that way someone cant change the information knowing your link arrangement.
if, you do something like this..

// THE FORM PAGE (assuming return.php)
session_start();
$_SESSION['ReturnURL'] = "https://return.three.four/test/return.php";

// THE ACTION PAGE (assuming input.php)
session_start();
$returnURL = $_SESSION['ReturnURL'];

this way no one can see the return link, and no one can change the return link, even more if you are passing sensative information such as CC num or password it will be hidden from the user


ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial