How to upload a dynamic website?

Hi All,
I have made a project on Netbeans 6.1 using JSF architecture and Apache Tom Cat 6.0.14. The database is Microsoft Sequel Server 2005. I want to host it on a website. I am prepared to purchase web space for web hosting.
What features should be available in the web hosting package? Is there any good company that provides it? This is the first time I am doing it. I have a rough idea that the .war file of the project is required. What files should be added on the web space that enables proper functioning? Any tutorial or references are welcome.
Thanks
Best Regards

1) You need to Buy Java Web Package.
2) Find Out Hosting Operating System ( Windows /Unix....)
3) Find out with the seller Which Webserver they are providing to you ( Jboss , Tomcat , Glassfish...)
4) Find out which DB they are providing to you
5) Based these parameters you need to change your developed projects if required other wise you can directly deploy
Regards
Vijay

Similar Messages

  • How to upload pdf to website with mac

    How can I upload a pdf to a website??

    I was just reading this, but this guy didn't fix his problem till the end of the thread.. However can you help me on how to implement at least the "uploadBean" class because he in his post showed only the jspx file and the "backing_uploadfile" bean. I understand I annoying you but I am new to this kind of stuff :) Thank you

  • How to upload the JSP website from localhost to host

    I have a JSP website that contains the declaration in connection to DB.
    But, when I upload the .war file to web host, the Apache show the error like
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Access denied for user 'root'@'localhost' (using password: YES)
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: Access denied for user 'root'@'localhost' (using password: YES)
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:461)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
         com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
         com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2934)
         com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)
         com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3348)
         com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1232)
         com.mysql.jdbc.Connection.createNewIO(Connection.java:2749)
         com.mysql.jdbc.Connection.<init>(Connection.java:1553)
         com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
         java.sql.DriverManager.getConnection(DriverManager.java:525)
         java.sql.DriverManager.getConnection(DriverManager.java:171)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:80)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    Access denied for user 'root'@'localhost' (using password: YES)The error message speaks for itself. The given user hasn't access to the database at the host and/or its password is wrong.

  • How to upload the file from website into R/3

    Dear Experts,
              I want to post the data in r/3 using bdc.but flat file is available in some website for eg.'www.sap.com'.how to retrieve the flat file from the website and how to upload the data from website to r/3.
    It is very urgent please help me.
    Thanks & Regards,
    Ashok.

    Hi Ashok,
        We cannot directly pulled data from website. we need to activate webservices and rfcs. Better you could asked to your Basis guy that he knows or not. If not then do sdn you will get the appropriate answer. I can only say that its possible and we can download from website.
    Regds,
    Rakesh

  • How to export my presentation and upload to a website

    hello every one
    I using adobe captivate 5
    I am doing some presentations on witch ones Im using some flv videos
    the problem is that when I click on the option publish on the app. I get several files
    ( .flv .swf .html and .js )
    I dont know what to do with this files and Im totally loss
    Can please PLEASE some body explain step by step what to do and how to do it ?
    or at least how to upload this files to a website.

    Hello.  When you publish your Captivate project, you will get at least three files.  The file with the .htm extension is the web page to which you must link to in your browser.  That web page will then play the file with the .swf extension.  The .swf file is the main movie for your Captivate project.  Your project evidently contains links to three Flash video files, the files with the .flv extension.  Since Captivate does not embed these .flv files, they are just linked to your project.  The file with the .js extension is a javascript file that enables your project to be launched when the user clicks the hyperlink to your .htm file.  The bottom line of all this is that all the files must be copied to your web server and must reside in the same folder.  The web page on your web server should link to the .htm file, which will open with the help of the .js file and play your main project menu in the .swf file, which calls in the .flv files when you get to the slide that contains the links to them.
    I hope all that makes sense.
    Mister C.

  • How to upload a crispy clear logo from illustrator to a website?

    Hello!
    I've read many articles about this but I don't seem to get a good result. Basically, I created a logo for my blog website (On wordpress) with illustrator. Now I would like to save or export it to upload on my website as a header, but every time I do, the picture isn't crispy clear and has some noise. I've visited countless websites with logos that looks 100% HD, but mine looks nowhere near that. I read it has something to do with save for web but I've tried almost all options (png, jpeg, gif etc.) but they're all the same result!
    What am I doing wrong and how do I get my logo to look really clear and HD?
    I am using Illustrator CC. Here is a picture of my logo with the art board tool open if that helps..?
    Thanks!

    I don't know how to get the sfw settings you mentioned. But I can provide a picture of how it looks like when I upload it to wordpress:
    Very distorted, with white dots or specs on the edges. Very unattractive This is the PNG format.
    I don't understand what you mean by problematic. Everyone else seems to draw using the same style and it looks great. I'm not trying to sound rude or mean, but this is frustrating because Illustrator is a PITA and if I had known it made zero difference to my art quality I wouldn't have drawn using vectors. I would have used MS Paint -_-  It would perfect the "pixelated" effect....

  • How I detect in a dynamic website either PHP or CFM or JSP that cookies & javascript are enabled ?

    How I detect in a dynamic website either PHP or CFM or JSP that cookies & javascript are enabled ?

    You do that on the browser end using JavaScript. For cookies, simply establish session variables in PHP or whatever you use. if the browser refuses them, they wil lreturn a respective value in the referrers...
    Mylenium

  • I need to know how I will create a dynamic website using php and mysql

    I need to know how will I create a dynamic website using php and mysql that people could have the abilities of registering in the website, and modify their profile where they can add their pictures and everything. apart from that, they should have the ability to search about other member. hope to here more from you.

    If you are a right-brained creative, and have no previous experience or propensity to be able to understand coding and database "stuff", and/or if your time can be better spent on other skills, I recommend you save your sanity and hire a developer... or at least the first time around. I have been attempting to grasp this for years... and have a library of marked up books to prove my efforts, all while trying to keep up with an ongoing client base that is always cramped. It's a wonder I still have my sanity... then again, I might not be the best person to determine that. Others might question it.
    That said, I still plan to master php... one of these days.

  • How do I monitor download/upload volumes by website

    I'm using NetLimiter to see which applications are using the net and how much each is downloading and uploading. From that I can see that Firefox, my main browser, is the biggest contributor. Is there a way of analysing FF download/upload volumes by website?
    == n/a

    The only extension found for this so far is
    https://addons.mozilla.org/en-US/firefox/addon/5917/

  • How to upload newsletter templates to website?

    I cannot figure out how to add newsletter templates to my website. I can download to file on my computer but cannot upload it to website and don't know where I should go to even upload it. Any ideas or tips?

    You can use a Blank Newsletter template and then edit the HTML code and Paste your own code in the HTML view of the Newsletter Template and Upload all the associated file like CSS and Images.
    If you are a Partner user, you can upload the Newsletter template from the partner portal -> Tools-> Newsletter Template
    Hope this Helps.
    Regards

  • How to upload a photo editor onto a website?

    I am building a website freepicedit.com on godaddy website builder and I want to upload a photo editor onto the site in JavaScript or PHP? Do you have any products that I can do that with ? Photoshop ?

    This is a user to user forum. Adobe hardly ever visits the forum, but is known to from time to time. Photoshop can not be upload to a website server, not does it produce any code needed to edit an image.
    Verify with GoDaddy, that you can upload php, not all services provide that permission.
    Its best to use php for server side scripts and javascript for browser side scripts.
    That said, there are site that provide free apps in both langauges. Be wary of using them, some create free apps just to gain access to your account. So make sure that programmer has a good reputation.
    I recommend that you use a browser side script, just so the user does not have to wait for a response. Granted communication has improved greatly, server side code still provides a lag, that may be noticeable with mouse painting, etc.
    What you can do though, is provide server side code that will do simple conversions, like formats, scaling, bit depth, etc. Do a search for imagemagick.

  • Password protecting a swf that i want to upload to my website

    Hi all. I would appreciate it seeing a tutorial showing how to password protect a swf uploaded to my website.
    I have a swf that is a work in progress, is NOT ready for public viewing, and i need some critique from a friend in the USA, and if i could upload it and give her the password, it would be viewable only for her, or for whoever else i'd give the password.
    So, i've looked at a thread from a while back, http://forums.adobe.com/message/718264#718264, which explains stuff that is beyond me, on xml programming.
    And, i am aware that the Publish settings has an option to add a password, I tried it but am unsure what that does if anything.
    thanks.

    If you zip your files into a folder, any email service should allow them to pass.  If the swf does not rely on external data files or dynamically loaded files, then sending the swf alone would suffice since it can be played without the need for the html page.
    As for the robotics end of things, if you add the following lines into the head section of the html page, the creepy things should avoid your pages...
    <meta name='robots' content='noindex,nofollow' />
    <meta name="robots" content="noarchive">
    I don't know if newer tags have been invented for these purposes over the last couple of years, but if so, a search of Google should reveal any.

  • How we set up multiple websites on OSX Server

    BACKGROUND
    After fiddling and futzing around for weeks (actually since last year) I've finally figured out how to set up multiple websites (virtual sites) using one port and one IP address. While there seems to be lots of discussion on this topic, it seems that the basic assumption is that one knows everything about websites, DNS and all that stuff, which I do not.
    When our network was originally established the engineer set up a wiki and also configured webmail, so we had two sites, one secured for mail and the other open for Calendar and the wiki. We were not hosting any websites locally because our school website is hosted by a company in New England.
    This year I wanted to set up websites for teachers and students. As great as the wiki is, there are some things it just can't do as well as a website. So I figured if I set up the sites teachers could link back and forth from one to the other. In addition kids could now start to use a real website instead of the cobbled together file mess I had when we ran a Windows network. Also iWeb is a much more accessible tool than FrontPage.
    SERVER SIDE:
    Snow Leopard Server - 10.6.4
    There are two - actually three pieces if you want your iWeb clients to connect to the server: Server Side Web Services, DNS and, in my case, FTP.
    ================================================ SERVER SIDE - WEB SERVICES
    If you haven't turned on Web services, you'll need to open Server Admin and do that. If you don't know how to set up web services - just reply and I'll step you through that as well.
    Once web services are set up and turned on, you'll see it listed under your server’s name in the Server Admin sidebar. Click on "Web" and then click on the "Sites" tab at the top of page. This is where you list all your sites.
    Click the plus button and enter the fully qualified name of your site, for example: "students.myschool.org". Don't use the defaults here (no name) - that's what got me in trouble before. BE SPECIFIC!
    You'll be looking at the "General" tab (the other tabs, "Options", "Realms", etc. we'll deal with in a second).
    On the "General Tab", the default IP address ("any") and port (80) is just fine. We'll run everything over port 80. (Apache figures all the virtual site stuff out - you don't need your rocket science degree for that.)
    "Web Folder:" is important because this is how you'll "segment" your websites. While I would NEVER do this again, we have a solid state hard drive for the OS and a RAID array for our data files. IF you have that, make sure you do NOT use the default "Web Folder" because it will store all your files on your solid state drive. There may not be enough room, over time, on that drive. I've not experienced it yet, but it's my understanding that if the drive fills up, the server shuts down.
    I store my web sites on a folder on the RAID array.
    Everything else on that tab can be left as the default. (Just make sure that you have an "index.html" or "index.php" file in your web folder root, but iWeb will take care of that for you.)
    I would put in your email address in the "Administrator Email:" field.
    Under "Options" you really don't have to put anything. I've tested making websites with iWeb and it doesn't appear that anything needs to be checked.
    Nothing needs to be entered in "Realms" as well from what I see working w/ iWeb.
    The defaults in "Logging" are fine.
    You can leave "Security" alone, but we do have a (self-issued) certificate listed for our webmail site.
    "Aliases" is important. Under "Web Server Aliases" you enter how you want the site to respond to when users type in a URL in their web browsers.
    When our web server was initially set up the engineer set up "wiki.myschool.org" on port 80 and "mail.myschool.org" on port 443. In the aliases section was nothing but a "*" (the wildcard character). That means, from what I can figure out, that the webserver will respond to these sites regardless of what is typed in the URL. (Well, something like that - point is, if you create OTHER websites, you'll NEVER get to them because the wildcard character in the "Aliases" section, in effect, grabs those web requests and redirects them to the sites that are already there.
    In my case I deleted both of those wild card characters. For my "wiki.myschool.org" site, I entered "mail.myschool.org". That means if you type EITHER "wiki." or "mail.", go to the site that’s stored in the “Web Folder” we set up when those sites were created.
    For "mail.myschool.org" I just DELETED the wildcard character. I wanted that site (since it was secured) only to respond to "mail." - nothing else. (You're not going to that secured site for any other reason than to get your mail.)
    "Proxy" can be left blank. Have no idea what that does. As time permits I'll do some research and figure out what it's used for.
    "Web Services" is if you want to provide any MORE services to this particular site. Most likely you'll want to uncheck all the boxes. For our "wiki." site, we have checked "Wikis", "Blogs", and "Calendar". For our "mail." site we have those checked PLUS "Mail".
    I would create a separate "Web Folder" for each of your sites. I don't know if that's a requirement but for housekeeping purposes, I would keep the sites separated. And I SUSPECT that it's "best practice" to separate your wiki from your other websites.
    SERVER SIDE - DNS
    OK...now you have to make your site reachable and the only way to do that is to set up DNS so that folks don't need to type in the IP address of your web server. You need to set up DNS inside your network and, if you want folks in the outside world to reach your website, you'll need to set up an external DNS as well. I'm going to cover INTERNAL DNS - if you don't know how to set up EXTERNAL DNS - reply or email me and I'll post those instructions.
    Most likely you have already created Zones for you network...all you really need to do is create "Aliases" so that when you type "students.myschool.org" your web browser will know that site resides on IP address XXX.XXX.XXX.XXX.
    If you've set up Zones then you already have a "Machine" setting that translates your server’s name to an IP address and vice versa.
    All you need to do is create an "Alias" (CNAME) record for, in this case, "students". You’ll see the choices for types of records when you click the "Add Record" button.
    There are only two fields to configure for a record: "Alias Name" - in this case "students" and "Destination" - in this case "servername.myschool.org". (You've already entered a machine record that says "servername" = 192.168.1.x.)
    That's it for Internal DNS.
    SERVER SIDE - FTP
    Now you have to get iWeb to communicate with the webserver.
    There are only three ways iWeb will communicate with webservers: MobileMe, Local Folder and FTP Server.
    Local Folder is really only practical if you want to host a website on a laptop (I was blown away initially when I found out that all Macs had a built-in web server - how neat is that?). I think there are some very cool things teachers could do with configuration, and, of course, you wouldn't need to set up any web services on the web server, but that's for another discussion. You need to set up FTP services on the web server.
    Turn on and enable FTP on your webserver.
    You can leave the defaults for "General", "Messages" and "Logging". "Advanced" is the only thing you want to set. I set "Authenticated Users See:" to "Home Folder Only". I set the "FTP Root" to the same root folder in which I plan to store my web sites (/VOLUMES/RAID Array/WebServer/Documents). This setting sets that folder only to be accessible via FTP.
    I would suggest returning to your DNS settings and adding one more "Alias". Set "ftp." to point to your webserver. Why? So folks can edit their sites from home (see below).
    CAVEAT: If you are running FTP on other servers, make sure that the settings here do not conflict with the settings on the other servers. For example, I'm running FTP on my file server so that my scanners can communicate with it. However, I configure my FTP settings by machine name and NOT "ftp.myschool.org".
    ================================================
    CLIENT SIDE - CONFIGURING iWEB
    Now you have to configure iWeb so that it will communicate with your server.
    Click on the "Site" icon so that "Site Publishing Settings" appears.
    Publishing:
    "Publish to:" = "FTP Server"
    You can set the "Site name:" and "Contact email:" to whatever you want. But see below!
    FTP Server Settings:
    "Server address"=ftp.myschool.org (you could also enter in servername.myschool.org or the IP address. However, if you want folks to be able to work on the site from home, you will need to configure external DNS for that. If you use the IP address, you're out of luck for remote access to the site. (You can do it but it's beyond the scope of this discussion.)
    "Username" & "Password" should be your user's network login credentials.
    "Directory/Path" - this is important. Remember, you set your "FTP Root" to be "/VOLUMES/RAID Array/WebServer/Documents". If you leave this field blank then the website will be dumped into this folder. If you are only setting up one site, that may be OK. However I wanted to set up a "students" site folder, a "faculty" site folder and a separate site for our literary magazine.
    THEREFORE: I have, in my ..../Documents folder (on the server), a "students" folder, a "faculty" folder, and a "litmag" folder.
    SO...in my "Directory/Path:" field, I have "/faculty". That means the full path to this website is "ftp root/faculty" or "/VOLUMES/RAID Array/WebServer/Documents/faculty" (You don't need a trailing "/" character. iWeb will automatically append the folder for you user depending on what you entered in "Site Name:" in the "Publishing" area.
    Website URL:
    This is the root website depending on whether it is "students" or "faculty". Since iWeb will append the site name to this root website, I accomplished what I hoped to accomplish in this post (http://discussions.apple.com/message.jspa?messageID=12288561#12288561).
    Faculty sites will be @ http://faculty.myschool.org/username. Students @ http://students.myschool.org/username. PERFECT!
    iWeb is such a GREAT tool - NOW the kids can start using it!
    I want to reiterate that this works for our school but it should work for you as well. There may be better ways to do this but it works for us.
    Hope this has been helpful and you won't have to spend weeks trying to figure this all out by yourself!

    OK...here's how we did it.
    To get access to the website you created from outside your network there are a couple of steps.
    First, you have to have a STATIC IP address from your ISP. If you have a T1 circuit, no problem...you usually get a couple of static IPs you can use. However, if you have a cable modem circuit, most likely you have a dynamic IP address which changes when you connect to the internet. Usually a static IP will cost a bit more because the ISP has to go through a couple of steps to set it up for you. But once you have the address, you now have a way for folks outside your network to connect with you.
    (I’m also assuming that you use a router of some sort through which traffic flows out to the internet and that you aren’t using connection sharing or something like that.)
    The next thing you need to do is have your new static IP address associated with the server on which you are hosting your website. You've probably already done that if your website works inside your network. However, you've associated a private ip (192.168.x.x, etc.) to your web server. That doesn't mean anything to folks on the outside because private IP addresses are just that - private - folks can't access them. (I won't get into VPN because that's a whole other topic.)
    The way you associate your new static IP address to your web server is through some sort of dns application from your ISP. For example, we use TierraNet to manage our external DNS information. They have a web interface control panel that is very similar to the DNS interface for XServer. You can create CNAME records (aliases - other ways that folks can access your servers).
    Basically you create an "A" (CNAME) record with a fully qualified domain name (e.g. webserver.myschool.org) and point it to your public IP address (XXX.XXX.XXX.XXX) which you just got from your ISP. It's going to take a while (24-48 hours) for this change to take effect. BTW, you can create as many “A” records as you want. For example mail.myschool.com and wiki.myschool.com could point to the same place.
    You want to make sure that the fully qualified domain name you enter in the external dns utility matches the name you used when you created your internal dns records on your XServer.
    OK...so now folks can get to your domain - but, remember, you have a private network IP scheme between them and you. You now have to tell your router that when web traffic arrives, allow it inside the network and direct it to your web server.
    Let's say your public IP address is 205.100.112.50 and your web server is 192.168.0.5.
    You have to create, in your router’s "Security Zone" (router companies call them different things) a couple of rules. Usually the first rule is: "Let everything inside the network get out to the web." You've probably already done that if folks inside the network can reach the internet.
    You then have to tell the router to allow web traffic (port 80) into your network AND redirect that traffic to 192.168.0.5.
    We use AdTran routers and they have a web interface which allows you to write "rules" affecting public and private traffic. Public is folks outside the network, private is folks inside.
    AdTran calls them "Security Zones" and you modify those zones with policies.
    So my "Policy" would say, in the above example, redirect traffic from my public IP (205.100.112.50) -> to my web server -> (192.168.0.5).
    THEN you have to modify this policy with what AdTran calls "Traffic Selectors". You've said, OK, you can get in, but WHAT can get in?
    The "Traffic Selector" is written to say: "Permit" "TCP" traffic from 205.100.112.50 only through Port 80. (That's the port that web traffic goes over. If you wanted a secure website, you'd add another traffic selector that opens port 443, for example.)
    I'll tell you I'm no genius when it comes to this. I called AdTran and had them configure my router for me. I told them what I wanted done, they remoted into the router and configured it. But then I could go to the web interface and see what they did and then added rules later on when I wanted, for example, to get access to the network via Apple Remote Desktop or VPN into the network on my iPad.
    I'd bet that your router has a maintenance agreement that includes this service and if it doesn't it should have.
    I did find that I still had issues when I tried to set this up originally and it had to do with the ORDER of the policies. I can’t remember exactly what the issue was, but, effectively one of the policies highjacked traffic before the policy that I wanted got triggered. Simply moving them around in the list fixed that issue. So if you have this set up but still can’t access the site, check the order of your rules.
    I don’t know if that helps or not, but I try to think about this stuff conceptually and then get someone to help me with the details. I work with this stuff so infrequently that I forgot how I did something 6 months or a year ago. I’m in the process of creating a wiki for the school which documents all this stuff, but that’s a major undertaking.
    Cheers,
    John

  • How to upload an image in a directory using PHP code generated by Dreamweaver?

    I have created a dynamic website with Dreamweaver and PHP, i have also created a insertform page using dreamweaver's 'Record Insertion Form Wizard' i have a field named prod_img in my MySQL database and on my form but this is a text field and i have to enter the path of the image directory to display it but this needs to have the image in the directory, i want to add a browse file field so that the image uploads to the directory by PHP.
    My code is as follows:
    <?php require_once('../Connections/dwtltd.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO special_offers (spec_img, spec_head, spec_desc, spec_call, spec_price, spec_rtn) VALUES (%s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['spec_img'], "text"),
                           GetSQLValueString($_POST['spec_head'], "text"),
                           GetSQLValueString($_POST['spec_desc'], "text"),
                           GetSQLValueString($_POST['spec_call'], "text"),
                           GetSQLValueString($_POST['spec_price'], "text"),
                           GetSQLValueString($_POST['spec_rtn'], "text"));
      mysql_select_db($database_dwtltd, $dwtltd);
      $Result1 = mysql_query($insertSQL, $dwtltd) or die(mysql_error());
      $insertGoTo = "../specialoffers.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_dwtltd, $dwtltd);
    $query_insertRS = "SELECT * FROM special_offers ORDER BY spec_id ASC";
    $insertRS = mysql_query($query_insertRS, $dwtltd) or die(mysql_error());
    $row_insertRS = mysql_fetch_assoc($insertRS);
    $totalRows_insertRS = mysql_num_rows($insertRS);
    ?>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <table align="center" cellpadding="5">
        <tr valign="baseline">
          <td align="right" nowrap="nowrap">Add Image:</td>
          <td><span id="sprytextfield1">
          <input type="text" name="spec_img" value="" size="32" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Offer Heading:</td>
          <td><input type="text" name="spec_head" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Offer Description:</td>
          <td><input type="text" name="spec_desc" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Phone:</td>
          <td><input type="text" name="spec_call" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Price:</td>
          <td><input type="text" name="spec_price" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">RTN:</td>
          <td><input type="text" name="spec_rtn" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"> </td>
          <td><input type="submit" value="Insert record" /></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form1" />
    </form>
    Help greatly appreciated.
    I have googled, yahooed, binged etc etc and tried many tutorials but nothing goes in my favor please do not suggest to search on search engines or websites.

    Years and months later, apparently Dreamweaver CC 2014 has a "File" Form object that has a text box and Browse button.  Now I'm looking for the part that does the actual upload (which is why I wound up here).  I'm sure by now you have found a way to resolve your issue, but there it is....

  • How do I transfer a website without building a new one?

    how do I transfer a website without building a new one?

    If you've built your site using Muse, you can choose to publish to Adobe Business Catalyst, or use the 'Upload to FTP Host' feature to upload to another hosting provider. You can also export to a local folder and use a 3rd party FTP client to upload it to the hosting provider of your choice.

Maybe you are looking for

  • SQL Error: ORA-00942: table or view does not exist + CX_RS_SQL_ERROR

    HI , we are facing below issue while activating info object xxxxxxxx " SQL Error: ORA-00942: table or view does not exist "  and   " CX_RS_SQL_ERROR  " can any one help us out to resolve this issue. Thanks, EDK......

  • Boot Camp repair via Hybrid MBR fix after 5+ partitions

    With the understanding that Boot Camp only formally supports a Windows boot upon creation from a single Mac OSX data partition, I'm trying to determine if a fix exists for the following boot setup. The end result I'm pursing is a triple boot mac setu

  • Landscape pages and portrait pages into the same document ?

    Hi everybody, I have a report to do, and I would like to introduce a graphic into the document. To do so, I need to switch from a portrait format to a landscape format, and back to a portrait format, to follow the explications. How to do so? Thanks i

  • How can i get my ipod touch5 to remember the network and password

    My ipot touch 5's will not automatically joing to network. I have to manually put in the in encryption kep every single time. It is programmed to ask to join networks and sees ours, but doesnt joing with password automatically. Help>

  • Restricted info on web

    Is it possible to publish a Calendar without showing the Topic (eg if it is a private event, but I want to indicate that I am busy), or alternatively the Topics of event visible, WITHOUT having the Notes connected to each even accessible to the viewe