473,770 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

loosing date in HTML form

hello,
as always i have a problem:-)

i'm using HTML form. User is adding some date to this form and after
that i'm generating plot. When plot is generated i can see en empty form
and a plot. I want to see filled in form and a plot. don't know why i'm
loosing all the data.

when user adds data to the form i'm doing something like that:

...index.php?op eration=added..

if operation=="add ed" then blablabla..

(of course its pseudocode).

waiting for somebody to solve my problem.
Jul 17 '05 #1
10 2063
Piotr Wolski wrote:
hello,
as always i have a problem:-)

i'm using HTML form. User is adding some date to this form and after
that i'm generating plot. When plot is generated i can see en empty form
and a plot. I want to see filled in form and a plot. don't know why i'm
loosing all the data.

when user adds data to the form i'm doing something like that:

...index.php?op eration=added..

if operation=="add ed" then blablabla..

(of course its pseudocode).

waiting for somebody to solve my problem.


When you output the form, set the value of the form element (eg text
box) to hold the value of operation.
Jul 17 '05 #2
Piotr Wolski schrieb:
when user adds data to the form i'm doing something like that:

..index.php?ope ration=added..

if operation=="add ed" then blablabla..

(of course its pseudocode).


...index.php?op eration=added..

if $_GET['operation']=='added' then blablabla..

(of course its pseudocode).

BTW, you're not "loosing" the data, you're "losing" it.

Regards,
Matthias
Jul 17 '05 #3
Piotr Wolski wrote:
i'm using HTML form. User is adding some date to this form and after
that i'm generating plot. When plot is generated i can see en empty form
and a plot. I want to see filled in form and a plot. don't know why i'm
loosing all the data.

when user adds data to the form i'm doing something like that:

..index.php?ope ration=added..

if operation=="add ed" then blablabla..

(of course its pseudocode).

waiting for somebody to solve my problem.


HTML
========
....
<form ...>
<input ... value="<?php echo $value_entered_ before; ?>">
<!-- with a bit of PHP ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^ :) -->
....
</form>
....
========

--
USENET would be a better place if everybody read: | to email me: use |
http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" |
http://www.netmeister.org/news/learn2quote2.html | header, textonly |
http://www.expita.com/nomime.html | no attachments. |
Jul 17 '05 #4
Matthias Esken wrote:
Piotr Wolski schrieb:

when user adds data to the form i'm doing something like that:

..index.php?o peration=added. .

if operation=="add ed" then blablabla..

(of course its pseudocode).

..index.php?ope ration=added..

if $_GET['operation']=='added' then blablabla..

(of course its pseudocode).

BTW, you're not "loosing" the data, you're "losing" it.

Regards,
Matthias

sorry for my english..
apologise to me cause till now i'm in usa about two weeks and i'm
learning english...my homecountry is Poland..

Jul 17 '05 #5
Andy Barfield wrote:
Piotr Wolski wrote:
hello,
as always i have a problem:-)

i'm using HTML form. User is adding some date to this form and after
that i'm generating plot. When plot is generated i can see en empty
form and a plot. I want to see filled in form and a plot. don't know
why i'm loosing all the data.

when user adds data to the form i'm doing something like that:

...index.php?op eration=added..

if operation=="add ed" then blablabla..

(of course its pseudocode).

waiting for somebody to solve my problem.

When you output the form, set the value of the form element (eg text
box) to hold the value of operation.


could you please explain it to me??
could you give me a simple example?
Jul 17 '05 #6
"Piotr Wolski" <wo****@cs.purd ue.edu> wrote in message
news:cd******** **@mozo.cc.purd ue.edu...
Matthias Esken wrote:
Piotr Wolski schrieb:

when user adds data to the form i'm doing something like that:

..index.php?o peration=added. .

if operation=="add ed" then blablabla..

(of course its pseudocode).

..index.php?ope ration=added..

if $_GET['operation']=='added' then blablabla..

(of course its pseudocode).

BTW, you're not "loosing" the data, you're "losing" it.

Regards,
Matthias

sorry for my english..
apologise to me cause till now i'm in usa about two weeks and i'm
learning english...my homecountry is Poland..


Co, pracujesz tu na czarno jako pragramista PHP? :-)

Jak czesto sie zdarza w tym newsgroupie, ten pan nawet nie przeczytal twoja
wiadomosci, zanim zasugerowal cos, ktore nie ma zadnego zwiazku z twoim
problemem. Po co rade komus dawac, skoro nie ma ochoty tym pomagac? No,
rozumiem wiecej o PHP niz zachowaniu ludzi...

A teraz wyjasnienie. Po tym jak uzytkownik zsubmitowal formularz, to, dla
przegladarki, juz zupelnie nowa strona. Wiec nie utrzymywa danych
wprowadzonych wczesniej. Sam muszisz wypelniac ten formularz. Np

<input type="text" name="liczba_du p" value="<?=$_REQ UEST['liczba_dup']?>">

Mam nadzieje ze to jest do rozumu. Polski oczywiscie nie jest moj jezyk
rodzinny.
Jul 17 '05 #7
Chung Leong wrote:
"Piotr Wolski" <wo****@cs.purd ue.edu> wrote in message
news:cd******** **@mozo.cc.purd ue.edu...
Matthias Esken wrote:
Piotr Wolski schrieb:

when user adds data to the form i'm doing something like that:

..index.php ?operation=adde d..

if operation=="add ed" then blablabla..

(of course its pseudocode).
..index.php? operation=added ..

if $_GET['operation']=='added' then blablabla..

