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

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?operation=added..

if operation=="added" then blablabla..

(of course its pseudocode).

waiting for somebody to solve my problem.
Jul 17 '05 #1
10 2034
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?operation=added..

if operation=="added" 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?operation=added..

if operation=="added" 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
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?operation=added..

if operation=="added" 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?operation=added..

if operation=="added" 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..

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?operation=added..

if operation=="added" 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.purdue.edu> wrote in message
news:cd**********@mozo.cc.purdue.edu...
Matthias Esken wrote:
Piotr Wolski schrieb:

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

..index.php?operation=added..

if operation=="added" 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_dup" value="<?=$_REQUEST['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.purdue.edu> wrote in message
news:cd**********@mozo.cc.purdue.edu...
Matthias Esken wrote:
Piotr Wolski schrieb:

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

..index.php?operation=added..

if operation=="added" 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_dup" value="<?=$_REQUEST['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..musze 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.purdue.edu> wrote in message
news:cd**********@mozo.cc.purdue.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.purdue.edu> wrote in message
news:cd**********@mozo.cc.purdue.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
"Piotr Wolski" <wo****@cs.purdue.edu> wrote in message
news:cd**********@mozo.cc.purdue.edu...
jedyny problem jest gdy <input type="file" ..<--wtedy nie uzupelnia mi
formularza..musze wartosc ktora uzytkownik wybierza zczytac z tego pola
i dopiero zapamietac/ masz jakis pomysl?
Hmmm. To nie jest mozliwe ze wzgledu na bezpieczenstwo. I nie ma sensu
ponownie przesylac plik, bo masz juz. Mozesz robic cos w rodzaju

<div id="filename">
<?=$filename?>
<input type="button" value="Change..."
onclick="document.getElementById('filename').style .display = 'none';
document.getElementById('upload').style.display =
'inline'" </div>
<input type="file" name="upload" id="upload"
style="display: none">

Uzytkownik widzi nazwe pliku co przeslano. A jesli chce przesylac inny plik,
klikuje na "Change" i dostaje pole typu file, ktora przed tym jest
niewidzialna.
btw. skad jestes ze znasz jezyk polski?


Studiowalem polonistyke na uniwersytecie (to jest w Stanach). Niestety,
wiedza o polsce w ogole nie oplaca. Wiec pracuje jako pragramista.
Jul 17 '05 #11

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

Similar topics

5
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...
4
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...
8
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"...
26
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...
2
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...
3
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...
1
by: aRTx | last post by:
<? /* Directory Listing Script - Version 2 ==================================== Script Author: Artani <artan_p@msn.com>. www.artxcenter.com REQUIREMENTS ============ This script requires...
3
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...
3
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
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.