Irish SEO,  Marketing & Webmaster Discussion

 

Passing arrays through pages

This is a discussion on Passing arrays through pages within the Coding Help forums, part of the Webmaster Help category; Hi I have created an array in one page, problem is i want to display it on another page. how ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-03-2007, 06:51 PM
Frontpage User
 
Join Date: Mar 2007
Posts: 7
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daryllsheridan will become famous soon enough
Default Passing arrays through pages

Hi

I have created an array in one page, problem is i want to display it on another page. how do you go about transfering arrays from one page to another?

Have had various attempts at it but havent got close in any of them

The array is

$arrErrors = array();

Daryll
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 31-03-2007, 09:29 PM
ph3n0m's Avatar
Webmonkey
Recent Blog: Show and click
 
Join Date: Jan 2006
Location: Ireland
Posts: 300
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ph3n0m will become famous soon enough
Default

in plain html - you cannot do it

with javascript, php, asp or some other scripting language it is possible

dare I ask, what language you are using?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 31-03-2007, 11:27 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

you could store the array in session. This way they are available everywhere on your website, but don't forget to reset them when you no longer need it.
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2007, 11:14 AM
Frontpage User
 
Join Date: Mar 2007
Posts: 7
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daryllsheridan will become famous soon enough
Default

Cheers Louie got it working using sessions, session destroy after there called

Using PHP BTW
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2007, 11:19 AM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

i wouldn't use session destroy, just in case it unsets a session that you might need.
Instead I will use
PHP Code:
unset($_SESSION['name']);
//or
$_SESSION['name'] = ""
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
arrays, pages, passing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Successful Site in 12 Months with Google Alone montyauto Webmaster Articles 11 18-02-2008 01:28 PM
Google.ie - 'The web' vs 'Pages from Ireland' TheMenace Search Engine Optimisation 19 04-04-2007 01:51 AM
Website Validation ph3n0m Coding Help 29 10-08-2006 10:04 AM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 04:45 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0