516 Posted Topics

Member Avatar for websurfer

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. …

Member Avatar for nikesh.yadav
0
87
Member Avatar for vicky.vignesh

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 …

Member Avatar for buddylee17
0
63
Member Avatar for sureronald

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 …

Member Avatar for buddylee17
0
118
Member Avatar for anuj_sharma

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 …

Member Avatar for Shanti C
0
90
Member Avatar for locololo2

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]

Member Avatar for buddylee17
0
36
Member Avatar for justted

[code=php]echo "<img src='/photos/".$info['photo']."' width='200'><br>"; echo "<b>Description:</b> ".$info['name']."<p> <hr>" ;[/code]

Member Avatar for buddylee17
0
146
Member Avatar for justted
Member Avatar for Sheridan

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 …

Member Avatar for buddylee17
0
72
Member Avatar for farahphp

Yes, just load the variable into http's GET, POST, or REQUEST arrays. It's how AJAX applications communicate with the server.

Member Avatar for buddylee17
0
181
Member Avatar for ssharish2005

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 …

Member Avatar for ssharish2005
0
131
Member Avatar for Diode

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 …

Member Avatar for antwan1986
0
152
Member Avatar for queenc

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 …

Member Avatar for MVied
0
159
Member Avatar for selvam543

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]

Member Avatar for buddylee17
0
442
Member Avatar for KylieByrne
Member Avatar for MelechM
0
8K
Member Avatar for AQWst

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.

Member Avatar for AQWst
0
132
Member Avatar for steve136
Member Avatar for motterj

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.

Member Avatar for motterj
0
109
Member Avatar for Peppercat101

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.

Member Avatar for buddylee17
0
68
Member Avatar for Kavitha Butchi

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.

Member Avatar for Kavitha Butchi
0
260
Member Avatar for MeTc123

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. …

Member Avatar for MelechM
0
94
Member Avatar for 7arouf

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]

Member Avatar for buddylee17
0
83
Member Avatar for Diode

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. …

Member Avatar for MidiMagic
0
170
Member Avatar for kavithakesav

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.

Member Avatar for sreein1986
0
119
Member Avatar for priyam_maheshwa

Use the asterisk for the wildcard:[code=SQL]SELECT * FROM report WHERE product_no like 't*'; [/code]

Member Avatar for buddylee17
0
75
Member Avatar for Hampton

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 …

Member Avatar for oneguysblog
0
221
Member Avatar for pandi-nissi

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.

Member Avatar for omol
0
118
Member Avatar for anuj_sharma

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.

Member Avatar for buddylee17
0
86
Member Avatar for berniez

[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?

Member Avatar for gurucs
0
112
Member Avatar for tanha

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.

Member Avatar for buddylee17
0
212
Member Avatar for udaydesai

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 …

Member Avatar for udaydesai
0
190
Member Avatar for TechExpressInc

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]

Member Avatar for langsor
0
390
Member Avatar for KimJack
Member Avatar for George_E
Member Avatar for sweet cLassy

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.

Member Avatar for sweet cLassy
0
100
Member Avatar for acchao

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 …

Member Avatar for buddylee17
0
325
Member Avatar for serendipity

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 …

Member Avatar for buddylee17
0
125
Member Avatar for veledrom

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.

Member Avatar for buddylee17
0
78
Member Avatar for woocha

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.

Member Avatar for MidiMagic
0
187
Member Avatar for osman85

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]

Member Avatar for osman85
0
130
Member Avatar for atplerry

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]

Member Avatar for buddylee17
0
136
Member Avatar for dinilkarun

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.

Member Avatar for mrsjpvan2
0
87
Member Avatar for Ciubhran

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].

Member Avatar for chaosprime
0
139
Member Avatar for Shariqhere

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]

Member Avatar for Shariqhere
0
108
Member Avatar for emilio

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].

Member Avatar for MidiMagic
0
113
Member Avatar for iball

You can do it with JavaScript. Have a look [URL="http://www.hesido.com/web.php?page=customscrollbar"]at this example[/URL].

Member Avatar for macneato
0
42
Member Avatar for Tootlol

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 …

Member Avatar for ryan_vietnow
0
151
Member Avatar for Q8iEnG

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]

Member Avatar for MVied
0
170
Member Avatar for heni_pro

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..

Member Avatar for Lejonet
0
81
Member Avatar for yasmena

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]

Member Avatar for Lejonet
0
153
Member Avatar for rati

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, …

Member Avatar for buddylee17
0
92

The End.