Date Picker Control
Want some help in embedding Date picker control in my php script.
I have a box where users can enter date, but I want to modify it so that user can click on the calender displayed next to the box and the date selected will be displayed in the box. Any clues how this can be achieved in PHP.
View Complete Forum Thread with Replies
Related Forum Messages:
Date Picker!
Im in the middle of a building my 1st Php Website (just for education ) and need Help with a Datepicker, What i need is either Javascript or an Easy Way to do it in php.. I did make a Quick Pull Down menu that put in the next 7 Days but I dont know if its dreamweaver or what but when i tried to copy it to another page it got corrupted & the php and shows the actual php code and not the Resulting Date? so although my scruffy attempt works im sure there is a better way using a real Datepicker.. what i need is a Picker that shows this in the forms box when date selected:- Day - Date - Month Year ie ("Saturday 4th Feb 2006").
View Replies !
Calendar/Date Picker
I have searched for hours on end trying to find the perfect calendar. I would like one that: 1. Displays the selected date into drop-down boxes e.g 1 for day, 1 for month and 1 for year. 2. These drop down boxes can then be saved to database 3. Anything else goes really, as long as it looks good.
View Replies !
Calender / Date Picker Script
I have been looking for a script to display a calender / date picker within my web page to be able to select a date from. Different from the ones I have found, I want to be able jump back and forward through months / years without having to reload the page. I guess this will probably done using somthing client side such as javascript or CSS? Can anybody give poitn me to one or give me something to start from?
View Replies !
File Picker
I am needing a pop-up window to select a file and have its path and file name pasted in a form field. Very similar to a date picker, but for files within a network. Does anyone know any javascript or PHP code that I can use ?
View Replies !
Time Picker
I am working on a project where the user need to record events that had taken place for examola: date_of_event eg 31-01-2006 (dd-mm-yyyy) time_ of_event eg 03:15 pm (hh:mm) I had seen and used script where I can pick a date date picker but (may there is) I had not come across a tume picker.
View Replies !
Only Time Picker
Can someone give me a url of a time picker? I found a lot of date/time picker but no timepicker alone. I just want a time picker.
View Replies !
File Picker For Input
I posted something about this originally in the javascript forum, but I think it would have been better suited here. Guessing php for the file/directory browsing and js to pass the value to the form. I have a form and on that form is an input field that needs a path & filename. I'm afraid the user will mistype when entering, and would like for them to beable to use a file picker to browse the directories and select the file, passing that value to the input field.
View Replies !
Control CSS
i would like to add a function to my site that allows users to change the style e.g font size and colour etc and then be able to log on at another time to activate their style or create new ones, can anyone help with the best way to approach this.
View Replies !
PHP Control
like the javascript "document.Form1.text01.value = "Y"". Eg. allow me to put a value into a form text field on page load. Either I missed this in my PHP book or the function does not exist. <input type="text" value = "<? echo sprintf("%01.2f", $TotalCost);?>"/>
View Replies !
Get The Todays Date- Yesterdays Date And Tomorrows Date
I get the todays date- yesterdays date and tomorrows date, like so: $yesterday = date ("Y-m-d", mktime (0,0,0,date("m"),(date("d")-1),date("Y"))); $tomorrow = date ("Y-m-d", mktime (0,0,0,date("m"),(date("d")+1),date("Y"))); $actualdate = date("Y-m-d"); Which returns the date in the format "200-11-13" But I need to add 13 hours to all three - how owuld I do this?
View Replies !
Control Query
I am trying to work on this url query control (people messing around with the query on the address bar) that i can to my script. Baiscly i have 3 choice that are linked from the web page. So you have file.php?choice=1, file.php?choice=2 and file.php?choice=3. I have managed to find a way were if choice="" so if some one messed around and removed the number then it would perform a default action such as "$choice =1". How can i redirect the user if any other option (obviously an incorrect one is used). Example file.php?choice=12 which doesnt exist. Id like it to go to a default like the case above. I had an attempt at it but i didnt work. Does any one know a way around it?
View Replies !
How Can I Control My Printer
I have some problem with printer... How can I control my printer wiht php. I can print my record to invoice preprint form with vb or c++ but with php+mysql I have no idea.
View Replies !
Ad Control Through Script
I would appreciate your advice on the following problem: Situation-Running Website through Drupal CMS connecting to a Mysql database on another server. Noticed a slight time lag in page loading possibly due to database being on another server, running CMS and using shared hosting. Objective-Want to serve two different ads and minimize any extra time lag in page loading or ad serving. Option 1(if possible)-Creating a small php or javascript, something like this: if ip="a.a.a.a" serve ad <a href>Matching</a> if ip is not equal to "a.a.a.a." serve ad <a href>Not Matching</a> Option 2-use some pre-built script like phpadsnew which would require using another database for ad serving. Phpadsnew has some good options for targeting but I am concerned if this may slow the pages and ads especially for users not having high speed internet access. Please provide your opinion and if possible an example of option 1 or should I just go with option 2.
View Replies !
How To Get Rid Of Control M Character
I'm using PHP code to develop a www interface to let users edit text files stored on a Solaris UX server. Users are using Windows based WWW browser access this web site. Once they have selected the file they want to edit, it's presented in a text window (form) so thay can modify the file. The submit button passes the contents of the field to a variable and it is saved to disc. From the WWW interface everything seems OK, but when I look to the file, each line has a "^M" (control-M) at the end. This makes the files bigger and it can cause problem in a near future because these files have to be processed by shell scripts to populate a mySQL DB. Someone has seen that before and what was the solution.
View Replies !
Control Structures
I was just wondering. Im submitting a form, using this code: if ((!empty($_POST['Name']) || !empty($_POST['E-Mail']) || !empty($_POST['Question'])) { code... } What im testing for is if name, email or question is set, do the following. But it is not working, do I have the syntax right?
View Replies !
While() Control Structure
I'm trying to insert a unique UserID into my database. To do this I'm using the substring to get the first letter of the first name, then substring to get the first 8 letters of the last name, and then I want to append the concatenated string with 1, or if that is taken, the next hightest available number. But I'm having a heck of a time getting it to work. I had it working at one point for a single name, but it wouldn't deal with duplicate names, I'm pretty mixed up as to why it doesn't work now. The code:
View Replies !
Control Panel
Im trying to create a control panel for my site. I want to create a script for creating pages. So something like... I have a form with 2 fields. Where I want to create the new page and what information i want in the file. Then it creates the file with the information in it. Any ideas how I would do this?
View Replies !
Mysql Control
I am currently using phpmyadmin to upload .txt files into the db using sql which look something like this LOAD DATA INFILE 'data.txt' INTO TABLE tmp LINES TERMINATED BY ' ' INSERT INTO data SELECT SUBSTR(str,1,6), SUBSTR(str,7,20), FROM tmp; Now is there a way to write some coding to run this command in web browser using php so that I don't need to manually go into phpmyadmin to type all of these into the sql?
View Replies !
Calendar Control
Can anyone give recommendations for a simple method of inserting a small, neat, pop-up calendar control into a php page?
View Replies !
Textarea Control
<input class="bginput" type="text" name="keywords" size="15" value="enter your text here ..." onFocus="if (this.value=='enter your text here ...') {this.value=''}" onBlur="if(this.value=='')this.value='enter your text here ...' "> what will the code look like if i want the 'textarea' do somthing like the above code did to the 'text'.
View Replies !
Can't Control Form
I have a problem with a form using POST which is driving me nuts. When I put <br><br><br> in one of the fields and hit submit I seem to lose all control of the form and the root public_html page of my (shared) server appears. I can't seem to 'trap' what's going on. The rest of the file is fine. The page reloads nicely and I can do validation, escape special characters, etc. I have error messages appearing nicely. I only get this odd problem when putting HTML in the fields. I have put little echo "got here"; statements here and there in the code to try and determine exactly how the flow is going. However I can say with some confidence that as soon as the form is submitted the browser redirects from (for example), old_newbie.com/old_newbies_project/form.php to old_newbie.com. Is there perhaps an environment variable or some php setting which is causing this?
View Replies !
Buffer Control
PHP Code: $query = mysql_query("SELECT * FROM `full` ORDER BY `id` ASC "); echo "Please wait"; while ($row = @mysql_fetch_array($query)) { echo $row[title]; sleep(2); }
View Replies !
Htaccess/.pwd Control
If I don't want to implement a login page, but only. htaccess security control from Apache server. is there any way to get the id/pwd data in a php script to redirect the identified guy into his own area?
View Replies !
Control Process
i'm looking for a way to: 1. start a new process (exec(), proc_open(), popen(), whatever()) 2. sleep(some_secs); 3. if the process is still running, kill it. 4. otherwise, go to 1. any ideas on this?
View Replies !
Access Control
I created a website for our college radio which is held on a server outside the college framework. As well as all the usual public stuff it also has a studio management area which gives presenters access to such things as the register, notes and reading the requests. I want to make it so they can only access this area when they are using the computer in the studio, which is part of the college network. At the moment I've had to use a very basic system where they have to upload a file to the server to be checked, which is held on a floppy on the studio machine, but obviously this is far from foolproof. Getting the IP obviously wouldn't work as it would just get the college's IP address which would show as the same for every computer in the college.
View Replies !
Page Control
Trying to read through all the manuals to determine how control is returned to the calling page for the following scenario: Code: <form method=post action=myproc.php> Code: header(Location:mypage.php)
View Replies !
Inventory Control
I am creating a webstore and i want it to do inventory control for me after the consumer checks out from the shopping cart. Any suggestions as to what would be the easiest or most reliable way to do this?
View Replies !
Session Control
i want to create a management area but finding it hard to direct the user to that page is there any good tutorials. i have started a session control but i want to make it so only a manger can get to one area.
View Replies !
Access Control
Based on some info on this newsgroup, I'm trying to password protect a directory of both PHP, HTML, and image files. The web server is Apache 2 and PHP is 4.4.4. I created this .htaccess file RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} !^accesscontrol.php RewriteRule ^(.*?)$ accesscontrol.php?file=$i&%{QUERY_STRING} [NC,L] and then, just to check to make sure requests were hitting hte accesscontrol.php file, I created accesscontrol.php to look like below: <?php header('HTTP/1.0 401 Unauthorized'); exit; ?>
View Replies !
Session Control,
I've this problem getting the session variable on the next page. on login, i have this code to set the variables. PHP Code: <? Â Â Â Â Â Â Â Â ob_start(); Â Â Â Â session_start(); Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â session_unregister('login'); Â Â Â Â session_unregister('name'); Â Â Â Â session_unregister('id'); Â Â Â Â $pg = trim($_GET['pg']); Â Â Â Â if (isset($_POST['p_em'])) Â Â Â Â { Â Â Â Â Â Â Â Â $_SESSION['login'] = trim($_POST['p_em']); Â Â Â Â Â Â Â Â $_SESSION['name'] = trim($_POST['p_fname']) . " " . trim($_POST['p_lname']); Â Â Â Â Â Â Â Â $_SESSION['id'] = trim($_POST['p_id']); ...
View Replies !
PHP And COMM Ports? X10 Control?
Can I use PHP to talk to comm ports and thus control external devices? I have never seen anything along this line of discussion. If anyone can point me towards any information I would be appreciative.
View Replies !
Question On Flow Control
I am having some trouble with the execution of IF statements and I wondered if any one could give me a hand in debugging it please. I thought or I assumed that what ever goes inside the IF statement executes only if the IF condition is true. In my case I have a parameter $index passed as value to a popup page, the popup page contains the IF Statements which is supposed to execute depending on the value received from the $index. It is executing but with errors from the other IF statements. What I don’t understand is why is it executing or entering the IF statements when the condition is not true. Here is the code: (Just for information I’ve even tried replacing it with Switch Statement, it is executing well with no errors but I don’t have the image. Which is the best way to do, should I Use IF or SWITCH?
View Replies !
ImageTTFText/size Control
lets say I have bg white.jpg 1px x 1px Lets say I have a text that says "Kingston or Infineon" What I want to do is to fill the BG, apply the text then make it transparent, I want the image size to be same as text size W and H. Or is there a better way to make the text quality better? bitmap fonts, 8px or 5px sizes... PHP Code:
View Replies !
PHP Switch Control Structure
I’m testing this control structure to serve content based on a variable but the square brackets are a problem… any suggestions? <? switch ([VAR_NAME]) { case 'FOO': echo 'wooo' break; default: echo 'whoo' } ?>
View Replies !
Printf() With Control Character
I'm trying to write a rotational symbol in a CLI process, to report activity to the user console, using printf( "%s", symbol ); but I see the control character () is been printed out instead of backspacing. Is there any work around ?
View Replies !
Control Structure (Basic)
I'm basically creating a chart system, where new entries into the chart are highlighted via a change in the background colour of their HTML table row. The problem I have is that the following code generates a "Parse Error", please can someone tell me where I'm going wrong? --------------------------------- $tablecolor = "000000" if ($lastweek = "NE") let $tablecolor = "0000ff"; --------------------------------- The error comes in the "if....." statement line.
View Replies !
Coding Standards Without Control?
A recent poll asked if programming standards are used by development organisations... and if they are controlled. None: 20% Yes, but without control: 49% Yes, with control: 31% Participants: 369 A majority of the participating organisations have coding standards... and a majority does not control them ;o) What is the situation at your location?
View Replies !
Creating Log On/Session Control
i am trying to do a simple log on for a project i've been working on but i'm having trouble with a line of code. One one of r the last lines of the PHP i have an error. The line is down the bottom of the first code (//$db_conn->close() If i comment it out and put in the correct details i am still not getting the correct respnce. Instead i'm getting the else statement down near the bottom of the second part of code, else { // they have not tried to log in yet or have logged out echo 'You are not logged in.<br />' } PHP Code:
View Replies !
Control On Upload Function
I allowed user to post a project for bidding and allowed user to upload file. If user didn't upload file, shouldn't display upload failure. Means, user can post a project without upload any file. How do I control the upload function here? PHP Code:
View Replies !
Process Control Problem
I need to process some computation but i do not want the user wait the end of the computation but instead i would send the user a "wait refreshing page". When the computation is finished i would replace the refreshing page with the new page containing the results. So i need 2 processes one that would make the waiting page and one that would do computation and make the results page. I read in the php manual that handling processes within a web server environment could raise problems. Is there a simple and a clear manner to solve this problem?
View Replies !
Can I Control The Width Of Tk_messageBox?
I have below tk_messagecode: tk_messageBox -icon info -type ok -title "About Test Item " -parent $w -message "preddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddd_tes t" When I run it it always was displayed in multiple lines. It seems the width of the message box cannot be controled. Can I control it to use my prefer width and don't get carriage return automatically?
View Replies !
Which Version Control System?
we are thinking of using a version control system at work. I was wondering what are some of the issues we should take into consideration when deciding upon which one to use? and which one/s you would recommend?
View Replies !
Web Hosting Control Panel?
How do web hosts make the control panel for web hosting? I want to do this for my company, make myself rather then use. But are there any examples of detailed ones. I know some of if, like adding/editing the SQL DB's etc...but what about editing the email users and Web Properties of the hosting in Apache/IIS 5 etc. are there any freeware versions i can download and analyse?
View Replies !
How Control Struct Evaluate
$PHONETIC is an array of strings. How can !$PHONETIC['d'], in the case below, evalutae to true. It is a string not a boolean. It would make more sense if it evalutated to null. <?php $PHONETIC = array('a' => 'alpha', 'b' => 'bravo', 'c' => 'charlie'); if(!$PHONETIC['d']): echo 'true' else: echo 'false' endif ?>
View Replies !
Help With PHP Process Control Functions
I have written a script that basically sends an email (using sockets). I want this script to be able to run multiple copies of itself so that it doesn't have to wait for one mail sending to finish before starting on the next. I understand that I need to use the PHP pcntl_ family of functions to control the processes, but am not sure where to start. There aren't many helpful articles on the internet about this topic! Any example code or help would be greatly appreciated.
View Replies !
Headers Cache Control
I have finished redeveloping a site, reuploaded it and the client is complaining of not being able to see the new site yet. If they Ctrl + F5 they would see it, but are concerned that if some of their clients dont know its a new site, how shall they see it? I have put the following at the top of the index header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); Will that override the browser settings?
View Replies !
Version Control System
I am not sure this is in the right section so feel free to move it if you need to. I am looking for a web-based version control system script. Basically, I need to be able to have users check files out so that no one can download a certain file until the person who checked it out submits a new version of it or if the admin sets it as lost. I cannot use SourceForge because my project is not open source. Also, I cannot use Subversion or similar system because I do not want to give anyone SSH/Telnet access. There are companies that offer this service, but cost way too much money for something simple like I need. Does anyone know where I can find such a script? I don't care if it is PHP, Python, CGI, etc as long as it works the way I need it to on my own server.
View Replies !
|