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

Form Validation, variable problem

Hi,

i use phpdev and I have a stupid problem.

I use a form and I want to pass a variable (name) from one page to
another (overview.php).

.........
<form method="post" action="overview.php">
<table width="100%" border="0">
<tr>
<td width="24%">Name : </td>
<td width="76%"><input type="text" name="name"></td>
</tr>
<tr> ................

when I fill in something, the name variable will be passed when i press
the submit button, but the strange thing is, that it doens't pass
anything to overview.php !!!!

a piece of overview.php:
......
<td width="18%">Naam van het bedrijf: </td>
<td width="82%"><?php echo $naam; ?></td>
......
so it is very easy stuff I want (pass a variable), but in phpdev (have
tried every version i found on the net) i doesn't work, but in my
webserver (www.xyz.be) it works!!!! it give the good value through...

has anybody has a solution? because i need phpdev to work (i go on
holiday a need to finish some stuff)

thx
geronimo

Jul 17 '05 #1
3 1620
On 25 Jun 2005 10:34:09 -0700, "geronimi" <we******@hotmail.com> wrote:
<td width="82%"><?php echo $naam; ?></td>


http://uk2.php.net/register_globals
http://uk2.php.net/manual/en/languag...predefined.php
http://uk2.php.net/manual/en/faq.mis...egisterglobals

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
Well, from what i can see
you've got
<td width="76%"><input type="text" name="name"></td>

but here you have

<td width="82%"><?php echo $naam; ?></td>

i don't know if that was a typing error while typing on to the newsgroup,
but it'd probs worked if you changed the input name to naam.
eg.
<td width="76%"><input type="text" name="naam"></td>
---
Kathryn (Fire Juggler)
http://www.firejugglers.34sp.com
http://www.cornwalljugglers.co.uk
"geronimi" <we******@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hi,

i use phpdev and I have a stupid problem.

I use a form and I want to pass a variable (name) from one page to
another (overview.php).

........
<form method="post" action="overview.php">
<table width="100%" border="0">
<tr>
<td width="24%">Name : </td>
<td width="76%"><input type="text" name="name"></td>
</tr>
<tr> ................

when I fill in something, the name variable will be passed when i press
the submit button, but the strange thing is, that it doens't pass
anything to overview.php !!!!

a piece of overview.php:
.....
<td width="18%">Naam van het bedrijf: </td>
<td width="82%"><?php echo $naam; ?></td>
.....
so it is very easy stuff I want (pass a variable), but in phpdev (have
tried every version i found on the net) i doesn't work, but in my
webserver (www.xyz.be) it works!!!! it give the good value through...

has anybody has a solution? because i need phpdev to work (i go on
holiday a need to finish some stuff)

thx
geronimo

Jul 17 '05 #3
<?php
if(!empty($_GET)) extract($_GET);
if(!empty($_POST)) extract($_POST);
?>

solved the problem!

thx lads!

Jul 17 '05 #4

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

Similar topics

2
by: webbedfeet | last post by:
Hi I hope someone can help me. I have a client side form validation script which works perfectly in IE but clicking "Submit" in Mozilla does nothing - the form won't submit. Is there something I...
17
by: stathis gotsis | last post by:
Hello everyone, I am tying to come up with an elegant way to process some input data that come from a form. When the user hits the 'Submit' button, i want the form to appear again with the...
7
by: h7qvnk7q001 | last post by:
I'm trying to implement a simple server-side form validation (No Javascript). If the user submits a form with errors, I want to redisplay the same form with the errors highlighted. Once the form...
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
11
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether...
4
by: Greg Scharlemann | last post by:
I'm trying to setup a dyamic dropdown list that displays a number of text fields based on the selected number in the dropdown. The problem I am running into is capturing the data already entered...
8
by: Phil Latio | last post by:
I've been creating an application over the last few weeks and generally pleased with what I have produced but one area is irritating me, form validation. At the moment the forms are simply...
7
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
26
by: Jerim79 | last post by:
I need to create a form that takes a number that the user enters, and duplicates a question the number of times the user entered. For instance, if the customer enters 5 on the first page, when...
3
uranuskid
by: uranuskid | last post by:
Hey folks, I was going to include a contact form on my website. Well, in the first place that seemed an easy thing to do with a form that prompts a PHP file validating the input vaiables and using...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.