473,748 Members | 10,569 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how send array to other page in URL??

hi all...

i have array and iwant this array to other page in URL

let the name of array is numbers and i fill this array by loop from
data base

when i write this ..
echo "<META HTTP-EQUIV=\"refresh \" content=\"0; URL=reg.php?arr =
$numbers \"";

when redirect to reg page the url is
http://localhost/reg.php?arr=Array

and when print the variable $arr in reg page apeare Arrary word

so ,please tell me how i can send the array ??

thanks.
Jan 6 '08 #1
2 2793
On Sun, 06 Jan 2008 23:39:46 +0100, suma <su*****@hotmai l.comwrote:
hi all...

i have array and iwant this array to other page in URL

let the name of array is numbers and i fill this array by loop from
data base

when i write this ..
echo "<META HTTP-EQUIV=\"refresh \" content=\"0; URL=reg.php?arr =
$numbers \"";

when redirect to reg page the url is
http://localhost/reg.php?arr=Array

and when print the variable $arr in reg page apeare Arrary word

so ,please tell me how i can send the array ??
serialize()/implode() and on the receiving page unserialize()/explode()
it, or use a session ans store it in that, and never use a META refresh
when you can send a real redirect header ( header('Locatio n:
../reg.php?arr='.u rlencode(implod e(';',numbers)) ); )
--
Rik Wasmus
Jan 6 '08 #2
suma wrote:
hi all...

i have array and iwant this array to other page in URL

let the name of array is numbers and i fill this array by loop from
data base

when i write this ..
echo "<META HTTP-EQUIV=\"refresh \" content=\"0; URL=reg.php?arr =
$numbers \"";

when redirect to reg page the url is
http://localhost/reg.php?arr=Array

and when print the variable $arr in reg page apeare Arrary word

so ,please tell me how i can send the array ??

thanks.
You have to send each individual element of the array. Alternatively,
you could serialize the array then urlencode it. But that can result in
large amounts of data if your array is big - maybe too much data.

You could store the contents of the array in the $_SESSION variable, but
again, if it's a lot of data this can slow you down. And if it is a lot
of data, you probably should be refetching the data from the database,
anyway.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Jan 6 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
9873
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
9
3154
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the other page, or is there something else like a stream which will be like a file. I am attempting to get a way from writing out a file and then having to give the page that I am posting to the file name. Instead I would like to just from asp.net...
10
3954
by: Sven Huijbrechts | last post by:
Hello, I need to send a couple of "NUL"s -> HEX value "00" on a networkstream.. This is the code we currently use to send string: Dim sendBytes As () = Encoding.ASCII.GetBytes(inputtext.ToString) networkStream.Write(sendBytes, 0, sendBytes.Length) Since there is no char value for hex 00 (NUL) it's not possible to use a
5
1619
by: nicolas ETIENNE | last post by:
Hello, I want to send through Socket a struct So, i'd like to do, as I did before in C++, something like send((void*)myStruct); where myStruct is a struct with basic types
4
7683
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. But sometimes even when I'm just sending one e-mail the web page takes a minutes or so to post. Can anyone tell me why it is so slow, or how to fix the problem? To address this I am thinking of just creating a queue table to write the emails...
4
3085
by: drec | last post by:
I currently have a script together that will display one record per page and allow the user to manually click through pages to view the next record. How can I translate this to printing the data? I want to be able to print the data one page at a time, but only send one print job to do this? I have never done this before, but would imagine it is possible.
8
4439
by: voroojak | last post by:
Hi. I have to read from from IBM terminal 3270. When the main menu is open I can send my keys and move the page forward. I mean I can send F6,F7,F2 and other keys to go to the page that I want. Then I am sending shift+F8. When I am doing that the mouse will focus on a line that I have to write a name on it. I have to read this from array that first time go and read the first name, then second name and so on. But because I was not successful...
4
1739
by: tester1000 | last post by:
Hi first ... sorry for my english :-( I have a webshop and i wana make a form for all product what i have . Product name ( textbox ) . after i bit the nr ( qty) in the text box i would to send it to my shoping card ( $_GET $numprod ,$prodid, $basketid ) . my problem is i can only send 1 product at the time becouse i dont have the product in array.How can put in array all the forms in array than inser into db can sameone help me...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.