Thank you Celauran, appreciate your help.
Your suggestion works for me.
Cheers,
Bengkel.
Search found 6 matches
- Thu Apr 12, 2012 9:49 pm
- Forum: PHP - Code
- Topic: how to passing variable php_self, with one time submit
- Replies: 9
- Views: 3699
- Thu Apr 12, 2012 4:53 am
- Forum: PHP - Code
- Topic: how to passing variable php_self, with one time submit
- Replies: 9
- Views: 3699
Re: how to passing variable php_self, with one time submit
Thanks for the tips, social_experiment. appreciate your help.
I found it very useful, since i'm just a beginner.
Regards,
Bengkel.
I found it very useful, since i'm just a beginner.
Regards,
Bengkel.
- Thu Apr 12, 2012 3:14 am
- Forum: PHP - Code
- Topic: how to passing variable php_self, with one time submit
- Replies: 9
- Views: 3699
Re: how to passing variable php_self, with one time submit
I just try changed the code into <form action="<?php echo $_SERVER['PHP_SELF']; echo $_GET['inputField']; echo $_GET['inputField2']; ?>" method="get"> <label for="DATE1">DATE1 </label><input type="text" size="12" name="inputField" id="...
- Wed Apr 11, 2012 10:55 pm
- Forum: PHP - Code
- Topic: how to passing variable php_self, with one time submit
- Replies: 9
- Views: 3699
Re: how to passing variable php_self, with one time submit
Hi social_experiment, Thank you for your answer, if you copy paste my coding, into try.php and running it, the form will display date1 with today's date and date2 with today date too, so i only have to click submit, i expect the result will directly become, try.php?date1=2012-04-12&date2=2012-04...
- Wed Apr 11, 2012 10:49 pm
- Forum: PHP - Code
- Topic: how to passing variable php_self, with one time submit
- Replies: 9
- Views: 3699
Re: how to passing variable php_self, with one time submit
Hi Celauran , Thank you for your answer,yes it is really only two fields in my form, so i can see what's wrong with the coding. when you suggest me to use _GET function, i change the code into <form action="<?php echo $_SERVER['PHP_SELF']; echo '?date1=';echo $_GET['inputField']; echo '&dat...
- Wed Apr 11, 2012 4:24 am
- Forum: PHP - Code
- Topic: how to passing variable php_self, with one time submit
- Replies: 9
- Views: 3699
how to passing variable php_self, with one time submit
Hello, I'm new member and newbie in PHP, i'm making php coding like this: (try.php) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body...