Note that there are some explanatory texts on larger screens.

plurals
  1. POFake HTML URL address when mouse is over a form
    primarykey
    data
    text
    <p>let's say that I have the following form:</p> <pre><code>&lt;form method="post" action="" autocomplete="off"&gt;&lt;input name="checking2" type="submit" value="Name" class="ssd"&gt;&lt;/form&gt; </code></pre> <p>When a user submits the form this PHP code takes place:</p> <pre><code>if(isset($_POST['checking2'])){ $xmla = new SimpleXMLElement('passwords/' . views . '.xml', 0, true); $plus = $xmla-&gt;goodx; $result = $plus + 1; $xmla-&gt;goodx = $result; $xmla-&gt;asXML('passwords/' . views . '.xml'); header( 'Location: http://google.com' ) ; } </code></pre> <p>And the following CSS to design the form: code:</p> <pre><code>.ssd { border: none; background-color: transparent; padding: 0; cursor: pointer; font-size:89%; display:inline; text-decoration: underline; color: #00c; } </code></pre> <p>Now, every time that the user clicks on the form he is being redirected in return to google. The PHP code is supposed to add +1 to a xml file's value(It works) every time that someone submits the form. My problem is, that whenever someone places his mouse over the form's value, the URL that he sees is the URL address of the current page he is currently on, Not the URL he will be actually redirected to - Google. I am trying to fake the URL address, so instead of seeing the current page URL address(which is action=""), he will see the URL address of google. And no, do not suggest to just place the URL address of google in "action=", because then the PHP data does not being updated properly for some reason whenever I do that. Any help will be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload