473,406 Members | 2,352 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,406 software developers and data experts.

How to redirect a PHP page to another page?

Hi. If anyone can help I would appreciate. Im new to php. BUT im working on a site for a friend that was already created in PHP. Here's what I need to do. The code below is a page the php generates called rentals thru the php database it pulls a list of all the neighborhoods of our rentals with logos. Then it was set up to generate a rentals detail page depending on which logo was selected. I now need to change that path. I need to go to a specific page depending on which logo is choosen, it is not a php generated page as before. Below is successful code doing it the old way, help with the change.


The situation explained in a simple manner...
Page 1 is generated by php/database, which will list 3 logos. Depending on which logo they choose will vary the page they should go to next. Each one of those pages that they will go to after selecting a logo, is its own unique page not generated by php. So just one specific url for each page. How can I achieve this?

Thanks ahead of time, I appreciate anyones help on this issue.

Expand|Select|Wrap|Line Numbers
  1. [<div class="inside_content_col01_wrapper_inner">
  2. <ul><? if ( $communities_list ) {foreach ( $communities_list as $community ) { ?>
  3. <li><a href="rentals_profile.php?com=<?= $community['community_id'] ?>"><?= $community['community_name'] ?></a></li>
  4. <? } } ?>
  5. </ul></div>]
Feb 17 '11 #1
2 1841
code green
1,726 Expert 1GB
Can you make the logos hyperlinks, so clicking the logo wil open a new page?
Feb 17 '11 #2
clain
79
how do you identify which logo is chosen? there must be some module to do the identification of logo. integrate the hyperlink in that module depending upon the logo.

PHP is a server side language. So either there should be a post event after selecting the logo or you should write a JS to do it in client side.
Feb 19 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Terry | last post by:
Hi, I am trying to figure how to do the following: I have 2 pages, Page 1 has a simple form with a field called "Number", and Page 2 has a button. Whenever the button on Page 2 is clicked,...
1
by: Rick Strahl [MVP] | last post by:
I often have the need to run templates that perform the equivalent of a mail merge as part of the processing for another page. For example, I have an invoice display page in my admin module and...
4
by: Ivan Demkovitch | last post by:
Hi! I have Portal application which is on http. However I like to do user authentification using SSL I like approach most sites use: They have <form name="loginForm" action="https://sss"...
1
by: Greg Smith | last post by:
What is the syntax to reference a control on another page? I have a class module that I would like to code to change parameters on a series of controls on a web page. There are to many to pass by...
0
by: Egghead | last post by:
Hi all, I'm hoping someone can help me see through what seems like it should be a simple problem. I am trying to print the contents of a data table and have noticed that the lines are being...
2
by: Mike P | last post by:
When you are passing a value to another page, and will need access to it throughout the page and on any postbacks, what is the best way to store it? By making it a variable accessible to the whole...
2
by: Luongo | last post by:
Hi, I have a form that, when submitted, needs to be processed by one file (survey.php) but have another page (thankyou.php) displayed. Because I don't have access to the former, I can't combine the...
3
by: Carlos | last post by:
Hi all, I would like to know what is the most efficient way to redirect a gridview containing data to another page. It is kind of confirming an order which just needs to be re-displayed. Can...
3
by: Lucky | last post by:
Hi guys, i'm stuck in very odd situation here, the problem is i need to ask one aspx page to give me data from another aspx page. the flow in like this: Page1_load() { string...
2
by: thirunavukarasukm | last post by:
Hai I am creating one web application i am using xml String with one containing xml Output to assign that temporary variable.. this my requirement I want to transfer one xml file to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
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.