html parsing to get textbox values

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
awais786
Forum Newbie
Posts: 3
Joined: Wed Nov 19, 2008 3:28 am

html parsing to get textbox values

Post by awais786 »

Hi ,

i m doing parsing first time and facing problems in getting text box values. i got this response from a link and then i have to save box values in db.

<http>
<body>
<center><h2>Members</h2></center>

<form method="post" action="thin3.php">
<table>

<tr><td>USCF ID</td><td>
<input type=text name=memid size=8 maxlength=8 tabindex=90 value='13627390'>&nbsp;&nbsp;

</td></tr>
<tr><td>Expires</td><td>
<input type=text name=memexpdt size=10 readonly maxlength=10 tabindex=100 value='2009-02-28'>&nbsp;&nbsp;
</td></tr>

<tr><td>Name</td><td>
<input type=text name=memname size=30 readonly maxlength=30 tabindex=100 value='ERIC NORMAN BOWEN'></td></tr>

<tr><td>Reg. Rating</td><td>
<input type=text name=rating1 size=20 readonly maxlength=20 tabindex=120 value='1255/23 2008-09-01'></td></tr>

<tr><td>Quick Rating</td><td>
<input type=text name=rating2 size=20 readonly maxlength=20 tabindex=120 value='1331/07 2008-09-01'></td></tr>

<tr><td>FIDE ID</td><td>
<input type=text name=memfideid size=20 readonly maxlength=20 tabindex=120 value=' '></td></tr>

<tr><td>FIDE Rating</td><td>
<input type=text name=rating3 size=20 readonly maxlength=20 tabindex=120 value='Unrated'></td></tr>

</TABLE>
</form>



<!-- insert body content above ----------------------------------->


</body>
</html>

it would be great if any one helps.

Thanks
aq
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: html parsing to get textbox values

Post by aceconcepts »

What do you want to do?
awais786
Forum Newbie
Posts: 3
Joined: Wed Nov 19, 2008 3:28 am

Re: html parsing to get textbox values

Post by awais786 »

well let me tell in detail.i will send hit a 3rd party page and pas id as query string and then i send me html response which contains some values.now i have to save the data in db.
i showed the response which i got now i have to parse it and extract values of text boxes.
Post Reply