(of course its pseudocode).

BTW, you're not "loosing" the data, you're "losing" it.

Regards,
Matthias


sorry for my english..
apologise to me cause till now i'm in usa about two weeks and i'm
learning english...my homecountry is Poland..

Co, pracujesz tu na czarno jako pragramista PHP? :-)

Jak czesto sie zdarza w tym newsgroupie, ten pan nawet nie przeczytal twoja
wiadomosci, zanim zasugerowal cos, ktore nie ma zadnego zwiazku z twoim
problemem. Po co rade komus dawac, skoro nie ma ochoty tym pomagac? No,
rozumiem wiecej o PHP niz zachowaniu ludzi...

A teraz wyjasnienie. Po tym jak uzytkownik zsubmitowal formularz, to, dla
przegladarki, juz zupelnie nowa strona. Wiec nie utrzymywa danych
wprowadzonych wczesniej. Sam muszisz wypelniac ten formularz. Np

<input type="text" name="liczba_du p" value="<?=$_REQ UEST['liczba_dup']?>">

Mam nadzieje ze to jest do rozumu. Polski oczywiscie nie jest moj jezyk
rodzinny.

robie pewien projekt tutaj. nie nie pracuje na czarno:) przyjechalem tu
na wakacje i wszystko jest zalatwione legalnie..

zadzialalo to z $_REQUEST...

jedyny problem jest gdy <input type="file" ..<--wtedy nie uzupelnia mi
formularza..mus ze wartosc ktora uzytkownik wybierza zczytac z tego pola
i dopiero zapamietac/ masz jakis pomysl?

btw. skad jestes ze znasz jezyk polski?

pozdrawiam, Piotrek
Jul 17 '05 #8
"Piotr Wolski" <wo****@cs.purd ue.edu> wrote in message
news:cd******** **@mozo.cc.purd ue.edu...
Matthias Esken wrote:
Piotr Wolski schrieb:
BTW, you're not "loosing" the data, you're "losing" it.

Regards,
Matthias

sorry for my english..
apologise to me cause till now i'm in usa about two weeks and i'm
learning english...my homecountry is Poland..


Why would someone need to apologize for teaching you something in a fairly
polite way? Would you prefer to continue using incorrect English?

- Virgil
Jul 17 '05 #9
Virgil Green wrote:
"Piotr Wolski" <wo****@cs.purd ue.edu> wrote in message
news:cd******** **@mozo.cc.purd ue.edu...
Matthias Esken wrote:
Piotr Wolski schrieb:
BTW, you're not "loosing" the data, you're "losing" it.

Regards,
Matthias


sorry for my english..
apologise to me cause till now i'm in usa about two weeks and i'm
learning english...my homecountry is Poland..

Why would someone need to apologize for teaching you something in a fairly
polite way? Would you prefer to continue using incorrect English?

- Virgil

is this PHP group or what??

virgil: ok you don't have to apologise..
Jul 17 '05 #10

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

Similar topics

5
3736
by: Dominique Javet | last post by:
Hello, I'm new to php and mysql and I use Dreamweaver MX 2004, so sorry for this "newbie" question... I've found no answer in the forum ... I've a date problem with my formular. In my mysql DB my filed "date" in table "experience" is like this: Y-m-d (2002-07-23). My fied`date` is date, NOT NULL with no default entry My form read well the date data depending the id, (pe. 30.02.2003), but when I submit a new date, I receive as result...
4
5390
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and calculate days, months, and years. This is not for a college course. It's for my own personal genealogy website. I'm stumped about the code. I'm working on it but not making much progress. Is there any free code available anywhere? I know it...
8
25389
by: dlx_son | last post by:
Here is the code so far <form name="thisform"> <h3>Enter time to add to or subtract from:</h3> (If not entered, current time will be used)<br> Day: <input name="d1" alt="Day of month" size=3> Month: <input name="m1" alt="Month" size=3> Year: <input name="y1" alt="Year" size=5> (4 digits for year, e.g.
26
4267
by: sgershon | last post by:
Hi. I know this is should be a simple question. I know server-side web-programming, and never needed to use client-side scripting... until now :) I have done so far a little number of scripts that work well. But there are two that I am having special difficulties with: 1)
2
2953
by: Kun | last post by:
I have an html form that takes dates and inserts them into a mysql file. Currently, users have to type in dates in the yyyy-mm-dd format. As of now, this process works with the sql. However, I would like to make this process easier by: 1) providing drop down menus for year, month, and date respectively. in a failed attempt, i tried made 3 drop down lists (dateyear, datemonth, dateday) respectively and then used string interpolation...
3
4495
by: Bob Sanderson | last post by:
I have a PHP web page which uses a HTML form. I would like to enter dates into the date fields using a JavaScript calendar, similar to the way phpMyAdmin does. Can anyone recommend a JavaScript that will do this? Also, how can I add a button to a form to enter a NULL. Thanks in advance.
1
4147
by: aRTx | last post by:
<? /* Directory Listing Script - Version 2 ==================================== Script Author: Artani <artan_p@msn.com>. www.artxcenter.com REQUIREMENTS ============ This script requires PHP and GD2 if you wish to use the
3
2030
by: jp2code | last post by:
When I collect the text from a form's text box, I am loosing the page breaks. When using C# in the past, I used this: string strLine, strParagraph; StringReader sReader = new StringReader(Request.Form); while (sReader.Peek() -1) { strLine = sReader.ReadLine();
3
5193
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
9617
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9453
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
10254
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
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
9904
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6710
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
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3
2849
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.