473,503 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how can I print url parameters?

I am new in programming with PHP.

I wrote the following code:

file name: output.php

<?php echo $texto; ?>

And I call it on my browser like:
http://localhost/cgt/output.php?texto=testing

The response in my browser is:
Notice: Undefined variable: texto in C:\Inetpub\cgt\output.php on line 1

Can anybody help me?
Lots of thanks.

(you can reply to my email address.)
Jul 16 '05 #1
2 30225
In article <16*************************@posting.google.com> ,
to****@sabadellpisos.com says...
I am new in programming with PHP.

I wrote the following code:

file name: output.php

<?php echo $texto; ?>

And I call it on my browser like:
http://localhost/cgt/output.php?texto=testing

The response in my browser is:
Notice: Undefined variable: texto in C:\Inetpub\cgt\output.php on line 1


<?php echo $_GET["texto"]; ?>

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 16 '05 #2
sam
You have register_globals set to off in your php.ini file.
user $_GET['texto'] instead of $texto.

HTH

"tobias" <to****@sabadellpisos.com> wrote in message
news:16*************************@posting.google.co m...
I am new in programming with PHP.

I wrote the following code:

file name: output.php

<?php echo $texto; ?>

And I call it on my browser like:
http://localhost/cgt/output.php?texto=testing

The response in my browser is:
Notice: Undefined variable: texto in C:\Inetpub\cgt\output.php on line 1

Can anybody help me?
Lots of thanks.

(you can reply to my email address.)

Jul 16 '05 #3

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

Similar topics

3
3972
by: lamar_air | last post by:
I have a fortran executable which when run from cmd it asks for a series of parameters which you enter then hit enter. From my python cgi script i want to be able to run the executable. Enter the...
46
3459
by: J.R. | last post by:
Hi folks, The python can only support passing value in function call (right?), I'm wondering how to effectively pass a large parameter, such as a large list or dictionary? It could achieved...
2
2340
by: Winston WOLFF | last post by:
What do people think about changing the parameters to logging.debug() to be more like the parameters to print? As you know, you can pass multiple parameters to print, and they are all printed out...
1
2241
by: Derek Hart | last post by:
I have the following code: Me.GetType().InvokeMember(FunctionToRun, BindingFlags.InvokeMethod, Nothing, Me, params) I can send in a string from a database into the FunctionToRun variable, and...
16
660
by: John Baker | last post by:
HI; I feel like a fool..I put CUTE FTP in my last request for help --it should have been CUTE PDF! I have FTP on my mind because I have been working on a web based application, and somehow my...
2
2859
by: Soumya Kar | last post by:
Hi All, My requirement is to be able to print a pdf document without the printer dialog being invoked. This I have achieved by using the shell and passing the verb = "Print". But a part of the...
11
2051
by: A.M | last post by:
Hi, I found print much more flexible that write method. Can I use print instead of file.write method? Thank you,
2
22836
by: Bill_DBA | last post by:
I have the following stored procedure that is called from the source of a transformation in a DTS package. The first parameter turns on PRINT debug messages. The second, when equals 1, turns on the...
10
1567
by: rh0dium | last post by:
Hi all, Below is a basic threading program. The basic I idea is that I have a function which needs to be run using a queue of data. Early on I specified my function needed to only accept basic...
2
1847
by: SMERSH009X | last post by:
I've written a Script that navigates various urls on a website, and fetches the contents. The Url's are being fed from a list "urlList". Everything seems to work splendidly, until I introduce the...
0
7202
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
7086
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
7280
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,...
1
6991
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...
1
5014
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
4672
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
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.