The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Link won't work
RowanB
post Feb 5 2020, 02:37 AM
Post #1





Group: Members
Posts: 3
Joined: 29-September 09
Member No.: 9,893



I have a web page with a Log Out link on it. The link doesn't work. You click it and nothing whatever seems to happen. This is the section of HTML that creates the link (actual link shown in bold italic):

<form action='http://choir-stmaryssaffronwalden.org/change_role.php' method='POST'>
<input type='hidden' name='return_url' value='welcome.php'>
<p class='header' style='margin-bottom: 0px; margin-top: 0px;'>
Logged in as Rowan Sylvester-Bradley in role <select name='Role' class='header' onchange='submit()'>
<option value='1' selected>Member</option>
<option value='2'>Manager</option>
<option value='3'>Guest</option>
<option value='4'>Tester</option>
<option value='5'>Developer</option>
</select>
. <a class='link' href='http://choir-stmaryssaffronwalden.org/logout.php'>Log out</a>
</p>
</form>
<form action='http://choir-stmaryssaffronwalden.org/change_build.php' method='POST'>
<input type='hidden' name='return_url' value='welcome.php'>
<p class='header'>
Using build <select name='Build' class='header' onchange='submit()'>
<option value='20'>20 (obsolete)</option>
<option value='21'>21 (obsolete)</option>
<option value='22'>22 (obsolete)</option>
<option value='23'>23 (obsolete)</option>
<option value='24'>24 (obsolete)</option>
<option value='25'>25 (obsolete)</option>
<option value='26'>26 (obsolete)</option>
<option value='27'>27 (obsolete)</option>
<option value='46'>46 (obsolete)</option>
<option value='47'>47 (obsolete)</option>
<option value='48'>48 (obsolete)</option>
<option value='49'>49 (release)</option>
<option value='1000'>1000 (devtest)</option>
<option value='10000'>10000 (devtest)</option>
<option value='99999' selected>99999 (development)</option>
</select>
</p>
</form>

If I right click on the link, click Copy Link Address, paste it into the browser address bar and press Return, then it works fine. How can this be? What is the difference between clicking a link, and pasting its address into the browser address bar and pressing Return?

Thanks - Rowan
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 5 2020, 07:49 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



QUOTE(RowanB @ Feb 5 2020, 08:37 AM) *

The link doesn't work. You click it and nothing whatever seems to happen.

If logout.php doesn't appear in the address bar when clicking the link, maybe some javascript prevents the link from activating?

QUOTE
If I right click on the link, click Copy Link Address, paste it into the browser address bar and press Return, then it works fine. How can this be? What is the difference between clicking a link, and pasting its address into the browser address bar and pressing Return?

When you paste into the address bar no javascript is used, and no referer header is sent (but it seems unlikely that the PHP script checks for the latter).


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 05:27 AM