Welcome to Dream.In.Code
Become a PHP Expert!

Join 136,897 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,728 people online right now. Registration is fast and FREE... Join Now!




sending the values row by row to another page

 
Reply to this topicStart new topic

sending the values row by row to another page

samn84
18 Mar, 2008 - 09:11 PM
Post #1

New D.I.C Head
*

Joined: 21 Feb, 2008
Posts: 41

i m gettin the values from one table row by row like this:

CODE

while(OCIFetchInto($istmt,$row,OCI_ASSOC+OCI_RETURN_NULLS))
{
$id=$row['ID'];
$mob=$row['MOBILE'];
$scode=$row['SCODE'];

echo "<script language='javascript'>
location.href=dummypg.php?id=$id&mob=$mob&scode=$scode;
</script>";
}


now these values that i have got i want them to be send to another page using query string as shown in the last line of the code.but i want the values to go row by row....as in as all the columns of the frst row goes to anothr page, then the columns of the nxt row.

i know this aint the rght way......but is there any way i can achieve this....coz i have to send the values to another page row by row.
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Sending The Values Row By Row To Another Page
18 Mar, 2008 - 09:13 PM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,494



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
By the end of the 1st loop, you'll load the 2nd page & loose all of the values afterwards. I would suggest filling an array & then send them over in hidden Javascript variables within a Form. From there you can pull them with $_POST or $_GET, depending on how you send them.
User is online!Profile CardPM
+Quote Post

samn84
RE: Sending The Values Row By Row To Another Page
18 Mar, 2008 - 10:39 PM
Post #3

New D.I.C Head
*

Joined: 21 Feb, 2008
Posts: 41

thats a nice way of doing it!!!but the problem is that the page that recieves a value is already made and takes the value on by one.....so my page needs to send the other page the values one by one!!! is there any way that i can achieve this......??????and i m not loosing the values afterall coz they are in the database.

any help wud be greatly appreciated!!
User is offlineProfile CardPM
+Quote Post

ahmad_511
RE: Sending The Values Row By Row To Another Page
22 Mar, 2008 - 11:35 PM
Post #4

D.I.C Regular
Group Icon

Joined: 28 Apr, 2007
Posts: 351



Thanked: 8 times
Dream Kudos: 400
My Contributions
Hello
I don't know if this will help,but
CODE

echo "<script language='javascript'>
window.open(dummypg.php?id=$id&mob=$mob&scode=$scode);
</script>";

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 09:29PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month