Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - entering info into a web form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedentering info into a web form

 Post Reply Post Reply
Author
kahn10 View Drop Down
Newbie
Newbie


Joined: 21 July 2004
Location: United States
Status: Offline
Points: 2
Direct Link To This Post Topic: entering info into a web form
    Posted: 21 July 2004 at 1:43pm

My company has an internal web form that allows us to enter data on staged PC's.  I've found that the data can be entered automatically into the for if I specify it in the URL.  For example, one section prompts for "serial number".  The source looks like this:

<td colspan="3"><input type="text" name="serialnum" value=""></td>
     </tr>

and if I enter this into the URL:

htp://<companysite>/order/index.php?page=queue_staging .inc&editid=1595&serialnum5= xxxxxx

(Note:<companysite> is actually the name of our site and xxxxxx represents the serial number.  http was changed to htp so this rich text editor won't automatically translate it into a link)

It will print the information into the field automatically.  The problem I am having is that the fields appear multiple times within the same declared variable names and I can't find what I should put in the URL to make it fill in the  seocnd serialnum rather than the first.  Below are other snippets of the code which I think are likely culprits for declaring what part of tyhe form but I can't seem to find the proper syntax.

<form name="Queue0" method="post" action="/order/index.php?page=queue_staging.inc&editid=1 595" style="margin-bottom:0px">
    <input type="hidden" name="counter" value="0">

In these the number next to "queueX" advances with each section and the value for "counter" advances also, so the second one would have Queue1 and value="1" for the counter.

I have tried putting in the following into the URL

htp://<companysite>/order/index.php?page=queue_staging .inc&editid=1595&counter=1&serialnum5=xxxxxx

but it still places the info in the first serialnum area of the form.

In Cae anyone is wondering the "editid" section in the URL refers to the page, if it's changed then it just advnces to the next page, not the next section on the same page.

I hope someone out there can help me, please let me know if you'd like me to cut and pate more of a sample form to this site, I can even copy the whole source (although it's several pages long). 



Edited by kahn10
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Direct Link To This Post Posted: 21 July 2004 at 2:01pm

Try using GET:

<form method="GET" action="whatever.php">

and instead of putting the querystring parameters in the action field make new hidden inputs with the names and values.

Back to Top
kahn10 View Drop Down
Newbie
Newbie


Joined: 21 July 2004
Location: United States
Status: Offline
Points: 2
Direct Link To This Post Posted: 21 July 2004 at 2:29pm

Unfortunately I do not have that kind of access to our company website, and the whole place is caught up in so much red tape that it would take forever to get the code inserted (if I could get it in at all, I'm not officially a programmer at the company).  I am limited to either inserting a query string into the URL or somehow otherwise directly inserting the data into the form.  The ultimate goal of this process will be to create an automated script (CLS, KIX32, or VBS) which will insert the proper data onto the website.  It currently takes around 2 to 3 hours a day for me to do this.

   I hope someone has an idea of how this can be accomplished, please let me know if you want more sections of the source.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.