Facebook   Twitter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    
Subscribe to Newsletter



Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16

Thread: Simple HTML page - Query URL

  1. #1

    Default Simple HTML page - Query URL

    How do I create a simple HTML page that can query a tracking no(eg. SpeedServices).

    The Page just needs to have a text Box and a Submit button. The input of the Text Box needs to be added to the end of the url.

    The URL is: http://sms.postoffice.co.za/track/Parcel.aspx?ParcelID=

    Once I get this right I want to add a text box for the SAPO track&trace but the website is offline so I can't get the url.

    --
    I'm still a noob with this kind of stuff.
    Parcel Tracking >>> www.ParcelTrack.co.za
    Need a USA Address for online shopping? http://shipito.parceltrack.co.za/
    Accounting Services http://irp5.co.za/

  2. #2

    Default

    This is just a snippet so you will need your own headers, etc...

    PHP Code:
    <form action="http://sms.postoffice.co.za/track/Parcel.aspx" method="get">
    <
    input type="text" name="ParcelID" />
    <
    input type="submit" name="sbmt" />
    </
    form
    I am not thinking clearly at the moment so that could well be wrong but I hope it will work.

    HTH

  3. #3

    Default

    Looks good, just copy the snippet and change the form action and text input name to match the other site you want (you'll end up with 2 forms on one page).
    Welcome to the Animal Farm!!!

  4. #4

    Default

    Correct. Setting action to GET will automatically append all the form fields as constants into the URL query string. That includes hidden fields and submit buttons. If this is not desired, you may want to use JavaScript to achieve the desired outcome.

  5. #5

    Default

    Quote Originally Posted by icyrus View Post
    I am not thinking clearly at the moment so that could well be wrong but I hope it will work.

    HTH
    Thanks, it works great
    Parcel Tracking >>> www.ParcelTrack.co.za
    Need a USA Address for online shopping? http://shipito.parceltrack.co.za/
    Accounting Services http://irp5.co.za/

  6. #6

    Default

    I played around with the code above, then I took the google custom search page and changed the links. There's still extra code for the colour thats not required but I left it there.

    Here's the page
    http://www.ahms.za.net/trk2.htm

    I still haven't tested the SAPO search as their website is still offline, I found a SAPO search link in my email account.
    Parcel Tracking >>> www.ParcelTrack.co.za
    Need a USA Address for online shopping? http://shipito.parceltrack.co.za/
    Accounting Services http://irp5.co.za/

  7. #7

    Default

    I check the SAPO search box and there was an error but thats corrected,

    Thanks for the help

    http://www.ahms.za.net/trk2.htm
    Parcel Tracking >>> www.ParcelTrack.co.za
    Need a USA Address for online shopping? http://shipito.parceltrack.co.za/
    Accounting Services http://irp5.co.za/

  8. #8

    Default

    If I want the results of the query to be displayed on my page (in the same window), how do I go about doing it.
    Parcel Tracking >>> www.ParcelTrack.co.za
    Need a USA Address for online shopping? http://shipito.parceltrack.co.za/
    Accounting Services http://irp5.co.za/

  9. #9

    Default

    Quote Originally Posted by mh348 View Post
    If I want the results of the query to be displayed on my page (in the same window), how do I go about doing it.
    Change the target from _blank to _self.
    Last edited by bwana; 02-04-2007 at 11:16 PM. Reason: added underscore
    "Le mieux est l'ennemi du bien." FM Arouet
    "All that is necessary for the triumph of evil is for good men to do nothing." Edmund Burke
    "Never argue with an idiot. They drag you down to their level, then beat you with experience" Unknown
    Ron White was right

  10. #10

    Default

    Quote Originally Posted by bwana View Post
    Change the target from _blank to _self.
    Thanks, if i want the results to be on my own page, the url displayed ontop should be mine not the post office, is that possible?
    Parcel Tracking >>> www.ParcelTrack.co.za
    Need a USA Address for online shopping? http://shipito.parceltrack.co.za/
    Accounting Services http://irp5.co.za/

  11. #11

    Default

    Quote Originally Posted by mh348 View Post
    Thanks, if i want the results to be on my own page, the url displayed ontop should be mine not the post office, is that possible?
    Only using frames. Unless you want to get into server-side scripting and html page parsing.

  12. #12

    Default

    Quote Originally Posted by icyrus View Post
    Only using frames. Unless you want to get into server-side scripting and html page parsing.
    Is that very complicated, do you know of an online guide that I can use?
    Parcel Tracking >>> www.ParcelTrack.co.za
    Need a USA Address for online shopping? http://shipito.parceltrack.co.za/
    Accounting Services http://irp5.co.za/

  13. #13

    Default

    Quote Originally Posted by mh348 View Post
    Is that very complicated, do you know of an online guide that I can use?
    Are you hand coding or using software?

    EDIT - btw that question is only relevant if you're going the frames route.
    Last edited by bwana; 03-04-2007 at 09:49 AM. Reason: frames
    "Le mieux est l'ennemi du bien." FM Arouet
    "All that is necessary for the triumph of evil is for good men to do nothing." Edmund Burke
    "Never argue with an idiot. They drag you down to their level, then beat you with experience" Unknown
    Ron White was right

  14. #14

    Default

    I did the page above using notepad, but I do have Nvu installed. What software do you reccomend.
    Parcel Tracking >>> www.ParcelTrack.co.za
    Need a USA Address for online shopping? http://shipito.parceltrack.co.za/
    Accounting Services http://irp5.co.za/

  15. #15

    Default

    You don't need any software and you don't need to build any special frames either. Rather use an iFrame - it's pretty well supported these days.

    http://en.wikipedia.org/wiki/IFrame and http://www.webmonkey.com/webmonkey/96/37/index2a.html and http://www.samisite.com/test-csb2nf/id43.htm

Page 1 of 2 1 2 LastLast

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •