hi
i'm new to php but i tried to make my own edu website but i'm facing lot of problem bu using php
when the students enter their usn no(eg:1db12cs005) when user hit submit button it must fetch result from external website(eg:http://www.results.vtu.ac.in/) but I don't want to redirected to the external website, where results can be seen. Instead, I want the results to be displayed on the same website. I'm open to to all kinds of suggestion!
i'm new to php so plz help me by giving complete code
To fetch the form results from an external website on the sa
Moderator: General Moderators
To fetch the form results from an external website on the sa
Last edited by punith on Sun Feb 02, 2014 1:36 pm, edited 1 time in total.
Re: To fetch the form results from an external website on th
How? How is it not working properly? What is it supposed to do and what does it actually do?punith wrote:it's not working properly
Re: To fetch the form results from an external website on th
firstly i thank u for giving interest to solve this..
when the student enter their usn no and when they hit submit button its just accessing their name but its not showing their marks and also it's showing its result in same page i want to display in new windows(their r many website for eg fastvturesults.com,vtualerts)
when the student enter their usn no and when they hit submit button its just accessing their name but its not showing their marks and also it's showing its result in same page i want to display in new windows(their r many website for eg fastvturesults.com,vtualerts)
Re: To fetch the form results from an external website on th
For the new window you can put target=_blank on your form.
The page is going to show whatever you grabbed from that vitavi.php script. If you don't like that then you have to make it grab another part of the page or maybe even a different page entirely. What page that would be, I have no idea because I don't know what that site is.
The page is going to show whatever you grabbed from that vitavi.php script. If you don't like that then you have to make it grab another part of the page or maybe even a different page entirely. What page that would be, I have no idea because I don't know what that site is.
Re: To fetch the form results from an external website on th
site is about one of the Engineering university where 10k students result will be displayed by this website bcoz of this its server will be busy.so i tried to fetch the result from this when i applied this code to my website its just showing its students name i wanted the result of that student and it must display in new windows
Last edited by punith on Sun Feb 02, 2014 1:36 pm, edited 1 time in total.
Re: To fetch the form results from an external website on th
You can restate your first post all you want but it's not going to help make any progress with answering (or re-answering) your questions.
If you want to program with PHP then you have to actually learn some of it. I'm not going to give you code you can just copy/paste and make all your problems go away.
The $response had the HTML from that page you scrapped, up until it was overwritten to have only a part of the HTML. If that "part of the HTML" doesn't have what you want to include on the page then you need to change the code so that it does get what you want to include. I don't know the source HTML, and frankly have no idea how Michael (in that SO post) somehow knew your situation without you having said, well, anything to clue him in. So unless you want to keep shopping around for help, either free or paid, you're going to have to start getting your hands dirty with PHP code.
If you want to program with PHP then you have to actually learn some of it. I'm not going to give you code you can just copy/paste and make all your problems go away.
The $response had the HTML from that page you scrapped, up until it was overwritten to have only a part of the HTML. If that "part of the HTML" doesn't have what you want to include on the page then you need to change the code so that it does get what you want to include. I don't know the source HTML, and frankly have no idea how Michael (in that SO post) somehow knew your situation without you having said, well, anything to clue him in. So unless you want to keep shopping around for help, either free or paid, you're going to have to start getting your hands dirty with PHP code.