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

Data not passed to PHP file after submit

I am a newbie in PHP. I am using PWS as my server. I enter data in
addToForm.html file and then click the submit button, but the
processForm.php file always indicate that the variables are empty. It
appears as if the data is not passed to processForm.php file. Please
help.
addToForm.html
<html>
<head>
<title>add to Form</title>
</head>
<body>
<form action="processForm.php" method="get">
Enter your name:
<input type="text" name="userName"><br>
Where do you live?
<input type="text" name="region"><br>
<input type="submit" name="submit">
</form>
</body>
</html>
-----------------------
processForm.php
<html>
<head>
<title>Process Form Data</title>
</head>
<body>
<?php
print "Thank you $userName<br>";
print "You live in: $region";
?>
</body>
</html>
-------------------
And the output is as follows.

Notice: Undefined variable: userName in
C:\Inetpub\wwwroot\visual\processForm.php on line 10
Thank you

Notice: Undefined variable: region in
C:\Inetpub\wwwroot\visual\processForm.php on line 11
You live in:
Jul 17 '05 #1
1 2345
Carved in mystic runes upon the very living rock, the last words of John of
comp.lang.php make plain:
I am a newbie in PHP. I am using PWS as my server. I enter data in
addToForm.html file and then click the submit button, but the
processForm.php file always indicate that the variables are empty. It
appears as if the data is not passed to processForm.php file. Please
help.


I don't know about PWS, but for IIS, file upload is not enabled by default.
You might want to inquire about that in an MS group.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #2

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

Similar topics

4
by: Nomen Nescio | last post by:
can anyone be so kind as to look at http://www.mysolution.ws/HYPOCRITE.php and let me know why it isn't passing the form data to http://www.mysolution.ws/insertHYPOCRITES.php for the most...
1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
3
by: Nicolas Keller | last post by:
Hi! I'm used to have Mozilla for testing my PHP sites when I'm coding. The site's nearly finished, now I've made a test with the Internet Exlporer... guess what... failed. The problem: I'm...
3
by: John Dunlop | last post by:
(Note crosspost and follow-ups to ciwah.) Nicolas Keller wrote in thread "Differences in form handling btw Mozilla and IE?": > The problem: I'm using a form that submit's (POST) its data via...
10
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
1
by: vinodkus | last post by:
HV TAKEN A DRON DOWN AND FETCH RECORD OF THREE COLUMN FROM A TABLE, AND I HAVE TAKEN A SUBMIT BUTTON.JUST I WANT TO SHOW ALL RECORD IN NEXT PAGE JUST SPLIT THEM AND STORIN IN AN ARRAY BUT IT GIVES...
19
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
8
by: Jeigh | last post by:
I did not write this script myself and am having a bit of trouble with it, it's working fine except it's missing the first piece of data for each page. This being data for each user. For example,...
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: 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
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: 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
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
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
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...

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.