473,386 Members | 1,754 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,386 software developers and data experts.

open new window with send variable...

137 100+
Hallo,
I'm busy with a nieuws-item and when somebody wants to send the nieuws item to a friend he can click on a image.
Then a new window will pop up and there he can put in his and his friends names and email-adres.
But i have 1 problem, i can't get no value of a variable to the new form.
This is what i now have...:[HTML]<form method="post"><INPUT type="image" src="templates/images/emailvriend.gif onClick=\"window.open('http://www.website.com/new/send_mail.php','mywindow','width=500,height=500,le ft=350,top=300')\"
name="emailvriend" value="{$nieuws['nieuws']}"></form>" [/HTML]

I don't recieve the $nieuws['nieuws']; somehow.
Does anybody knows what i'm doing wrong?

Thanx in advance!

Paul
May 2 '07 #1
4 2418
iam_clint
1,208 Expert 1GB
how are you trying to pass the variable in a querystring?
May 2 '07 #2
djpaul
137 100+
well, it's in a php file that i wrote.
i took out the \ before the " (like <input type=\"image\" name=\"{$nieuws['nieuws']}\" and so on)
Maybe that's what you see is wrong...

Gr Paul
May 2 '07 #3
iam_clint
1,208 Expert 1GB
no.... you have to pass that variable from somewhere
May 2 '07 #4
djpaul
137 100+
Well, it's coming out of an database.
If i only have the newsID than i can get the rest of the news items from the databse to the new form with a query.
Do you have any other idea?

Thanx !

Paul
May 2 '07 #5

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

Similar topics

2
by: nntp | last post by:
Are there other ways to open multile windows at once? <SCRIPT language="JavaScript"> function open1() { var open1 = window.open('http://google.com/CheckEnviro.pl','','scrollbars=yes,height=600...
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
2
by: Magnus Blomberg | last post by:
Hello! I am very new to javascripts and wonder if there are any ways to send a parameter from a javascript with window.open. My java code is like: <script language="JavaScript"> function...
1
by: TPK | last post by:
Here is what I want to do with javascript. On a page with text place a javascript link that: 1) When a user clicks the link (onClick) a new browser window opens (the easy part) NewWindow =...
13
by: Seth Grimes | last post by:
Hello all, I want to open a window when a user leaves my site. I set up a function called by onUnload. To skip the window.open if the user hasn't left my site, I set a variable in my links and...
3
by: Stephen V | last post by:
Can anyone help me out with this problem. I would like to redirect/ go to another php page when my SQL insertion is done and also send a variable at the same time. the idea is, to come on my...
5
by: rockdale | last post by:
Hi, all: I have a linkbutton and I use javascript to open another webpage in a new window. I also want to set my session variable value when this linkbutton get clicked. These session variable...
0
by: hcuellar | last post by:
Hi. Please I need your help for this: After a database query, a table is created with a cell for each information retrieved, and for each record, two buttons, and second one have besides it...
5
by: djpaul | last post by:
Hallo, I'm busy with a nieuws-item and when somebody wants to send the nieuws item to a friend he can click on a image. Then a new window will pop up and there he can put in his and his friends...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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...

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.