Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-13-2005, 03:34 AM form problem
waller's Avatar
Skilled Talker

Posts: 59
Location: North Borneo.
Trades: 0
I have two problems here:

1. In a form, if i send a data, then suddenly if there's an error, I will need to press the back button. But suddenly, all the data entered before in the form were gone and I have to start all over again. Any idea on how to maintain the data?

2. I want to submit date in a form. as we know, the format will be yyyy-dd-mm, which means in a form, if I want to enter the date data '4th of July 2005', i have to type 2005-04-07. Any idea or codes on how to make this more friendlier?
__________________
$id ="waxxer";
$id = str_replace('x', 'l', $id);
echo $id;
echo " and Marj";
waller is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-13-2005, 10:46 AM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
Trades: 0
umm... try www.dynamicdrive.com for some javascript scripts that you can probably mod for php use.

Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 06-13-2005, 11:02 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
just have the form values map back to the POST array values.

I.E value="<?php $_POST['whatever']" ?>

You might have to echo that out but that should be your problem solved. I try and use javascript for this stuff though as you can make the client do the dirty work without having to submit to the server only to fail.

So javascript only returns true if all valid then the page submits.

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to form problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20147 seconds with 12 queries