516 Posted Topics
Re: If it makes it to the browser, it's in the cache (on the users machine). Everything is accessible to the user by this point. PHP does the same thing that every other server script does, it parses the code from the web server and sends the client HTML and JavaScript. … | |
Re: You can use extract. [code=PHP] @extract($_POST);[/code] This will convert all of your form names to variables. You can then access each variable by using the following: [code=php] foreach($_POST as $key => $value){ echo "$key=$value<br>"; } [/code] In this code, $key is the variable name. $value is the value of the … | |
Re: All browsers apply a default stylesheet to your page. Unfortunately, they don't all use the same stylesheet. Take a look at [URL="http://www.search-this.com/2007/03/12/no-margin-for-error/"]No Margin For Error[/URL], which explains why each browser displays the web page slightly different. The easiest way to get around this is to reset your styles at the … | |
Re: SQL injection is an attack on the database. Basically, injectors take an educated guess about your query design and try to manipulate it. Let's take a look at the following login: [code=php] $query = "SELECT * FROM customers WHERE username = '$name' and password = '$password'"; [/code] $name and $password … | |
Re: To get the form validation script to work, replace your current form tag with the following (Make sure you click "Toggle Plain Text" before copying): [code=html]<form action="formprocess.php" method="post" name="form1" id="form1" onsubmit="MM_validateForm('realname','','R','ingamename','','R','age','','RinRange4:99','steamid','','R','email','','RisEmail','paypalemail','','RisEmail');return document.MM_returnValue">[/code] | |
Re: [code=php]echo "<img src='/photos/".$info['photo']."' width='200'><br>"; echo "<b>Description:</b> ".$info['name']."<p> <hr>" ;[/code] | |
Re: [url]http://us3.php.net/strip-tags[/url] | |
Re: No, lower the quality of the image with image editing software like Photoshop or Paint Shop Pro or convert it to gif or png. Every image on your page has to be downloaded from your web server to the user when the page loads. The bigger the pic, the longer … | |
Re: Yes, just load the variable into http's GET, POST, or REQUEST arrays. It's how AJAX applications communicate with the server. | |
Re: Software companies don't want to hire a new guy. It's a fact. It's why they offer internships. They want a person who has proven his/her self to be knowledgeable and reliable in that field. As the new guy, you have to start at the bottom. This means very little pay … | |
Re: Make sure all your form elements have the same name value with an empty bracket. ie[code=html]<input type="checkbox" name="checked[]" value="dog" />Dog <br /> <input type="checkbox" name="checked[]" value="cat" />Cat[/code] Then, in your processing script, just loop through the checkbox array and do what you need to inside the loop. [code=php] foreach($_POST['checked'] as … | |
Re: You could also use [URL="http://www.google.com/analytics/"]Google Analytics[/URL]. It will give you a hit count, average time on site, keywords used to find the site, traffic sources (referring site), breakdown of stats of which search engine was used to find your site, pages per visit, a global map view of where the … | |
Re: Not too sure about this one. Remember, php executes from the server. You'll want a script that executes from the browser to perform a print. The basic idea is: [code=html]<input type="button" value="Print" onclick="window.print()" />[/code] | |
Re: Surround the filename in double quotes: Click Save As Filename: "default.css" | |
Re: Post a short description of your problem and the code that is failing in the [URL="http://www.daniweb.com/forums/forum117.html"]JavaScript[/URL] Forum. | |
Re: Could you post the code or give a link to your site. | |
Re: motter, in your iframe, example2.php, [code=html]<BODY <bgcolor="1F1F1F"> [/code] should be [code=html]<body bgcolor="1F1F1F"> [/code] Also, you should validate your code with W3C if you expect to have a cross browser compliant site. | |
Re: You could write a batch file to copy the db into a backup folder. Then use Scheduled Tasks to run the script daily or weekly or how ever often you need it to run. | |
Re: I agree with keith. What happens when you have 100 users? You are going to have 100 user tables with one row of data in each. Bad design. All of this could be done with 1-3 properly normalized tables. | |
Re: Externally. Why? Let's say your site has 50 pages using the same basic styles. If your styles are internal, they'll have to be hard coded into each individual page. That means that if you visit 10 pages in the site, the styles will have to be downloaded all 10 times. … | |
Re: You can also use a meta refresh to do this. No scripting necessary, just put the tag in the head of the document: [code=html] <meta http-equiv="refresh" content="0;url=http://www.example1.net">[/code] | |
Re: In XHTML, the background and bgcolor attributes have been deprecated. This is because they can easily be implemented with css. If you want it to validate, use [code=HTML] <td style="background-image:url(bricks.jpg)"> [/code] However, the best way to do this would be to put these sort of styles in an external stylesheet. … | |
Re: CSS can't do much with checkbox's or radio buttons. [URL="http://www.outfront.net/tutorials_02/adv_tech/funkyforms4.htm"]Here's[/url] a tut on styling a form with CSS. If you want custom checkbox's and radio buttons you'll need to add some JavaScript. [URL="http://lipidity.com/fancy-form/"]Here's[/URL] a link for this. | |
Re: Use the asterisk for the wildcard:[code=SQL]SELECT * FROM report WHERE product_no like 't*'; [/code] | |
Re: I had a client host with GoDaddy. He had that $3.99/month hosting plan. As a web developer, it was a very miserable experience for me. I could hardly get any of my prewritten functions to work, even though they had been used many times on other servers. Finally I made … | |
Re: Yeah, report this to your host. If they want your business, they'll get it fixed. Else, start shopping for another host. Meanwhile, backup your site and make sure that none of the mess gets carried over. | |
Re: I had a friend that had this problem. Turned out that Skype and Apache were fighting for port 80. [URL="http://www.tradebit.com/channels/software/110577/skype-30-fights-with-apache-for-port-80/"]Here[/URL] is where we found the solution. Hope this helps. | |
Re: [QUOTE]I cannot seem to get the query string right so that I can list the results.[/QUOTE] Generally, the query string is considered to be the url plus all the $_GET variables that you tack onto it. What is the problem? | |
Re: Making the text box and button appear can be done with basic JavaScript. However, making calls to the server to delete records without a page refresh will require AJAX. | |
Re: Here's a function I found on php.net that will copy the directory. I have also added an unlink code to delete the original folder after copy. This may throw a permission denied error or it may work. Good luck! [code=php] <?php $folder = 'excel_files'; $backup = 'excel_files_backup'; full_copy($folder, $backup); function … | |
Re: You'll have to create a help.html page and you may have to modify the dimensions but here's the general idea: [code=html] <tr><td><p>3-digit Security Code:</p></td><td colspan=5 height=30><p><input type=text name=securitycode size=3 maxlength=3> <a href="" onclick="window.open('help.html','', 'width=400, height=250, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false"> (on back of card)</a></td></tr> [/code] ![]() | |
Re: Going to have to see some code or a link to the site. | |
Re: Funny, I did the exact same thing 3 days ago. | |
Re: Do you have phpmyadmin? If so, create a table with the appropriate rows, save the excel file as a csv, and import to the table. | |
Re: My two cents: Since you are familiar with C and C++, you could pick up php very quickly. Here's a quote for you: "A significant portion of PHP's syntax, conditions, boolean functionality and loops have been copied from C, and as such, PHP is an amazingly simple language to pick … | |
Re: Submit your site to all the major search engines. Sign up for Google Webmaster Tools. This is will tell you the last time that google crawled your site as well as errors such as broken links. Also, submit an xml sitemap to the webmaster tools. There are several free sitemap … | |
Re: Yes, the best way is to just save the image path. You can save the image into the database as a blob but, most say it's a bad idea. Have a read [URL="http://www.phpriot.com/articles/images-in-mysql"]here[/URL] on the pros and cons and a tut on how to do it. | |
Re: I believe that this is done with some type of server side script to check if you are the seller. If you are the seller, it adds the extra code detailing how many are watching and other seller only details. | |
Re: Your variables don't match up. Just one example, you define [icode]$nameField = $_POST['name'];[/icode] then in the $body variable, you try to add [icode]Name: $name <br>[/icode] where it should be [icode]Name: $nameField <br>[/icode] | |
Re: Wow, a big fan of run-on sentences myself. Are you asking about wamp on your local machine? Most versions of wamp come with phpmyadmin installed. Try putting this in the url: [url]http://localhost/phpmyadmin[/url] Or, if you want to access the db via php use [code=php] mysql_connect('localhost', 'root',''); [/code] | |
Re: You can use [URL="http://www.databasejournal.com/features/msaccess/article.php/3077791"]VBA [/URL] to remove duplicates or export it to excel and click data->remove duplicates, then reimport. | |
Re: I believe [icode]xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); [/icode] is outdated. See how [URL="http://www.w3schools.com/Ajax/ajax_browsers.asp"]W3Schools[/URL] suggests implementing for IE. Also, read more about the argument [URL="http://bytes.com/forum/thread559991.html"]here[/URL]. | |
Re: Something like: [code=php] <?php $var = $_GET["searchvalue"]; $partner = $_GET["partnervalue"]; header("Location: http://www.lynxtrack.com/afclick.php?o=7560&b=ft9z13pz&p=9136&l=1&s=$var&p=$partner"); ?> [/code] | |
Re: Yes, it's done with the css z-index attribute. The highest z-index goes on top. Read more [URL="http://webdesign.about.com/cs/css/a/aazindex.htm?rd=1"]here[/URL]. | |
Re: You can do it with JavaScript. Have a look [URL="http://www.hesido.com/web.php?page=customscrollbar"]at this example[/URL]. | |
Re: The page isn't being parsed. Here are a few questions to varify: 1.) Are you sure Apache is running? (Check the Task Manager for Apache.exe) 2.) Are you testing the file under localhost? (Does the url say "http://localhost/filename.php" or does it say "C:/...") 3.) Is the php file saved in … | |
Re: Get rid of the parentheses and put a semicolon at the end. [icode]<? include("renders/gallery.php") ?>[/icode] should be [icode]<? include "renders/gallery.php"; ?> [/icode] | |
Re: What are you trying to do? [code=php]if($region==region){[/code] should probably be [code=php]if($region=="region"){[/code] or [code=php]if($region==$region){[/code] who knows.. | |
Re: The server doesn't parse the $id variable because you don't have a php delimiter. It should be something like: [code=php] <a href='edit_news.php?id=<?php echo $id;?>'>edit</a> [/code] | |
Re: Make sure Apache is running. You should be able to tell from the Task Manager. Apache.exe should show in the processes list. Open a browser and type localhost into the url. You should get some type of WAMP or Apache welcome screen. The root folder is named htdocs. For example, … |
The End.