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

can not receive data from the page

18
[php]<form name="form1" action="<? $_SERVER['PHP_SELF'];?>" method="post">
<input type="submit" value="add" name="ram" onClick='window.open("data_added.php", "", "width=350, height=100, scrollbars=1"); cal("ram")'>
<input type="hidden" name="popup" value="popup_" />
function cal(i)
{
document.form1.popup.value = i;
}
</form>
/*********************data_added.php*************** *************/
<?
$popup = trim($_REQUEST['popup']);
//echo "popup = ".$popup;
switch($popup)
{
case "ram": $tbl = "tbl_ram"; break;
default: break;
}
if ($popup == "ram")
{$title = "Ram";}

if (trim($_REQUEST['btnEnter']) == "Add")
{
if (trim($_REQUEST['txtadd']) <> "")
{
$txtadd = trim($_REQUEST['txtadd']);
$result = "SELECT * FROM ".$tbl;
$query = "INSERT INTO ".$tbl." VALUES ('0','$txtadd') ";
if (!$query)
{echo die(mysql_error());}
}
}
?>[/php]
my coding can't show out in "data_added.php". may i know what happened?
thank you.
May 7 '08 #1
2 1164
Markus
6,050 Expert 4TB
You don't give nearly enough information on the problem, nor do you follow forum rules.

Please revise your post and i'll try and help.
May 7 '08 #2
ronverdonk
4,258 Expert 4TB
User keeps ignoring guidelines on using code tags. Has been warned 3 times. Banned for limited period.

moderator
May 7 '08 #3

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

Similar topics

0
by: Terence Parker | last post by:
I am trying to connect an e-commerce system to a payment gateway (located in Hong Kong). The gateway takes values in the form of a simple form submit - however, the results (i.e. authorisation...
3
by: Bruno G. | last post by:
Hello! Is it possible for IIS to send some sort of notification when an ASP error occurs on a page? I can see them in the web logs, but I was wondering if there was a way to receive an email...
1
by: Kitchen Bin | last post by:
Hi. I am trying to use Sockets to do multiple Send and Receives via HTTP (not simultaneously). A first pair of Send/Receives works fine and sure enough I receive HTML back, but the next...
6
by: Daniel Rimmelzwaan | last post by:
I want to send a biztalk document to an aspx page, and I need to see some sample code, because I just can't make it work. I have a port with transport type HTTP, pointing to my aspx page, something...
8
by: Jason | last post by:
Hi all I have a little FTP proggie. It works, on windows xp, but it doesnt work properly on windows 2000. The first problem i have, is when retrieving a list of files. int bytes =...
1
by: Laura T. | last post by:
Hi, I've this kind a program, using sockets to communicate with the clients. One of the clients can be a web browser (like IE). When using IE as a client, the transmission blocks completely, and...
1
by: rockdale | last post by:
Hi, all I am coding a asp.net application as user data entry and report interface. We also have another C#.net appplication (a server) does some other stuff, my webserver can send and receive...
4
by: finecur | last post by:
I am working on the project. Here is the work flow. server. The server will do some calculation based on the data in the file and return an image in Jpg format. The returned image will be...
16
by: s0suk3 | last post by:
I wanted to ask for standard ways to receive data from a socket stream (with socket.socket.recv()). It's simple when you know the amount of data that you're going to receive, or when you'll receive...
0
by: =?Utf-8?B?UmFqbmk=?= | last post by:
Dear William Stacey, I have written a server code using the Windows Socket API's. Wherein I have created the socket and bound it to a particular IP address and port number. Later I have made the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.