473,471 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

i have a problem with my php script ...i need to pass an id ($id) to a page called pa

106 New Member
this page opens in a pop up where it fetches an image from the Database ...everything works perfect except for passing the id part..
i'm tired of trying and i kept 5 days googling but could not solve it !!
any help would be appreciated .. here's the line that drove me crazy
<A HREF='javascript:popup("page.php?id=$id"...
this $id was sent to this page by another page and now i want to resent it to some other page (page.php) i assumed it's already known for this page so i used it directly $id

its not coming via post Nor get
i got this id from alink <a href='edit_news.php?id=$id'>
okay..
then in the second page i write $id=$_REQUEST[id]; so now i have this id on that second page and when i echo this id it gives me the correct one But on this second page i need to sent that SAME id to the pop up ????? that's my problem
Aug 10 '08 #1
3 1108
pbmods
5,821 Recognized Expert Expert
Heya, Jessy.

Try this:
Expand|Select|Wrap|Line Numbers
  1. <a href="#" onclick="popup('page.php?id=<?php echo $id; ?>; return false;" ... 
  2.  
Aug 10 '08 #2
jessy
106 New Member
Oh God
God Bless You Admin .. it Works ...
i can't beleive it ..i was getting sick

but please can u tell me what is the difference between

popup("page.php?id=<? echo $id ;?>");
and
popup("page.php?id=$id") ;
what difference does it makes if the page already knows the value of $id
Aug 10 '08 #3
pbmods
5,821 Recognized Expert Expert
Have a look at this document: http://php.net/string.

The "page" is just an HTML document that the User's browser interprets. It never communicates with the PHP side directly.
Aug 10 '08 #4

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

Similar topics

2
by: Luis | last post by:
I have a function sililar to the one below on one of my pages. It puts the value of a field on a form into a variable called FieldName: function checkSomething() { var FieldName =...
3
by: nazim | last post by:
Hi, As a real novice trying to get to grips with c#.NET and html. I have created a simple showdialogbox which is called from within a webpage.aspx, I pass values to it from the main page and i...
3
by: AAOMTim | last post by:
In my design, page 1 is a web-based dashboard used to assign resources to an organization. The dashboard includes information about the organization as well as a list of all assigned resources. ...
9
by: art | last post by:
Hi, We have some scripts here where we use some AJAX to populate some of the page. Basically the AJAX routine calls a PHP script. That PHP script uses a bunch of ECHO statements to create...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
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
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
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.