Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
Comment
[i]Italic Text[/i]
[b]Bold Text[/b]
[spoiler]Spoiler Text[/spoiler]
>Highlight/Quote Text
[pre]Preformatted & Monospace Text[/pre]
[super]Superset Text[/super]
[sub]Subset Text[/sub]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


Finding Code Behind Submit Button

Reply
- Sun, 18 Dec 2016 17:06:59 EST W/zS63TD No.36384
File: 1482098819204.jpg -(5336B / 5.21KB, 268x121) Thumbnail displayed, click image for full size. Finding Code Behind Submit Button
This is all I have:
<tr><td align="center">
<input type="submit" value="Find me a scale!"><br>
</td></tr>

I don't web dev, so where do I start to look? I'm assuming if it's JS then I can find it at least. Here's the page in question
http://www.scales-chords.com/scalefinder.php
>>
Esther Durringhood - Sun, 18 Dec 2016 18:49:52 EST ssz30GJ9 No.36385 Reply
It's not js, it is inside a form that takes you to another page. The url can be found inside the form tag as the action parameter.


^ The above is my guessing without looking at any code
>>
Nigel Snodspear - Mon, 19 Dec 2016 05:49:18 EST eKgr8qwE No.36386 Reply
1482144558641.png -(41704B / 40.73KB, 1072x782) Thumbnail displayed, click image for full size.
>>36385
What this guy said.

The whole load of info you enter is inside a form, and when you click the button all the elements on the form get submitted to the action url shown in this pic. You can use the dev tools inside firefox or (probably) chrome to see this.

You're not wrong in thinking that there could have been a click event handler attached to the button that maybe did some validation of the form details before sending in a different way.
>>
Nigel Snodspear - Mon, 19 Dec 2016 05:50:18 EST eKgr8qwE No.36387 Reply
1482144618641.png -(141157B / 137.85KB, 1394x642) Thumbnail displayed, click image for full size.
>>36386
Here's what happens when you click the button, on the network tab of the dev tools you can see the request along with the details I entered. Notes C and E.
>>
John Gedgechatch - Mon, 19 Dec 2016 11:04:38 EST bjMQSk50 No.36389 Reply
1482163478712.jpg -(208301B / 203.42KB, 1117x765) Thumbnail displayed, click image for full size.
>>36387
Here you go, other posters were right. Doesn't appear to be JS, just a standard form and GET submit to the same PHP page/script.

In this case, you won't be able to get the code for the actual processing of the form, as the PHP is executed on the server before you see the results. It's not like JS where you can freely view the source in your dev tools.
>>
Thankful OP - Tue, 20 Dec 2016 05:09:02 EST F+scHBch No.36390 Reply
Blast! It's PHP! And I would've gotten away with it too if it weren't for you meddling web-devs and your server-side scripts.
*shakes first*
*induces cringe*
*too far? probably*
/me kills self
>>
Ebenezer Goodfield - Tue, 20 Dec 2016 07:13:51 EST eKgr8qwE No.36391 Reply
>>36390
If you wanted to be a real scrub you could enumerate all possible inputs, write a script to try them all then scrape the results. The info is probably out there somewhere else anyway.

Just saw they have an 'API' [ http://www.scales-chords.com/api/ ] so maybe they are open to sharing the data with you? Email the guy who runs the site and ask.

Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.