473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Pass parameter to new page

With psp, how can I go to another page and pass a parameter to it?

Thanks, Robert
Mar 18 '06 #1
7 2024
Sorry, I meant php.

"Robert" <no****@spamfree.com> wrote in message
news:Fn*****************@tornado.texas.rr.com...
With psp, how can I go to another page and pass a parameter to it?

Thanks, Robert

Mar 18 '06 #2
Robert wrote:
Sorry, I meant php.
:) "Robert" <no****@spamfree.com> wrote in message
news:Fn*****************@tornado.texas.rr.com...
With psp, how can I go to another page and pass a parameter to it?

You could pass the information in a session.

--
Ian Collins.
Mar 18 '06 #3
you can pass parametres in main 3 ways:

direcot ways

session()
HTTP_GET
HTTP_POST

sesison writes a cookie in your system
HTTP_GET uses the GET method
HTTP_POST uses the post method

Cheers

Mar 18 '06 #4
why not the simply redirect to:
newpage.php?parameter1=value&parameter2=value

and use a $_GET to process the parameters! I found it much easier and
faster then using the session...maybe I'm wrong! (never much used
sessions)

Mar 18 '06 #5
Robert in news:Fn*****************@tornado.texas.rr.com wrote:
With psp, how can I go to another page and pass a parameter to it?


Shortest way: use HTTP 1.1 Redirect.

header("Location: http://$_SERVER[HTTP_HOST]" . full_path_to_dest_page .
"?param=$value");

--
ColdShine

"Experience is a hard teacher: she gives the test first, the lesson
afterwards." - Vernon Sanders law
Mar 18 '06 #6
There needs to be some balance between security and speed. If you're
looking for speed in your coding use $_GET but that's not recommended
if you're concerned about security. Your other alternative is the
$_SESSION global variable. Reference...
http://www.php.net/manual/en/ref.session.php for more info.

Regards,
Gerard.

Mar 18 '06 #7
Got it! Many thanks to each of you.
I am just learning this stuff, as you can easily see.

Robert

"Robert" <no****@spamfree.com> wrote in message
news:Fn*****************@tornado.texas.rr.com...
With psp, how can I go to another page and pass a parameter to it?

Thanks, Robert

Mar 18 '06 #8

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

Similar topics

5
by: Belinda | last post by:
Hello All I have the following test.asp page which needs one parameter querystr but my querystr is a very long string value. When I send a long value the query string is getting truncated after...
1
by: jaya | last post by:
Hi, I am using asp.net to pass parameters from .aspx page to my Microsoft reporting service. My .aspx page has checkbox. If it is checked it the chekbox should pass value =0 to my report <INPUT...
3
by: darrel | last post by:
I'm still struggling to figure out the big-picture concept of how to go about building a web site menu from an xml file. The XML file contains the full site structure (the site map, so-to-speak)....
5
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user...
3
by: Chris | last post by:
I have a modal (yes it must be modal) web page. I do this by having an empty frame that points to my main page (so that I can repost without new popups) I have to pass data to the child page from...
2
by: Ranginald | last post by:
Hi, I have a repeater based on a stored procedure. It pulls the following: catDesc Image The user sees the category description (catDesc) , and then clicks on the image (Image) which is...
2
by: bbsbob | last post by:
Hello, I'm still using the Framework v1.1. Forgive me, I'm working on a legacy application. I'm using 2 iFrame sections with 2 aspx pages, i.e. 1.aspx (left) and 2.aspx (right) In 1.appx page,...
1
by: khalid sohail | last post by:
hi everybody i want to pass the window size parameter to <asp:hyperlink> attribute Navige URL Property. tell me how to pass the parameter to it.....actually i want to open the new window on the...
3
by: David C | last post by:
With .NET 1.x, this is what I did. On the destination page public class ToWebForm : System.Web.UI.Page { public const string PARAMETER = "PARAM"; protected void Page_Load(object sender,...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.