473,800 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with isset($_POST['submit'])

92 New Member
I tried using the isset() function in the system that I am developing. But for some reason, it just doesn't work. I've checked my code over and over but it idn't seem to have any error.

i used something like this:
[PHP]
if(isset($_POST['submit']))
{
include("insert _form.php");
}
[/PHP]

please help. it's really urgent. thanks in advance.
Dec 29 '07 #1
4 3879
hello2008
14 New Member
I tried using the isset() function in the system that I am developing. But for some reason, it just doesn't work. I've checked my code over and over but it idn't seem to have any error.

i used something like this:
[PHP]
if(isset($_POST['submit']))
{
include("insert _form.php");
}
[/PHP]

please help. it's really urgent. thanks in advance.
Hi,

Have you checked the form from where your request is coming ..does it have action = "post" or is it "get"? Also check the name of the submit button.. is it exactly the same as what you have put in isset()? Have you said <input type = "submit" name = "submit"> ? Check these things once again.. Also, try putting an echo -statement in your if-condition... just to be sure whether the control is coming inside if or not..
Dec 29 '07 #2
backups2007
92 New Member
it uses action="post".

And the button connected to the script is an input type button with a validation script.
Dec 29 '07 #3
hello2008
14 New Member
it uses action="post".

And the button connected to the script is an input type button with a validation script.
Hi,

First of all, I have mistakenly written action = "post", its method = "post" ... sorry.. my bad!

Coming to what you are saying.. well... I am no expert, but normally if you have only one submit-button in your form then it's input type is generally given 'submit' ..atleast from what I have seen.. try making the input type as 'submit' and see.. and let us know if it works!
Dec 29 '07 #4
Markus
6,050 Recognized Expert Expert
Yeh, i had this problem. If it's just a 'button' with then uses a javascript .submit() it won't be recognised in the isset.

I'm not sure what the solution is either.
Dec 29 '07 #5

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

Similar topics

1
7527
by: Jenkins | last post by:
I've loaded various thoughts I've collected into mysql. I want to write an app, all in one file, that has the following features: 1. On initial entry, selects and displays the thoughts ( might add pagination later - there aren't alot of records, for now.) 2. This main page includes separate forms near the top with submit buttons to search, add a thought, view all thoughts, etc. The action for each form is to call this same page. The...
2
3199
by: T.E. | last post by:
Hi all, I'm a newbie in php. I encounter a problem with php form that has only one textfield. If I click on the submit button, the form works fine. However, when I press 'enter', the form doesn't work right. After comparing that form with other forms, I noticed the problem
5
12412
by: lsarg | last post by:
i've been trying forever to figure out a way to use a regular text link in place of a submit button at the bottom of this. can't get it. i'm just starting to learn php, so i'm stuck. any help at all would be amazing. <?php # Script 12.7 - login.php // This is the login page for the site. // Include the configuration file for error management and such.
3
1481
by: Shelly | last post by:
I have come across a strange problem. I am setting up a registration screen with username, password, confirm password, and a couple of other things. The submit button is named "Submit". The others are named "username", "password", and "passwordConfirm". The problem is that when I enter a username and a password of 5 characters with nothing in the passwordConfirm field, I do not get the diagnostic echo messages that I have inserted. ...
1
25622
by: csj | last post by:
I'm having a problem with my PHP script. When the user arrives on my page there is an item for sale for them to buy. The user already has 200 points stored in their database row. I want it work so that when the user clicks on the "buy" button(only then) an mysql query is executed to update there points. I thought of using an "if (isset ($_POST)) {...." script, but I don't know what to make the else part of the statement +
4
4084
by: Ian Davies | last post by:
Hello I am struggling for a solution to clear some fields on my webpage that takes their values from some sessions My solution below works when the button is clicked twice. I sort of know why I have to click it twice to do the job (the first submit resets the sessions but this it too late to change the field values, which requires another submit to pick up the new session values). Problem is I cant think how to accomplish the resetting of...
0
1512
by: Akkad | last post by:
ok let met tell u what is the problem , i have downloaded the code GD library code from interent and when i am using it the picture is not appearing on the page. i don't know why ? i am using PHP 4.0.6 on Appache server under linux operating system. so plz if someone have an idea about the problem plz answer me. <?php
5
6577
by: jjeanj1 | last post by:
hi i have this script that i am writing that runs perfectly on a linux server but it will not run on windows at work. I am not sure why. It seems like i(isset(post) does not work on the server. Is this a configuration issue. Please help i tried just about anything. Here is my code below. <?php if(isset($_POST)){ //$date_value=$_POST; echo 'Month is:lala'; } ?> <form method=post name=f1 action="<?php echo $_SERVER?>"> <table border="0"...
2
3157
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error message as in alert box as " Internet Explorer cannot open the Internet site http://google.citycarrentals.com.au/viewalllocations.php . Operation aborted". It is working in Mozilla . Here i mentioned my code . I am facing this problem several...
0
9555
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10287
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9099
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7588
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6826
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5616
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4156
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 we have to send another system
2
3770
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2956
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.