Link to home
Start Free TrialLog in
Avatar of robrodp
robrodpFlag for Mexico

asked on

Action take form a form with get

There is  a form with "post" that in the action it says:

(I run it with get and the line reads http://domain.com/test/?(variables))

http://domain.com/test

It doesn't specify the script that takes the form data to process and returns a result

I dont know in what language it is programmed in

I tried index.php (domain.com/test/index.php

the same for index.asp, default.php and default.asp but those scripts dont exist in the server.

I use chrome developers tools but it only returns  (index) which could be anything

Any ideas?
Avatar of Big Monty
Big Monty
Flag of United States of America image

If there is no file specified then it's paying to itself, so whatever the page that generates it is what the language is
the script could be routed and mapped so that you can't see the actual server side page extension (.php or .asp, etc) , it was designed most probably for security and ease of references/use.

without a proper documentation, it's difficult for any user to guess what parameters it takes but you can get a try if you want. align to this, you may try to use tool such as Postman to do the posting tests (either using Get, or Post, etc)

for more info:

https://www.getpostman.com/
Avatar of robrodp

ASKER

I need to catch the relsts in a variable
what is the url?
it may be redirected to any other page somewhere else...
Avatar of robrodp

ASKER

Or how can I catch th scren output to a file
Avatar of robrodp

ASKER

I think I could use jquery to post the form and catch the result in a variable...

Any ideas?
I think I could use jquery to post the form and catch the result in a variable...
yes, you can. but i thought you need to first figure out what parameters and requirements (post, get, etc) you gonna post to your URL?

use the Postman as suggested above so that you no need to write any codes for your URL testings.

It's suggested to test what is needed before you actually writing the actual codes.
first you asked what language a website is written in, then you talk about catching results in a variable...it's unclear what you're asking for here

you can use the following tool to find out what any website is using for its tech stack:

https://wappalyzer.com/
Avatar of robrodp

ASKER

I didnt ask I sainI didnt know. And yes what I needis to cacth the results in a variable
Avatar of robrodp

ASKER

Using jquery at the end of the form I have
<script>
$.post( "http://www.domain/test", { nombre: "Roberto", paterno: "Parker", materno: "Littlewood", estado: "Cualquier", ano_inicial: "Cualquier" }, function(data){
console.log(data)
});
</script>
<script>
document.write (data);
</script>
How can I check if the result is in the data variable?
document.write (data);  doesnt show anything

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
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
Avatar of robrodp

ASKER

The console shows nothing  but the alert shows only the top par of the results it doesn't bring it complete. It truncates the data
Avatar of robrodp

ASKER

I got it now, With a document.write I see the full results!!!

Now any idea of how I can pass the data sj variable to an asp variable?
Avatar of robrodp

ASKER

Thx guys just what I needed. Sorry for any misunderstanding. the js solution just popped into my mind, didnt know how to do it.