Some PHP help

Hi, I'm new to PHP, currently the following sets the end date
to the start date:
function afterSetDateValue(ref_field, target_field, date) {
if (date!="") {
var startDate=document.forms[0]["start_date"];
var endDate=document.forms[0]["end_date"];
if (target_field==startDate &&
checkDate(getDateValue(endDate))==0 &&
compareDates(date, getDateValue(endDate))>0) {
setDateValue(endDate, date);
("End Date was earlier than Start Date, it's now set to
Start Date.");
How do I make it so that if the start date is changed to a
date later than the end date, the end date is start date + 1? I'm
sure its a simple PHP, but like i said i'm learning!
Thanks

ferrarikid123 wrote:
> How do I make it so that if the start date is changed to
a date later than
> the end date, the end date is start date + 1? I'm sure
its a simple PHP, but
> like i said i'm learning!
It's not PHP at all. The script you have shown is JavaScript.
It's also
incomplete. You might get more help if you describe in more
detail
exactly what it is you're trying to do.
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/

Similar Messages

  • When I upgraded to Fire Fix 7X or higher some PHP pages I programmed do not work properly. Please see details below.

    I have some PHP pages I have programmed that do database inserts and updates. I am using Dreamweaver and an extention package called InterAkt MXKollection to enhance some features on the web page. In particular some fields on the page use what is called KTML Rich Text Editors. In Firefox versions 3X to 6X all the fields work for an UPDATE post to the database. When I upgraded to Fire Fix 7X or higher only the first RTE field posts any changes and the rest of the form fields do not post any changed content. I know this is a browser issue because it all works in IE 7 and 8 and when I uninstall Fire Fox 7X (and higher) and revert back to the earlier Fire Fox versions (6X and below) the page works correctly. Also there is a dependent dropdown menu set on the page and it too breaks from FF V7X and on. It seems that something in the browser is not allowing all the functions in my page to take place in the newer versions. I can provide proof if needed.

    Hi!
    We focus in end-user help. If you are having development questions, you will have better support in http://developer.mozilla.org

  • Php Help

    I have a site I have developed with Dreamweaver 8. The site
    has a mix of pages - some with the .html and some with the .php. So
    far everything works great. My home page was .html but I saved it
    over to .php and updated all the links (Dreamweaver did all of this
    for me). Now, I want to use some php code for a news feed. However,
    I keep getting the following two errors:
    Warning: main(): URL file-access is disabled in the server
    configuration in /home/content/s/u/s/sl/html/BMT/index.php on line
    139
    Warning: main(
    http://www.newsfeed.com/tools/steppatch_nc.asp?type=s&t=test&prov=keywords&cat=Business&ca t2=&num_articles=5&show_summaries=Yes&show_sources=No&show_dates=No&title=undefined&keywor ds=B%20Lns&url=&headers_size=12pt&title_size=10pt&title_bold=Yes&font_size=10pt&font_famil y=Arial&text_alignment=Left&space=Yes&titlecolor=%23000000&fcolor=%23000000&desccolor=%230 00000&sourcecolor=%230000FF&datecolor=%23999999):
    failed to open stream: no suitable wrapper could be found in
    /home/content/s/u/s/sl/html/BMT/index.php on line 139
    Line 139 is the closing tag of the php code.
    Can anyone help?

    quote:
    Originally posted by:
    brywilson88
    Warning: main(): URL file-access is disabled in the server
    configuration in /home/content/s/u/s/sl/html/BMT/index.php on line
    139
    Warning: main(
    http://www.newsfeed.com/tools/steppatch_nc.asp?type=s&t=test&prov=keywords&cat=Business&ca t2=&num_articles=5&show_summaries=Yes&show_sources=No&show_dates=No&title=undefined&keywor ds=B%20Lns&url=&headers_size=12pt&title_size=10pt&title_bold=Yes&font_size=10pt&font_famil y=Arial&text_alignment=Left&space=Yes&titlecolor=%23000000&fcolor=%23000000&desccolor=%230 00000&sourcecolor=%230000FF&datecolor=%23999999):
    failed to open stream: no suitable wrapper could be found in
    /home/content/s/u/s/sl/html/BMT/index.php on line 139
    Directly accessing URL's is forbidden on your server.
    Therefore you cannot pass a URL as an arguement to a function. This
    is a common security setting and you will probably need to use CURL
    to get the data from the external URL and then pass the input to
    main().

  • Wifi works poorly on my brandnew ipad2. can some one help me or shall I return it to the store?

    Wifi works poorly to none on my brandnew (three days old) ipad2.
    The same Wifi connection works perfectly with my PC laptop.
    Can some one help me or shall I return it to the store?

    Try here...
    Apple - Support - iPad - Wi-Fi

  • SOME PLEASE HELP ME I DONT KNOW WHAT TO DO.....(M-audio)

    SOME PLEASE HELP ME I DONT KNOW WHAT TO DO..... SO I RECIEVED MY M-AUDIO MOBILEPRE SOUNDCARD. I CONNECTED THE USB TO MY MACBOOK (2009-2010) AND I CAN CHANGE MY COMPUTERS OUTPUT TO THE M-AUDIO MOBILEPRE... SO IT SHOWS ITS CONNECTED. NEXT I DOWNLOAD THE M-AUDIO MOBILEPRE DRIVER IT CAME WITH IN THE BOX AFTER THAT IT SHOWS ITS CONNECTED ALL GOOD....BUT WHEN I DOWNLOAD THE DRIVER "M-AUDIO MOBILE PRE USB" I PLUG IN MY SPEAKERS AND IT SAYS "UNABLE TO CONNECT TO M-AUDIO MOBILEPRE. IS IT TURNED ON?" AND ITS OBVIOUSLY TURNED ON AND CONNECTED......SO MY COMPUTER READS THE SOUNDCARD BUT IT WONT LET ME CONFIGURE THE SOUND SETTINGS IN THE "M-AUDIO MOBILEPRE USB" DRIVER ....WTH IS M-AUDIO MOBILEPRE THE SAME THING AS M-AUDIO MOBILEPRE USB???? IF SO HOW DO I CONFIGURE THE SOUND SETTINGS IN MY COMPUTER!!!

    Contact M-Audio support, I suspect they will have further information that you need rather than this forum.

  • I've twice tried to use iTunes match. It stalls in step 2. I've rebooted my Mac computer and still stalls. Apple's taken the $25 but not delivered the service. Can I get some personal help?

    I've twice tried to use iTunes match. It stalls in step 2. I've rebooted my iMac computer and it still stalls. Apple's taken the $25 but not delivered the service. Can I get some personal help? There are 12,733 songs, a few dozen of which are not going to be in the Apple music library because they are unique to my collection. Also, some titled "Track XX" and no artist. I assume these would either not upload or else just be uploaded. But, after an overnight of step 2, the iTunes match program was still on song number 7384 or 12733 (it was on that number for over 12 hours). Looking in the music library, activating the iCloud icon and status fields, there were hundreds of songs with the status "waiting."

    Lmwilliamson wrote:
    Kernel panics:
    After taking my late 2009 15 inch macbook pro to the apple store, the genius completely erased my computer and reinstalled the Mac OS X software, but the problem still persists. 
    I also took it to my college tech support center, they tried to take the ram out and reinsert it and clean up the dust, but the problem still remains.
    I am able to use my computer in Safeboot mode (only)
    Well it could still be a software problem if you installed a third party program after the OS X wipe and install, because by booting into Safe Mode it disables certain functions of OS X and hardware. Check for updates or problems for all your third party software, include everything, including menulets, System Preference panes, hacks and so forth.
    If you restored any sort of software from backup like TimeMachine, it likely was corrupted data and now is returned.
    If the college tech support found a lot of dust clogging the rear exhaust vents behind the fans, then likely the heat damage done to the machine has already occured and can't be reversed. Video cards are usually first to go, which Safe Mode does disable the video card somewhat.
    Run through this list of fixes, it's systematic in nature, also has a Hardware Test to see what's going on
    ..Step by Step to fix your Mac
    Too bad this is occurring to a mere 4 year old machine, but dust will do that. Here is the culprit that Apple doesn't tell anyone about.

  • Hello can some please help I am trying to watch my HBO go on my apple tv I have sound not picture. I can watch my iTunes videos and youtube so I know it works. it is working

    Hello can some please help I am trying to watch my HBO go on my apple tv I have sound no picture. I can watch my iTunes videos and youtube on my airplay with my ipad and everything is updated so I know it works. But not on HBO go, Max go, showtime go.

    What you want to do does not work with an iPd running iOS 5. See the screenshot.
    The latest update for HBO GO does allow for AirPlay on Apple TV - sound and video - but only on devices running iOS 6 and Apple TV running 5.1.1 or later - according to the app description.

  • Report Scripts - Please Can Some One Help Me

    Hello Gurus,
    Is it possible to display 2 members of the same dimension in adjacent columns using Report Scripts? if not what is the best available option?
    Consider this Sample Outline
    +Product
    +-Cofee
    +---Cafined
    +-------1100
    +-------1200
    +---Decafined
    +-------1300
    +-------1400
    +-Soda
    +---Coke
    +-------1500
    The format of the desired report is
    ======= Jan Feb Mar
    1100 Cofee 8 8 8
    1200 Cofee 8 8 8
    1300 Cofee 7 7 7
    1400 Cofee 7 7 7
    1500 Soda 6 6 6
    ================
    Please Can some one help me in this regard!
    Thanks In Advance

    If I remember correctly when I wanted to do something similar I imported the report with the level 0 members into SQL Server and then joined on a mapping table (was a parent/child table in our case) to get the other column. In our situation we already had the mapping table readily available because this is where the dimension was built from!

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

  • I need help with something could some one help me with installing windows 7 on bootcamp 4.0 with iMac 2.8 ghz model

    could some one help me with something important i have a 2.8 ghz intel quad core Imac with 10.7 with bootcamp 4.0 but still getting that black screen while trying finish the install of windows 7 etc. or do i need a new mac for it to work properly

    This might help point you in the right direction.
    http://support.apple.com/kb/HT4818
    Hope it helps
    Also google it and lots of results come up including youtube clips....

  • Please does anyone knows how to delete the "others" on the iphone becuase it take me a lot of spaace and i cant have anything i have 5 GB of othres coan some one help me please?

    please does anyone knows how to delete the "others" on the iphone becuase it take me a lot of spaace and i cant have anything i have 5 GB of othres coan some one help me please?

    If restoring using your backup didn't work, you'll have to save as much of your data as you can (import your photos to your computer, sync your contacts and other data with iCloud, email things like Notes and Voice Memos to yourself, sync with iTunes to transfer all your purchases, etc.) and then restore it as new without using your backup.

  • I have garagaband for iOs in my iPhone 4S, I connect my squire iOs guitarr to the iPhone, I select a Guitar Amp at the GB app then I Only can tune the guitar but I m not able to make the guitar ring with the amps. May some one help me?

    I have garagaband for iOs in my iPhone 4S, I connect my Squire iOs guitarr to the iPhone, I select a Guitar Amp at the GB app then I Only can tune the guitar but I m not able to make the guitar ring with the amps. May some one help me?

    You got the new iphone?????   I have same problem.  I transferred audiobooks to device to find no audiobooks on device (despite it being in iTunes as if it was).  Have you found a solution?????   I even tried to change import settings on format transfer but hasn't worked. 

  • HT201210 In the attempt of updating the latest itune software, i am faced with the problem of not being able to be connected to itunes with my ipod touch that is blocked living the USB cable and the itune icons on my touch sceen. Can some one help me out

    In the attempt of updating my ipod touch, i am  faced with the problem of not being able to be connected to the itunes in my computer (windows xp ) because my ipod touch got blocked up, leaving the icon of USB cable and itunes on my touch screen. I am asked to restore my ipod first, but i have tried using all the examples stated and still can't help. Please please, can some one help me out ? Ones  in the process of trying, i see an error code: 1656 and most of the time nothing. Thanks

    See if placing the iPod in Recovery mode will allow a restore via iTunes
    Next try DFU mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    You can also try another computer to help determine if you have a computer or iPod problem.

  • I HAVE A MAC BOOK AND I CAN GET TO WORK THE CD 1 IT DOESN'T READ AND ONLY APPEAR A ICON LIKE A FOLDER WIR ONE QUESTION MARK, CAN SOME BODY HELP?

    I HAVE A MAC LAP TOP MAC BOOK AND  WANT JUST TO REINSTALL THE SOFTWARE I DONT CARE ABOUT MY FILES I HAVE BACK UP BUT WHEN I INSERT THE DISK VERSION 10.5 WHICH COMES WITH MY COMPUTER DOESN'T WANT TO READ I HEARD THA IS TRYING BUT NOTHING,
    CAN SOME BODY HELP ME...

    There is a possibility that the disk drive could be broken, if it just spits it back out that usually means its toast. If your MacBook has a Core 2 Duo processor, you can install Lion (via a thumb drive not disks). Here is a link to the Lion thumb drive.You can also still order them for $19.99 by calling 1-800-MY-APPLE. Also you can borrow an external disk drive and try the Leopard disks that way as well.
    Good Luck!

  • I have to make a catalouge for my services as a financial planner.. earlier i used to do in MS publisher.. now i have a mac book.. can some one help me with some software info with which i can design a catalogue??

    I have to make a catalouge for my services as a financial planner.. earlier i used to do in MS publisher.. now i have a mac book.. can some one help me with some software info with which i can design a catalogue??

    Depending on what your needs are, you may use Pages included in iWork or purchase it separately (usually there is an evaluation copy with any new mac, I guess) or try other publishing apps. I once used MS Publisher, I remember it was something like a more sophisticated word processor, right?
    You may try the cheaper DTP iCalamus or Word for mac.

Maybe you are looking for

  • My hp pav p7-1240 doesn't output to my monitor after i wake it up

    I bought a new desktop (HP Pavilion P7-1240 ) just over a month ago because my previous one died. I am still using my old monitor that works fine. The last couple days however, I have woken my computer up and it seems as though it will not output any

  • Purchase high value assets by cash

    Hello Team, My client requirement is : Purchase high value assets(land) by cash but wants to show deffered payments in cash through installments but wants to show full value in balance sheet Can u please suggest me how to solve this problem. Regards,

  • Internal Error when selecting xmlelement in xsql

    Hi, this query: select vxi."aid" , xmlelement("date" , xmlattributes( to_char (vxi."online-publ-date",'dd') as "day" , to_char (vxi."online-publ-date",'mon') as "month" , to_char (vxi."online-publ-date",'yyyy') as "yr") ) "online-publ-date" from pts_

  • About the sample xmla2a.jar

    Greeting#, I downloaded the xml sample file 'xmla2a.jar' from Oracle website, but I don't know how to use it, who can help me, thanx!

  • I need help retrieving music from my computer at work............urg!!!!

    I just recently had my ipod (30gb video) replaced because it was damaged. The new ipod that i got was obviously updated to the newest version, now i cannot put the itunes music library that i have from work on my new ipod. I am so frustrated! i have