Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1701.

Solve : Titles dissappered in a blog because of HTML error.?

Answer»

My blog is:
http://www.teeteringbulb.com/

The other day, I noticed the titles in my blog disappeared. Only to re-appear once I hover over them.
Most comment sections disappeared as well. I meddled with the code a little PREVIOUSLY only to CHANGE the name of the blog. Now, I'm not sure how to FIX this problem...
any ideas?

thanks!
zeldaPaste your code here so we can have a look.
Be sure to put it in code tags though.
And I see what you mean about the titles, odd.I checked with both IE and Firefox, and your titles seem to show up just fine for me. Has your issue been resolved, or am I MISSING something?Works fine.

May be your browser colour settings overriding the webpage its colour settings. It works fine for me now, but it didn't yesterday.Quote from: Calum on April 23, 2007, 01:01:22 PM

It works fine for me now, but it didn't yesterday.
Well, then unless Zelda says OTHERWISE, let's assume this is resolved.Lets troll that blog for going AWOL.
1702.

Solve : Accessing external css file?

Answer»

My html document on the page is:-

<HTML>
<HEAD>
<TITLE>HOW DO YOU DO THAT</TITLE>
<link HREF="creating.css" rel="stylesheet" TYPE="text/css">

<body>
<span class="headlines">Welcome</span>


<div class="sublines">
This is the paragraph
</div>

<table border="2"><tr><td class="sublines">
This is the second paragraph
</td></tr></table>



This is the footer


[/color]


The external css file (creating.css) is:-

body {
.headlines, .sublines, infotext {font-face:arial; font-weight:bold;}
.headlines {font-size:14pt; COLOR:RED; background:yellow;}
.sublines {font-size:12pt; COLOR:GREEN; background:red;}
.infotext {font-size: 10pt; COLOR:BLUE; background:yellow;}
}



The page is showing properly in internet explorer,
but not in FIREFOX or opera.

i.e. in these two browsers i am not getting any color
or font size that i have mentioned in the CSS file.

What have I done wrong?Some codes ALWAYS does not do same thing different browser. it would be better to visit the url of w3c. Hope it make u transparent.

copy this URL: http://w3c.orgYou have the CSS file formatted wrong. You cannot place element classes inside the body class.

Try this:

Code: [Select].headlines, .sublines, .infotext
{
font-face:arial;
font-weight:bold;
}

.headlines
{
font-size:14pt;
COLOR:RED;
background:yellow;
}

.sublines
{
font-size:12pt;
COLOR:GREEN;
background:red;
}

.infotext
{
font-size: 10pt;
COLOR:BLUE;
background:yellow;
}
Quote from: kpac on December 31, 2008, 05:52:29 AM

You have the CSS file formatted wrong. You cannot place element classes inside the body class.

Try this:

Code: [Select].headlines, .sublines, .infotext
{
font-face:arial;
font-weight:bold;
}

.headlines
{
font-size:14pt;
COLOR:RED;
background:yellow;
}

.sublines
{
font-size:12pt;
COLOR:GREEN;
background:red;
}

.infotext
{
font-size: 10pt;
COLOR:BLUE;
background:yellow;
}


It worked. Good.
1703.

Solve : Hide URL destination in Linked images?

Answer»

Hi,

I have just found this piece of code to allow me to link TEXT and at the same time hide the destination URL:

http://mywebsite.com">Clicking Here[/url]

This piece of code works fine for text, but it doesn't work when hyperlinking images, can anyone tell me why and how to RESOLVE it?

Cheers

______________
[links removed - DO NOT ADVERTISE]
Try:

<a onmouseover="window.status='You are now visiting another page';" onmouseout="window.status='';" href="http://mywebsite.com">Clicking Here[/url]

For images, just change the tag to ....

<img src=".../IMAGE.gif" onmouseover="window.status='This is an image.';" onmouseout="window.status='';" />Only curiosity here - but wonder why you want to hide target URL.

With all the stuff that is around these days - it is often the ability to see a URL in status bar that decides in part at least whether I wanna go there or not!

If I don't see one I for sure ain't goin there! Phishing MAKES much use of spoof text with another URL inside.

1704.

Solve : Login (php)?

Answer»

Code: [Select]<?php

###############################################################
#PagePasswordProtect2.13
###############################################################
#Visithttp://www.zubrag.com/scripts/forupdates
###############################################################
#
#Usage:
#Setusernames/passwordsbelowbetweenSETTINGSSTARTandSETTINGSEND.
#Openitinbrowserwith"help"parametertogetthecode
#toaddtoallfilesbeingprotected.
#Example:password_protect.php?help
#Includeprotectionstringwhichitgaveyouintoeveryfilethatneedstobeprotected
#
#AddfollowingHTMLcodetoyourpagewhereyouwanttohavelogoutlink
#<ahref="http://www.example.com/path/to/protected/page.php?logout=1">Logout</a>
#
###############################################################

/*
-------------------------------------------------------------------
SAMPLEifyouonlywanttorequestloginandpasswordonloginform.
Eachrowrepresentsdifferentuser.

$LOGIN_INFORMATION=array(
'zubrag'=>'root',
'test'=>'testpass',
'admin'=>'passwd'
);

--------------------------------------------------------------------
SAMPLEifyouonlywanttorequestonlypasswordonloginform.
Note:onlypasswordsarelisted

$LOGIN_INFORMATION=array(
'root',
'testpass',
'passwd'
);

--------------------------------------------------------------------
*/

##################################################################
#SETTINGSSTART
##################################################################

//Addlogin/passwordpairsbelow,likedescribedabove
//NOTE:allrowsexceptlastmusthavecomma","attheendofline
$LOGIN_INFORMATION=array(
'zubrag'=>'root',
'kvasten'=>'klonaminko1'
);

//requestlogin?true-showloginandpasswordboxes,false-passwordboxonly
define('USE_USERNAME',true);

//Userwillberedirectedtothispageafterlogout
define('LOGOUT_URL','http://web.comhem.se/nameless');

//timeoutafterNNminutesofinactivity.Setto0tonottimeout
define('TIMEOUT_MINUTES',1);

//ThisparameterisonlyusefulwhenTIMEOUT_MINUTESisnotzero
//true-timeouttimefromlastactivity,false-timeouttimefromlogin
define('TIMEOUT_CHECK_ACTIVITY',false);

##################################################################
#SETTINGSEND
##################################################################


///////////////////////////////////////////////////////
//donotchangecodebelow
///////////////////////////////////////////////////////

//showusageexample
if(isset($_GET['help'])){
die('Includefollowingcodeintoeverypageyouwouldliketoprotect,attheverybeginning(firstline):<br>&lt;?phpinclude("'.str_replace('\\','\\\\',__FILE__).'");?&gt;');
}

//timeoutinseconds
$timeout=(TIMEOUT_MINUTES==0?0:time()+TIMEOUT_MINUTES*60);

//logout?
if(isset($_GET['logout'])){
setcookie("verify",'',$timeout,'/');//clearpassword;
header('Location:'.LOGOUT_URL);
exit();
}

if(!function_exists('showLoginPasswordProtect')){

//showloginform
functionshowLoginPasswordProtect($error_msg){
?>
<html>
<HEAD>
<title>Skriv INN lösenord för att komma inn på denna sidan</title>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</head>
<body>
<style>
input { border: 1px solid black; }
</style>
<form method="post">
<h3>Logga inn</h3>
<font color="red"><?phpecho$error_msg;?></font><br />
<?phpif(USE_USERNAME)echo'Login:<br/><inputtype="input"name="access_login"/><br/>Password:<br/>';?>
<input type="password" name="access_password" /><p></p><input type="submit" name="Submit" value="Submit" />
</form>
</body>
</html>

<?php
//stopatthispoint
die();
}
}

//userprovidedpassword
if(isset($_POST['access_password'])){

$login=isset($_POST['access_login'])?$_POST['access_login']:'';
$pass=$_POST['access_password'];
if(!USE_USERNAME&&!in_array($pass,$LOGIN_INFORMATION)
||(USE_USERNAME&&(!array_key_exists($login,$LOGIN_INFORMATION)||$LOGIN_INFORMATION[$login]!=$pass))
){
showLoginPasswordProtect("Incorrectpassword.");
}
else{
//setcookieifpasswordwasvalidated
setcookie("verify",md5($login.'%'.$pass),$timeout,'/');

//Someprograms(likeForm1Bilder)check$_POSTarraytoseeifparameterspassed
//Soneedtoclearpasswordprotectorvariables
unset($_POST['access_login']);
unset($_POST['access_password']);
unset($_POST['Submit']);
}

}

else{

//checkifpasswordcookieisset
if(!isset($_COOKIE['verify'])){
showLoginPasswordProtect("");
}

//checkifcookieisgood
$found=false;
foreach($LOGIN_INFORMATIONas$key=>$val){
$lp=(USE_USERNAME?$key:'').'%'.$val;
if($_COOKIE['verify']==md5($lp)){
$found=true;
//prolongtimeout
if(TIMEOUT_CHECK_ACTIVITY){
setcookie("verify",md5($lp),$timeout,'/');
}
break;
}
}
if(!$found){
showLoginPasswordProtect("");
}

}

?>

<b>Välkommen Kvasten^!</b>
<HR align=left color="black" size="1" width="230">
<br>
Du har inte fått något nytt MEDDELANDE :(
now. when i have logged in once (username: admin Password: adminpassword)
everytime i VISIT this page it is inlogged. on every computer. whats wrong? :SWhat you mean by inlogged? Have you implemented any log out features?

Are you setting cookies for sessions cause' if so that might be the problem of your description.Quote from: Carbon Dudeoxide on January 01, 2009, 05:49:45 AM

Check the date of the last post.....
1705.

Solve : Help needed in making a web program?

Answer»

Hi All, I am new to making web programs.

Situation is that we have a word file of 7 lacs rows. In the file, simple commands of dropping indexes and then recreating them again is there. Most of the indexes are getting recreated. I need to find such indexes which are getting dropped but not getting recreated. sample of the concerned word file is as follows -

---------------------------------------------------------
DROP INDEX DATABASE.PS_SCON_ATT_LNG
;
COMMIT
;
CREATE UNIQUE INDEX DATABASE.PS_SCON_ATT_LNG ON PFPRGP.PS_SCON_ATT_LNG
(SETID,
CNTRCT_ID,
LINE_NBR,
SCHED_LINE_NBR,
FILE_EXTENSION,
DOCUMENT,
LANGUAGE_CD) USING STOGROUP PRDGROUP PRIQTY 48 SECQTY 720 CLUSTER
BUFFERPOOL BP2 CLOSE NO
;
COMMIT
;
DROP INDEX DATABASE.PS_SCON_COMPTTRS
;
COMMIT
;
CREATE INDEX DATABASE.PS_SCON_COMPTTRS ON PFPRGP.PS_SCON_COMPTTRS
(SETID,
CNTRCT_ID,
LINE_NBR,
SCHED_LINE_NBR,
COMPETITOR_CD) USING STOGROUP PRDGROUP PRIQTY 48 SECQTY 720 CLUSTER
BUFFERPOOL BP2 CLOSE NO
;
COMMIT
;
DROP INDEX DATABASE.PSASCON_CUST_CGRP
;
DROP INDEX DATABASE.PS_SCON_CUST_CGRP
;
COMMIT
;
CREATE UNIQUE INDEX DATABASE.PS_SCON_CUST_CGRP ON
PFPRGP.PS_SCON_CUST_CGRP (SETID,
CNTRCT_ID,
SOLD_TO_CUST_ID,
CUSTOMER_GROUP) USING STOGROUP PRDGROUP PRIQTY 48 SECQTY 720
CLUSTER BUFFERPOOL BP2 CLOSE NO
;
CREATE INDEX DATABASE.PSASCON_CUST_CGRP ON PFPRGP.PS_SCON_CUST_CGRP
(SETID,
SOLD_TO_CUST_ID) USING STOGROUP PRDGROUP PRIQTY 48 SECQTY 720
BUFFERPOOL BP2 CLOSE NO
;
COMMIT
;

-------------------------------------------------------------------------------------------------

Can anyone help me with any web program which can find such indexes which are getting dropped and not getting recreated

Kindly help...

Thanks in advance.

Anshu.You posted this here and you want a web solution. You posted this in PROGRAMMING and wanted a C/C++ solution. You posted this in DOS and wanted a batch solution. When you finally make up your mind, please delete the duplicate POSTS and then PERHAPS someone will come along that can help you.

Duplicate posts only create confusion. They do not increase your chances of getting a response. By the way, anshu, WHAT programming language is that? In all your other posts, you have the same code, but its not Batch or Web Design (I think so, at least).

And what is a lacs row?

1706.

Solve : can not create virtual host?

Answer»

Hi
I use APACHE and have problem to making virtual host.
I edit httpd.conf and adding this section (like this):


SERVERNAME www.otherdomain.tld
DocumentRoot /www/otherdomain


but when i enter www.otherdomain.tld in my browser and see "page not found" alert.
I read FAQ in apache web site and its DOCUMENTS but no info I find.
My OS is “windows xp PRO 32bit” and want to design web site.

Thanks

1707.

Solve : My Index Page won't show, instead it shows the PHP redirect code?

Answer» http://tamsanh.com/

It generates:

// This file will generate and return the main page of the site
$CONF = array();
$CONF['Self'] = 'index.php';

include('./config.php');

selector();

?>

when accessed.

Can someone please help?Make sure you have PHP installed/CONFIGURED correctly.

http://www.php.net/i checked your link, and found the text you described. I wonder: Is this code we are SEEING exactly the code of the index file? If so, it reminds me of a problem I encountered once before, the 1st time I ever saw PHP. It was the file name &AMP; extention.

If your file is named INDEX.PHP for instance, try renaming it "INDEX.PHP"
(by including the quotations in your file name and extention.)
I know that sounds wierd but she worked for me If you go to the site using ""tamsanh.com/index.htm"" it will come up. The PHP code should be removed.. You may need to contact the host to make sure the thing a ma jug called .htaccess is set OK. Or something like that..
Such problems are usually caused by incorrect configurations of the server or the particular path that are hosting your files.

Particuloar file extensions should be associated with one of the mimetype which in TURN are configured in apache to be processed by a particular FILTER / extension such as /usr/bin/local/php.Quote from: Carbon Dudeoxide on January 01, 2009, 05:49:45 AM
Check the date of the last post.....
1708.

Solve : Flash Dynamic Text Problem?

Answer»

I am adding a EULA text field into a flash project that calls the text from an external text document (notepad - I've tried Unicode, ANSI & UTF-8, and also embedded the fonts).

I can get it to call and display the text, with scroll bars, but it doesn't call the entire document. Is there a limit to the amount of words/letters or size of document that dynamic text can call in one event?

My cods is:
myData = NEW LoadVars();
myData.onLoad = function() {
eula_txt.text = this.eula;
};
myData.load("EULA.txt");

Dynamic text is set to Multiline (with wrap), and there's also a VERTICAL scroll bar. The text will scroll up to a point.

If I DECREASE the font size it still only displays the same amount of text.

I've also tried myData.maxChars = null, to remove any limit on the NUMBER of characters allowed - still the same.

Any suggestions?Ok, for those who have suffered sleepless nights working this one out - No?........just me then!!

It seems Adobe don't like the & (ampersand) symbol in a document

Quick change to %26 for symbol reference and voila - all sorted! Good.

That's ActionScript, no?

1709.

Solve : PHP time/date?

Answer»

Hi,

I need a script that works with timestamps. (and databases)

If somebody logs in, the timestamp of the previous login of that person, should be loaded and on the screen you should see ' you have logged in 45454 seconds ago '

Of course, after that, the timestamp in the database should be updated.

Because I (dirty word) in PHP DATE; I'm hoping someone here can figure it out.

How are you TRACKING logins? By cookie or by database?A simple script won't do as APPARENTLY you are doing this on something else right? Or what's the meaning of this script?

time() returns the current UNIX time stamp in php and you can simply store it into database. It doesn't matter what the data type is in the database, a simple string would do.

When the VISITOR log in, you get the current time stamp with time() and fetch the last logged time stamp, do a subtraction and you get the interval between his or her login in seconds.Check the date of the last post.....

1710.

Solve : How should I price my freelance web work??

Answer»

K guys, I'm finished with the design aspect of my Interactive website. Now, I need to know how to price. Does anyone have any suggestions other than google, on how I should come up with reasonable prices for it? Also, I've never done this before so I'll also need to know if there's any other legal aspects that I should handle before I launch my site called pixel perfect interactive.

-- Topic moved from FAQ to Web Design by Zylstra555...You might try contacting professionals in your area that do this kind of work and ask them what they charge.

Alan <>< You do need to know the competition in your market and what they charge. Then the first rule of economics kicks in. "Charge what the market will bear."2k_dummy is correct. My price VARIES on a couple of factors.

*How soon do you want it done? The more "time sensitive" the project becomes the rates start to go up.
*What kind of work? Basic HTML? Database driven site? Flash site? Corporate or personal?
*How BUSY am I currently? I may take jobs at a lesser rate during my slow times than I do when I am slammed.
*What is their budget? Is it realistic for what they are expecting?

I personally have found that my clients prefer having a quote on the project rather than an hourly rate. They want to know the final cost, not an open ended check. I have also seen some places that do the whole charge by page, amount of text, graphics, yaddda yaddda.... Wow what a PAIN to track. All of my jobs are by the project, I know what I am going to make barring any extra things the client decides to try to sneak in, and they do too.

Wish I could give you some hard numbers but the salesman in me says get what you can, don't leave money on the table because you are afraid to ask for it.Make it open source. I agree with [emailprotected] 's tips ... Especially how your customer will try to add features when you are about 80% COMPLETED, which sometimes require drastic changes to the whole web site.

*** Also .. Be sure you have a written contract which specifies in detail what the requirements for fulfillment are for the project to be completed, and state that any other features not enclosed in this contract will not be supported unless another contract is created to take its place.

Then this brings up another point. Make your customers aware to a fee at the get go, associated with each change of contract. This will make them do there homework and think harder as to what they really want when it comes to planning.

As a rule I also generally request 50% up front payment. Its amazing how many BAD customers are out there who request a project for a web site to be designed for them and then at the last minute try to renegotiate the price after you have it completed better than planned exceeding their expectations and still falling within the agreed project price. Also you may end up with customers who request a project to be completed, you completed it and then some and they change their mind leaving you hanging with unpaid labor and worthless code at the end because they dont really know what they want or are idiots who should have known they couldnt afford it in the first place.

As for my web design and management services, I have thrown in the towel on it because it was too much trouble than it was worth, plus many local computer businesses take too much of the pie in this area.

So I moved on to PC Hardware Repair, Network Administration, and other various IT services which is where the money is out this way ... and lots of work. My closest competitor CHARGES $75 an hour, so I charge $70 an hour, and I have many repeat customers who like the 1 on 1 support vs the computer shop a few miles away who hires entry level techs to perform work and screw it up from what the customers tell me. With me they know that I do it right the first time. Being as flooded as I am with work, I have been tempted to raise my labor rate to $75 or more since I have 100% customer satisfaction and I need to get paid more for what I am worth.

You may also find that you will begin to get flooded with work if ou are too cheap and too good at what you do. I say bait them in with a low but not too low rate, then once you have a customer base, start charging what you are worth, but dont go too agressive or you may shed too many customers. Usually hiking it up $5 or $10 an hour doesnt do too much damage as long as you are really good at what you do and are not to far off the bell curve for labor rate in that field in your area.
Generally I find that the problematic customers are the ones that shed when doing an increase in my labor rate. But there are some really rich people out there who can be nit picky too and $75 an hour is chump change to them anyways.

As far as what to charge for your services you should put together a matrix of your skills, and compare them to the competition in your area and also online and what they charge. Try to be agressive in your pay, but not too agressive or you wont have work. If you are not agressive enough you will find yourself not making enough and giving away your work.

Good luck with your freelance web work ... But its definately a hard market with much competition and so many customers who dont know what they really want!!!

Dave

1711.

Solve : Firefox dropdownlist covering up text - what's up with this??

Answer»

Here is an image of my problem:



In the standard rendering of the asp:DROPDOWNLIST the arrow covers the text, how do you fix that?

ThanksIf you have a mouse with the wheel, HOLD CTRL and move the wheel and you can change the text size for the browser. Maybe that will work.Thats a pretty cool trick, I could change the font-size in IE7 as well.

But it didn't stop the text from being buried by the arrow.

Plus I'm doing the CSS on this page and if you know of any way I can set the boxes bigger without USING the width attribute that would be great!Could you post the section of CSS that directly affects the drop down selectors so I can take a look at it?Quote from: [emailprotected] on APRIL 19, 2007, 05:59:21 AM

Could you post the section of CSS that directly affects the drop down selectors so I can take a look at it?
Yeah, then we might be able to help you change the box size and stuffThanks for the help,

I appear to have an answer I got from davidcdalton, tell me what you think.

I was using

*
{
padding: 0em;
margin: 0em;
}

In the css. If I put a style on the select, it didnt help, but if I did this:

.fulldate option
{
padding-right: .6em;
}

.fulldate being the class in the select STATEMENT all appears to be good.
1712.

Solve : PHP directory copy on a windows machine?

Answer»

I have a PHP page that when data is submitted it also creates a directory named with some of the values passed, it also does a COPY of a directory into the newly created directory. Everything works perfectly, EXCEPT (lol there is always an except) during the copy process the DOS box pops up. I am wanting to run the command SILENTLY and can not find the answer anywhere. Here is what the PHP command looks like:

Code: [Select]exec('xcopy c:\\Intranet\\www\\reports6\\copy c:\\Intranet\\www\\reports6\\Client_Files\\ASR'.$id.'-'.$jobid.'\\pictures /e/i ');

As you can see I am using xcopy to move the files on the local machine (windows based). Any suggestions here on how to make it happen silently or on a better way to do this. I have researched many ways to do this and most of them are very long and bloated for the simple process I need.

ThanksNo answers.. HMMM.. OK maybe I should approach this in a different manor, does anyone know of a way to use php to copy a complete directory, place and name it based on values passed on the server silently so the users are not aware it is happening?

1713.

Solve : Mailto Form "Browser Alerts Malicious"?

Answer»

Anyone know how to create a mailto Form that wont blat to the user that this is a potentially malicious operation? I want to have the ability for people to e-MAIL data to me from a form in my WEB page and I cant find a work around... Do I need to USE something other than a form to avoid this IE Blat???

Also if the user does not have a local mail client installed and configured like Outlook EXPRESS, the Mailto Form is worthless ... Any suggestions on a better method for processing and sending data to me in a form like manner???

Thanks Well, if your were using some sort of server side scripting you wouldn't have to worry about the alert, keep in mind that you need a server with smtp capabilities.

1714.

Solve : .htm?=large ??

Answer»

I was viewing a video and I noticed that I could make it bigger
The ADDRESS in the address BAR before I did this was something like
http://www.lookatentertainment.com/v/v-1448.htm
(Cant say if thats an appropriate video or not... I think its just people getting hurt)
So I clicked 'Large' and suddenly the address turns to
http://www.lookatentertainment.com/v/v-1448.htm?size=LARGE

Now, I have seen the "?" and its following action in PHP and Perl, and a few other web application formats, but never in a .htm hypertext format.

How was this done?
Huh that is interesting and although I don't have a definite answer I'd still assume it's some type of scripting language Perl/PHP/ASP that's just generating the page. Possibly SSI? Not sure, but it's not plain HTML.Its just weird since normally you dont SEE a .htm with a following action.
It's a variable in their javascript coding, and you can use "window.location" to pull the variable out and use it.Very interesting

Know of any places to learn about how to do this? http://www.htmlgoodies.com/beyond/javascript/article.php/3471111Thanks for the page
(Applaud)
(A bit confusing... I think I will stick to HTML and TEMPLATES)(applaud) Was not aware something like this was possible with JavaScript. Thanks for sharing fffreak. No problem, I too had the same question a few years back.

1715.

Solve : image manipulaton?

Answer»

How to STORE and retrieve IMAGES in mysql using PHP??and Now i already FIGURE out how to store the actual image in the database,,.,
my problem now is: how to retrieve those images using php script???
I use google for searching the answer but I cant find the RIGHT one.,.,.

1716.

Solve : Need Help: HTML Sign Up forms (carrying information to other url)?

Answer»

For example:
I type:

Username: Bannana97
Password: XXXXXXXX
Email: [emailprotected]
SUBMIT

How do I make the submit BUTTON GO to ANOTHER link WHILE carrying the information to another spot.

Another example:
I type for my new website:

Name: ClubBannana97
URL: http://www.clubbannana97.com/
SUBMIT

How do I make it go to a page where it says this:

You have just created a website!</br>

website information:

Name: The Name I entered

URL: the URL I entered

?
?You would need to use PHP or ASP for that.

Try the following:

Page 1, where you enter the information:
Code: [Select]<?php

echo"
<html>

<head>
<TITLE>MyWebsite</title>
</head>

<body>
<formaction='page2.php'method='post'>
Name:<inputtype='text'name='name'id='name'/>
URL:<inputtype='text'name='url'id='url'/>
<inputtype='submit'value='Submit'/>
</form>
</body>

</html>";

?>

And for "page2.php":
Code: [Select]<?php

$name=$_REQUEST['name'];
$url=$_REQUEST['url'];

echo"<html>

<head>
<title>Page2</title>
</head>

<body>
<b>Youhavejustcreatedawebsite!</b><br/>
Websiteinformation:<br/>
Name:".$name."<br/>
URL:".$url."
</body>

</html>";

?>

That should work.... You don't exactly need a server side scripting LANGUAGE for this, if the server the user is using doesn't provide that functionality, they could always use HTML and Javascript...

Take a look > Here <, that should help.Yes, but nearly all servers now support PHP or ASP so that won't be a problem.You are right about that, I was just merely saying that if the user's web server did not support any server side scripting languages, than it would still be possible. And you can also use ASP.NET, CFM, JSP, Tcl, Perl, or Python as well, if the web server supports them...Quote from: fffreak on December 29, 2008, 03:46:16 PM

Take a look > Here <, that should help.

I missed that. Very interesting.
1717.

Solve : Dynamic radio buttons?

Answer»

I want to be ABLE to create radio buttons in my form dynamically. I have a database which has a table with some names in it, so I want to be able to create a radio button for each name I find in the table.

Pretend that there are 3 names, then when I open the form I should be able to see 3 radio buttons:

¤ name 1
¤ name 2
¤ name 3

How do I do this ? Can anyone please suggest some useful links or provide some help with the code...We need more information, what web programming LANGUAGE are you using? Do you have any source code that we can hack away at, since I'm sure most people do not want to code the ENTIRETY of file?

1718.

Solve : only showing a value if it equals something??

Answer»

Is this possible on my display page I have this
code :



the DEFAULT background is in css and has a no picture image which SHOWS when a picture is not there but for example in this table td there is the no image background picture controlled by css but no picture in the database in this cell so how can i make it so it only shows a picture when there is a VALUE to the picture? right now just shows the background with the annoying no image x.
How about you try this...

Code: [Select]&LT;td>
<img scr="./showpic2.php?adid=$id" />
</td>

1719.

Solve : information through packet?

Answer»

I NEED to know if its possible to send asm through packet small enough but still ABLE to RELAY information back to a remote server, and execute itself on DELIVERY?Delete this, wrong BOARD

1720.

Solve : really weird error... can php malfunction??

Answer»

i am getting this error: Parse error: syntax error, unexpected T_VARIABLE in /home/socialap/public_html/posters/include/rating_system/rate.php on line 1


from this code:

connect.php has no errors... i've already tested it. Maybe i'm just BLIND, but i can't seem to FIND out why i would ever get this error!?!?

thanks.

include('../../connect.php');
$id = mysql_real_escape_string($_GET['id']);
$rating = mysql_real_escape_string($_GET['rating']);

if(empty($id) or empty($rating) or $rating > 5){
die("Invalid poster/no rating");
}I don't SEE any errors either. Line 1 is

include('../../connect.php');

TRY removing the full STOPS and slashes.

include("connect.php");

1721.

Solve : Creating an array?

Answer»

Hello all, I want to create an array from information posted from checkboxes which are CREATED by a foreach statement. For EXAMPLE information is TAKEN out of the database table full of product numbers and several checkboxes are displayed for every product number, when the user checks multiple boxes and hit submit an array of the products in created. I got the checkbox part working, but I don't how to create the array. Would any one mind filling me in? -Thanks

the CODE that works do far:
Code: [Select]
$conn = "SELECT product_id FROM `products`";
$RESULT = mysql_query($conn, $query);

while ($row = mysql_fetch_row($result)) {
$product[] = $row[0];
}

foreach ($product as $y) {
echo "\n" . $y . "\n";
}

1722.

Solve : w3c css evaluation?

Answer»

Anyone noticed that the w3c css evaluation program has changed ?
Recently noticed that spry WIDGET menu bars are now FAILING this validation where PREVIOUSLY they didnt error.

you can validate the css with the w3c validator

and if you validate this adobe menubar sample it now fails
search for "adobe BarSample.html" to prove this problem

I didnt realise that the validation program evolves for specific versions of things (CSS version 2.1)

Anyone else notice this ?

________________
[links REMOVED - DO NOT ADVERTISE]
Hadn't noticed but THX for the info.Thank you for your information i want to know Use of w3c validator

1723.

Solve : Siple for programmer error unexpected T_STRING?

Answer»

Can someone PLEASE spot my error here Ive COMPARED it to my other stuff just like it and Im not seeing the problem. Line 14 is
Code:

$Frequency MHz = $HTTP_POST_VARS["Frequency MHz"];

Big THANKS in advance

Parse error: syntax error, unexpected T_STRING in /public_html/php/Freq_Table_dml.php on line 14

Code:

{
$Channel = $HTTP_POST_VARS["Channel"];
$Frequency MHz = $HTTP_POST_VARS["Frequency MHz"];
$MHZ Range = $HTTP_POST_VARS["MHZ Range"];
$Type = $HTTP_POST_VARS["Type"];
$COLOR = $HTTP_POST_VARS["Color"];
$LICENSE = $HTTP_POST_VARS["License"];
$Comment = $HTTP_POST_VARS["Comment"];
}A variable can't have a space, so lines 14 and 15 are affected. Try using an underscore (_).

1724.

Solve : Image not outputting?

Answer»

Hey guys,

I seem to be missing something here, when I output an image to the BROWSER it comes out as broken and I have no idea why. The last project I did was a business card maker that outputted tons of (WORKING) images, and I'm doing everything the same here.

I use output BUFFERING, and wiping the buffer right before header() and imagejpeg() doesn't work. I THINK it may have something to do with my encoding, though I've played around with that too. The only difference between this project and the last is that I'm now using UTF-8 encoding, with the bom. I have DEFINE('_ISO','charset=UTF-8'); set as well as UTF-8 with BOM option set in my editer. Could that be affecting this?

Any ideas? Quote from: nicolemcgrgr50 on December 26, 2008, 12:07:36 PM

... when I output an image to the browser ....
What does that mean? Are you developing web pages?
1725.

Solve : Problems with illustrator?

Answer»

Hi ,

I was trying to download adobe illustrator and after all the downloading I get this message on installation!


I reinstalled many times, I don't know WHATS CAUSING this problem, any help would be really appreciated!

Thanks a lot!The pic shows "Adobe InDesign 2.0.1 UPDATE" but you said "Adobe Illustrator" . . . I r ConFewzed. Quote from: Eg0Death on October 31, 2008, 10:05:55 AM

The pic shows "Adobe InDesign 2.0.1 Update" but you said "Adobe Illustrator" . . . I r ConFewzed.

Don't confuse yourself.Anyone has any Ideas?Since nobody seems to have any ideas and neither do I(I researched a little....)

So I have FINALLY Bought all the software I needed, so I don't have to bother about the downloads and the free trials etc etc.

So I bought:

1)Adobe Dreamweaver
2)Adobe Photoshop
3)Adobe Illustrator

Now I'm happy!!
1726.

Solve : can you help me with HTML and craigslist??

Answer»

anyone here familiar with using HTML for craigslist listings?

any help is appreciated!


pls see...
http://pastebin.com/m48fdea3


thank you!
Craiglist listings? ,

Wed 19 Nov

Synthetic Chemist - (NorthYork,ON)
TUE 18 Nov

Material Science PROFESSIONALS - (Guelph)


??So what do you need to do?

if your talking about craigslist , SEARCH results
css http://www.craigslist.org/styles/craigslist.css



include this.. Result here


http://www.craigslist.org/styles/craigslist.css" type="text/css" media="all">

and that at the top of your page
uhmmm im not sure what your link is for... but craigslist I mean...

http://sfbay.craigslist.org/I'd imagine those pages use PHP to fill in the data from a database. I wouldn't like to be the ONE typing all that out...i don't even know PHP It'll save you a lot of work if you want to create one of those pages.

Have a look at W3Schools PHP Tutorial and maybe buy a good book on PHP and MySQL.how could I help you? 
download a book, and read it during a NIGHT!! dont give up

1727.

Solve : How to embed external webpage components in your webpage ??

Answer»

Hello everybody.

Situation:
Me and a few others are supposed to setup a team home page for our local soccer team.
Problem:
To make life easier and to keep us automatically up to date I'd like to embed a few tables from another page - Fussball.de to be specific, cuz they get up to date information from ALL teams in Germany

Here's an example:
This page has the table of "Altliga Ü60 Kreisklassen A" league. I'd like to somehow embed it in our webpage.


Question:
How do I embed the table (or any other component) from the external webpage into our webpage ?
-------------------------------------------------------------------------------

Here's how I wanted to do it (Doesn't work):
Idea:
1.) Load the external webpage in an iframe
2.) Get the webpage contents with with javascript
3.) Localize the component and save it as a variable
4.) Change the iframe according to the size of the component


The code:
Code: [SELECT]<html>
<head>
<script type="text/javascript">
function TEST()
{
//List of iframes in the current document
var iFrames = document.getElementsByTagName("iframe")
//the desired Frame
var theFrame = iFrames[0]
//Frame document
//°°°°°°°°°°°°°°°°!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!°°°°°°°°°°°°°°°°°°°°°°°°
//This suddenly doesn't work :( even though the page is loaded in the 'iframe' tag
//°°°°°°°°°°°°°°°°!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!°°°°°°°°°°°°°°°°°°°°°°°°
var frameDocument = aFrame.contentDocument
//All tables of the frameDocument
var tables = frameDocument.getElementsByTagName("table")
//Because there's only one I try to initialize a variable with it
var table = table[0]
}
</script>
</head>
<body>
<button ONCLICK="test()">This is a button</button>
<iframe src="http://www.fussball.de/fussball/servlet/content/86?next=%2F0809%2F013%2F062%2F021%2F632130&tag=50001" width="100%">
</body>
</html>
Help's greatly appreciated

1728.

Solve : credit card payment?

Answer»

hi.. how to embed a credit card payment at your site
e.g. online store? what are the procedure.. who to contact etc..
thanks a LOT.. You can exactly "embed" a credit card suite into your site.

Do you have a free or a payed site?
Does the package include a number of MySQL databases?
Does it have cPanel with Fantastico enabled?bear in mind a fee WILL need to be paid to the credit card companies for the ability to accept them as a form of payment.For the full deal - you will need a merchant account - you will then need a host to provide an SSL which will need tied in with a ''Gateway" - Authorize.net is one example.

Then too you will need to AVAIL yourself of a shopping cart of some sort (ZenCart is I believe still a free option) ........ and this will need to have the card aspects tied in - it will in itself have databasing.

An easier route is to set up with a third party E-Commerce provider and hook that to a NEW domain - such that if your current one is mydomain.com then you COULD set up - shop.mydomain.com. You'll still need your own merchant account.

There are various ways to achieve payments on LINE, not forgetting the easiest which is PayPal which is a way to avoid the merchant account set up. This can be adequate if inventory modest.

1729.

Solve : Open in new window?

Answer»

Pls don't laugh but for the life of me I cant get this javascript to open 'http://www.websitename.com/index.htm' in a new window.
Can someone tell me what I am doing wrong or modify this code...thanks...

images[1] = "http://www.websitename.com/index.htm'>[/url]";Complete code

Code: [Select]<script language="JavaScript"><!--

//store the quotations in arrays

images = new Array(4);

images[0] = "<a href = 'http://website.com.au'><img src='http://website.com.au/random/image2.jpg' alt='More info'></a>";

images[1] = "<a href = 'http://website.com.au'><img src='http://website.com.au/random/image2.jpg' alt='More info'></a>";

images[2] = "<a href = 'http://website.com.au'><img src='http://website.com.au/random/image3.jpg' alt='More info'></a>";

images[3] = "<a href = 'http://website.com.au'><img src='http://website.com.au/random/image4.jpg' alt='More info'></a>";

index = Math.floor(Math.random() * images.length);

document.write(images[index]);

//done

// --></script><br>
There are a couple of ways you could do this. The simplest way is taking the HTML ROUTE...

Code: [Select]images[0] = "<a href = 'http://website.com.au' target='_blank'><img src='http://website.com.au/random/image2.jpg' alt='More info'></a>";

SETTING the target to _blank will cause the link to open in a new window. Now, if you want your site to be W3C-compliant, this fix will cause it to not validate because the TAG is deprecated. So, if that's an issue for you (or if you WOULD simply like to keep using JavaScript), you may want to check out this page which explains a JavaScript alternative...

http://www.webdevelopersnotes.com/tutorials/javascript/creating_opening_new_window_pop_ups_javascript.php3

I hope this helps.yes that will work ,that is the method of arrays or pointers could be used to allow the links to be opened in a new window.in the HTML code also you could use the frame tags so as to open in a new window.
----------
ragavendraQuote from: ragavendra on October 21, 2008, 05:16:58 PM

also you could use the frame tags so as to open in a new window.

Frame tags? Yeah, I'm not sure what he's going on about either. He's just another spammer as far as I can tell.if u want to open new window means we should use target='_blank'

Quote from: johnkennedy on November 03, 2008, 01:39:43 AM
if u want to open new window means we should use target='_blank'

<a href = 'URL' target='_blank'>

This has already been said.
1730.

Solve : Help, can't center my navigation bar!?

Answer»

i'm making a html page with a css. everything on the buttons work(hover, visited link, etc.) but i can't seem to get the navigation bar centered. i tried these FUNCTIONS in the css file:

align = "center";
margin:auto;
margine:inherit;

none of them work. here's my entire css code;

Code: [Select]div.navbar
{ font-family: Arial, Helvetica, sans-serif;
white-space: nowrap;
margin: auto;
DISPLAY:inline
align = "center";
margin:auto;
margine:inherit;
}

div.navbar a:visited,
div.navbar a:active,
div.navbar a:link
{ padding: 3px;
color: #300;
border-left: thin #f00 solid;
border-top: thin #f00 solid;
border-bottom:thin #f00 solid;
border-right:thin #f00 solid;
text-decoration: none;
margin: auto;
}

div.navbar a:hover
{ background-color: black;
color: white;
padding: 3px;
border-top: thin #00f solid;
border-bottom:thin #00f solid;
text-decoration: none;
}

a.button
{ font-weight: bold;
text-decoration: none;
background-color: #eb0;
color: blue;
padding: 2px;
border-width: 3px; /* border : 3px outset #eb0 */
border-style: outset;
border-color: #eb0;
}
a.button:active
{ border: inset; }

thanks in advanceand my html file, just incase;

Code: [Select]<?XML version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"lang="en">
<head>
<title>Navbar Home Page</title>
<link rel="stylesheet" TYPE="text/css" href="css/navbar2.css" />
</head>
<a class="button" href="home.html">&nbsp;Enter Site&nbsp;</a> <br /> <br />

<body>
<div class="navbar">
<a href="courseinfo.html">Course&nbsp;Information</a>
<a href="schedule.html">Schedule</a>
<a href="index.html">Homework</a>
<a href="sitemap.html">Site&nbsp;Map</a>
</div>
</body>
</html>
"align" won't work in a stylesheet. You NEED to use "text-align: center".Try this - short on time but a quick fix of sorts .... using most of your shown css code ..... with an addition and odd tweaks. Play with some bits to experiment.

Code: [Select]body
{
margin:50px 0px; padding:0px;
text-align:center;
}

div.navbar
{ font-family: Arial, Helvetica, sans-serif;
white-space: nowrap;
display:inline;
text-align: center;
margin:0px auto;
margin:inherit;
width:400px;
}

div.navbar a:visited,
div.navbar a:active,
div.navbar a:link
{ padding: 3px;
color: #300;
border-left: thin #f00 solid;
border-top: thin #f00 solid;
border-bottom:thin #f00 solid;
border-right:thin #f00 solid;
text-decoration: none;
margin: auto;
}

div.navbar a:hover
{ background-color: black;
color: white;
padding: 3px;
border-top: thin #00f solid;
border-bottom:thin #00f solid;
text-decoration: none;
}

a.button
{ font-weight: bold;
text-decoration: none;
background-color: #eb0;
color: blue;
padding: 2px;
border-width: 3px; /* border : 3px outset #eb0 */
border-style: outset;
border-color: #eb0;
}

The your html -

Code: [Select]<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"lang="en">
<head>
<title>Navbar Home Page</title>
<link rel="stylesheet" type="text/css" href="css/navbar2.css" />

</head>
<a class="button" href="home.html">&nbsp;Enter Site&nbsp;</a> <br /> <br />

<body>
<ul><div class="navbar">
<a href="courseinfo.html">Course&nbsp;Information</a>
<a href="schedule.html">Schedule</a>
<a href="index.html">Homework</a>
<a href="sitemap.html">Site&nbsp;Map</a> </ul>
</div>
</body>
</html>

1731.

Solve : Help with simple HTML code (link included)!?

Answer» HELLO, My 1st time here.

I helped a friend who had a site designed by someone else. All I did was use Filezilla to edit the HTML file of

http://newportconvertiblesouth.com/index.html

and add META keywords and description. Ever since I did this, the menu does not highlight. If you go to the site and click on any of the other pages, the links still highlight with no error. Yet the index page gives a small error icon at the bottom and the links dont seem to highlight when moused over!

Can someone take a look and offer advice? Thanks!!Not found?Quote from: kpac on December 18, 2008, 09:31:41 AM
Not found?

Its there. Might have caught it at the second I was changing the index file. But the link works now.

This all happened when I simply added META keywords and description. and saved the file with the FTP program. Not sure what the heck is going on!The link you posted doesn't WORK; it has an error in the spelling. You can edit your post and correct it. Is this it: http://www.newportconvertiblesouth.com/Yes, I am in idiot
I fixed the link lol.Do you have in your HOME page HTML file? I couldn't find it.
The source shows as very packed but the area is there - but all the script is hard to see clearly - and in fact I'd have thought a call to this code in an external .JS file would be a way to simplify a bit.

Hard to plow thru all that but my bet is you may just have a path error/errors PREVENTING normal operation, or possibly even when adding tags you deleted something ..... a copy of unmodified file would be useful to compare.

It does appear from links that all your pages are on root, including the CSS file, and so path errors would, on reflection, seem unlikely. Worth checking tho if the dynamics work on other pages.I ran the source through html tidy so I COULD read it, but didn't see anything that would cause problems. I would upload the original file to the webserver and see if that fixes it.
1732.

Solve : Space Around Photos (images)?

Answer»

Have a page with quite a few IMAGES...how do I create space between them, both horizontally and VERTICALLY?
The easiet way would be to PUT the images in a DIV. Try this code...

Code: [Select]<div style="padding:5px"><img src=".../image.jpg" border="0" /></div>

That should work. kpac's suggestion is the best but if you want to cheat ...... put the PICS in table cells and apply cell spacing and/or padding to make your gap to your taste.

1733.

Solve : pure MySQL?

Answer»
How to backup and load MySQL DATABASE???

THANKS!!!!!!1PHPMyAdmin has the OPTION to backup your databases.

I'm not sure what you mean by load the database...thanks.,.
1734.

Solve : How to make a web link from a saved doc.?

Answer»

Please can someone help me?

I have recently compiled a crossword and would like to be able to POST this at a forum, for the people there to have a go at COMPLETING it.
I used a free online program and followed all instructions given to send and access it to my Word prog. I have done that, but now I need to know, how do I get it posted at the forum where I want people to see it.
I have it saved, but when I tried to post a link at the forum, the path shows back to where I have it saved in my docs..obviously.
How the *censored* do I get this online? I'm assuming that some weblink has to be constructed, but don't know how.
I have absolutely no experience at doing this and basically haven't a CLUE what to do.
I have tried EMAILING the crossword program support, but they haven't got back to me, and that was two weeks ago!
I need to solve this ASAP, as it may be used for a webzine publication, and I'm running out of time fast!

Please help:confused

Apologies if this is posted in the wrong place too. First off - how is the file saved ... what extension? Then is the question as to whether the file/files suit the allowed upload extensions and size.

For normal uploading as attachment - the usual is simply browsing to where your file/files are stored and uploading from there - should be no need for any weblink.

If however your files were stored on a web server, then a suitable url would be applicable.

More info is needed methinks.

1735.

Solve : Thought i'd might as well share this with you guys?

Answer»

It's a FREE and EASY to USE WEB designer.

http://newaccounts.freewebs.com/?referer=cjb

1736.

Solve : Hit Counters & website chat rooms ????

Answer»

Hi
My first question:
I've been looking for a descent hit counter...
REEE without advertising.
Without ending on another site with a page I don't understand or where I am.
Can hit counter operation located on one's site?
But, of course, I'm in the learning process of website building. I am at one location now. I'd like to know good and reliabel site building place to choose from. I've been looking at Yahoo. Right now I'm learning at BraveHost.
I only just started. I know so very little. I'm doing well with all so far.

My next question:
I'm looking for a reliable FREE website chat rooms without advertising.
I heard from others, that RAN free websites, free hit counters & free chat rooms. But, unfortunately, I lost track of these people with my travels.
Some of these free website installed chat rooms were pretty good. There were controls for the host, etc., to have more than one host, along with other nice options.
I looked thru the internet, and I'm overwhelmed. I'mlooking for anothers experience. Giving advice where to go. What is good and what is not very good. etc etc whatever.

I am a beginner. I am enjoying the learning experience.
I'm interested in anyone's point of view and suggestions.
But, I'm having problems with applying these two problems. There is so much on the internet that it would take me a lot of time going thru it. Also, I'm somewhat hesitant about some of these sites. And how stop what I've chosen. I removed the code. And thats all I did. No notifications.

with appreciation for the help and suggestions given...
ron1
Just picking up on the hit counter aspect - I FIND www.statcounter.com is very good as a freebie - just put the code you'll get at your homepage footer. They only promote themselves thru a subtle link in the code.

You could also run a hit counter on your own server - if you have a cgi_bin facility then it is possible to run a small Perl script which will increment hits for you - either visible or invisible - a web search may well find you one of those. The statcounter route THO is the easiest option IMO.ChrisXPro
Thanks for this reply.
I downloaded the code and will try it out as soon as possible.
ron1
Ron - once you have the code you can test your page from computer as long as you are online ... it'll update with each page load if you have it set that way.

At least you can check it for position and looks before it goes on a server.Hi
I didn't quite understand what you meant "[[[once you have the code you can test your page from computer as long as you are online]]] ... [[[it'll update with each page load[[[if you have it set that way.]]]"

What do you mean? -from my computer without going to my site?
Settings for each page load? -you mean when any of the pages are looked into by someone?

I'm not sure of the settings...
On the Index page, I thought the counter would be indicated there...it isn't. The graphic sends me to StatCounter. I have to sign in. I really don't understand that much. But, I'd like the counter #'s to show on the Main Page.
I still have the Bravehost.com counter running for the time being. I'm changing cause I'm looking for certain options. I haven't had the time to look into StatCounter as yet. I'm not really interested in too much. I guess I'm using this as a learning process.

Thanks I appreciate this additional information.
ron

Ah - my bad - I had thought you had gone to Statcounter and set things up and got the final code.

All I meant was with that system - once code is dropped into an html page it can be check for function on your computer if online - because the code makes a call to the statcounter server - as long as you are on line then the counter displays and increments.

But you mention a statcounter graphic? To set up with them you need to go to site - sign up - then follow thru the series of pages to generate your own counter. I go for an image one and choose color of figures and BACKGROUND to suit my page - and usually opt for the medium size bold with 8 digits. If you go that route it should become clear. I am thinking you did not go thru the whole deal?

If you use a CGI approach then of course any code will not run until you have a page on a server.Hi
"I am thinking you did not go thru the whole deal?"

I most likely missed a lot. I just re-did some of the settings again. The digit counter did not show up. So I checked that.
Regarding your comment above. I hurridly went thru what I thought was the complete question form. I will go thru the whole thing again checking my settings. This is the first time in setting up like this. I had Bravehost.com hit counter, but I was interested in couple missing things. I am not interested in a lot of stuff anyhow.
I appreciate your helpful replies
ron

1737.

Solve : Interactive text box??? HELP!!?

Answer»

Hi, i was WONDERING if a CODE existed to make a TEXT box save what the last person wrote. Lets say somebody wrote 'HI EVERYBODY!', this would meen that message would stay the same untill somebody else changed it. TNX.
Jamie SALISBURY

1738.

Solve : new page generation,.,.,?

Answer» HTTP://photos-p.friendster.com/photos/04/18/30778140/1_547450374l.jpg" border="0"/&GT;

my question is.., how to generate new PAGES in php,., LIKE the picture above.,.,.?
Help me PLEASE.,.
1739.

Solve : help.,.?

Answer»

can someone help me how to deal with this one.,., new page generation as i called it.,.,More information please..."Red x" image PLACEHOLDER and no INFO - hmm yeah - can't GET very far with that!i mean., like forum.,. if there a lot of topic sent.,. of course it cannot be handle by only one page to view all of it,.,., there must me PAGES like "PAGES: [1] [2] [3] .... >>>", the problem is i have no idea with this.,. Methinks r3 posted to the wrong THREAD!

Thus far anyways ......... Can someone tell me how to get to Sesame Street?
1740.

Solve : PHP Coder Needed?

Answer»

I never checked this topic because, in my Unread Topics, I thought a topic this big would have already been solved....Turns out I'm wrong....
IMO, it is solved.

May I ask a question?

Why do you need this, Squall?Its not really for me, I was asked to HELP CLEAN up a page an he wanted a login for something. I HALF to make a few call to GET him an stuff but cause I know html he thought I could do it an stuff.Well, read this, an stuff.I'll get to it when I can.

1741.

Solve : Do you have an SMF forum??

Answer»

Here's a blatant advertisement if ever I saw ONE...

Just did a Mood Manager Mod for SMF...UNFORTUNATELY, they're dragging their feet over at SMF getting it approved...no offense, guys.

So, I thought I'd post it here to let you guys know you can DOWNLOAD it at SMFHacks.com...as well as BK-SMF.

Here's the link to the mod: http://www.smfhacks.com/hacks/Mood-Manager.html

Here's the CURRENT link for support for this mod (this will change when Simple Machines approves it): http://www.smfhacks.com/index.php/topic,3052.0.html

Anyway...just thought you'd like to know. If not...go back to SLEEP...this was only a dream.

1742.

Solve : Which graphic tablet??

Answer»

I am after help & advice regarding a graphic tablet, I don't mind splashing a bit out as I have already owned a graphic tablet when I was younger and it was cheap, good for playing around on Paint, but nothing more and now, I am more established and have a good knowledge of Adobe Photoshop & Illustrator and I regularly use both software programmes at college as I'm studying photography & graphic illustration so this item will definitely be used regularly so will be worth splashing out so I don't mind spending £200/250 on one prob more as in the new year I NEED a clear out and need to get rid of various things electric guitars & my PS3 so will have funds for something more expensive. I already own Adobe CS3 master collection as my parents bought it and we're getting CS4 soonish. ALSO, is there any companies that do student discount as I'm in full time EDUCATION? Sorry if wrong forum.

Any help much appreciated, thanks for taking time to read.


Josh Personally, I wouldn't buy Adobe software, anywhere else than on adobe.com. I have no recommendation for any specific but RECKON a wide Google search and analysis of spec's and prices COULD help narrow the field of choice.

1743.

Solve : moving objects?

Answer»

I have this problem where I'm praticing making web pages and everything LOOKS neat on the screen but then I resize the brower and everthing moves all over the place words scrunch up. I dont know I had this problem with HTML now I'm teaching myself CSS and I cant seem to stop OBJECTS from moving all over my page when I resize it. I'd like to know how to stop this from HAPPENING in CSS and HTML any help would be APPRECIATED. Thanks.Placing your object in a table should fix this problem.You're probably using absolute positioning in your CSS.

Quote from: Jacob on DECEMBER 17, 2008, 09:39:51 AM

Placing your object in a table should fix this problem.

And when you're finished and have the site "online", look at Browser Shots.
1744.

Solve : Posting comments by visitors on Website?

Answer»

I am designing a few Websites for some NGOs and others. I require help in creating a comments form which should POST the comments typed out and submitted by a Visitor to a Website, on the Page where the Comments Form has been placed.
I have seen many Websites where such Forms are in action, but do not know the PHP script for this action.

Kindly help.Try looking for the script on Dynamic Drive:

http://www.dynamicdrive.com/dynamicindex16/index.html

See if they have what you're looking for. Good luck.
ASlaterWhile thanking ASlater for the guidance provided, I have not been able to locate the requisite script on the said URL.
However, I shall keep looking and HOPE to find it soon.
Thanks a lot for the time taken to post the reply to my original query.You would need a MySQL connection and database to store the comments. Do you have a MySQL connection?Sorry that Dynamic Drive didn't have it. How's this one?

http://www.wsabstract.com/howto/forum.shtml

It has PHP and stuff, lots to read but maybe you'll find what you need, no guarantees, though. Good luck.

ASlaterA website like Dynamic Drive wouldnt have a script like that.

You would have to compose it yourself, because you need good PHP skills, and a database. I have not seen scripts that have are "COMMENT orientated" on a website like Dynamic Drive.Hi Zahid here from Pakistan

1st you make HTML file





$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>




Your Name:




Your Email:








Attention:


SALES
Designer
Managment
Others





Message:










2nd you Make PHP file


$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$visitormail = $_POST['visitormail'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];


if (eregi('http:', $notes)) {
die ("Do NOT try that! ! ");
}
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "Use Back - ENTER valid e-mail\n";
$badinput = "Feedback was NOT submitted\n";
echo $badinput;
die ("Go back! ! ");
}

if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "Use Back - fill in all fields\n";
die ("Use back! ! ");
}

$todayis = date("l, F j, Y, g:i a") ;

$attn = $attn ;
$subject = $attn;

$notes = stripcslashes($notes);

$message = " $todayis [EST] \n
Attention: $attn \n
Message: $notes \n
From: $visitor ($visitormail)\n
";

$from = "From: $visitormail\r\n";


mail("[emailprotected] ", $subject, $message, $from);

?>

Date:



Thank You :

(

)

Attention:


Message:

", $notes);
echo $notesout; ?>





Your Test is Submited


Back to Feedback Form



Back to home Page:

www.keyadv.com


Quote from: zahid on November 28, 2008, 02:05:01 PM
1st you make HTML file

--Code--

That should be a PHP file.
1745.

Solve : Free Chat Script?

Answer»

My FRIEND, and I have a website on http://forums-free.com. It's a PHPbb3 forum that comes with an AJAX Chatroom; however, we're having problems with the chat software. It FREQUENTLY lags and gives error messages.

We're looking for something to replace it... Just something that I can embed into a WEBPAGE (or setup easily if there's a better way) so our forum MEMBERS can chat with each other lag free.

I've googled "free chat script" and some other things, but I haven't had much luck. All I've found is software that you can use for free, but needed options (like being able to kick users) are DISABLED.

1746.

Solve : How to use HTML table like forms?

Answer»

It is possible to call other FORM in a table when you clink the link?

HELP ME Please.

it is my code,





zahid_art





 

 


 

 
 

 


 


How i open HOME, About Us & Contect in his area but when i click
then button then open.


Its not a frames it is a table so how is possible to do it


 


 


 


 


   
   
















 
 
 






ZAHID From Pakistan

Seems like you need frames to do what you want. Are you trying to avoid USING frames? I don't believe you can do what you want only using tables.Not totally clear on your objective but - you can set up a form field within a table cell.

If you want a link to take folks to a form field then perhaps write the form in a NEW html page - and call that page with a winopen to bring it up as an entity.

Expand further on what you want to do if possible.
1747.

Solve : HI I NEED HELP ON CONFIGURATION OF PHP5 + APACHE2.0.6...please?

Answer»

i intall apache in"C:/program files/apache group on my pc and also extract php in "c:/php/" folder i need to make my apache to know php so i open http.conf FILE and on load MODULE i WRITE a code like
then when i restart my apache it says systax error on line173 can' load the file"c:/php/php5apache2_2.dll " on to the server.

so can anybody help me? how to configure it
thanksWelcome to CH.

You might find some information on setting it up here: http://www.ricocheting.com/server/

You should buy a book on it though, to get the most out of it. 1. 'su' to root directory.

2. 'cd' to /usr/ports/lang/php

3. enter 'make config-recursive'.

4. on the config. screen make sure the box for apache is checked and the box for pv6 is unchecked. RETURN to command line.

5. 'enter' make install clean

6. when install is finished 'enter' /usr/local/etc/rc.d/apache2 start

7. 'vi' /usr/local/etc/rc.d/apache2
then AddType (copy & paste) [the output that was scripted after the make install clean.]

8. Then 'esc' :wq

9. 'cd' /DirectoryIndex and 'touch' index.php

10. enter /usr/local/etc/rc.d/apache2 restart

11. When finished you can check this by 'vi' /var/log/httpd-error.log

1748.

Solve : picture needed,.,.?

Answer»

How to post PICTURE in this forum???This can be done two ways. One is to attach the picture file to your forum post. To do this, expand the Additional Options feature at the bottom of the forum message composition pane and click the Browse button there to select the file on your HARD drive. I've done that with an image. To view an image posted this way, you must be logged on to the forum. The image will appear at the bottom of the message pane, under a horizontal line.

The other way is to put your picture on a photo/image hosting site and then insert the code in your message to DISPLAY the picture in body of your message. Using this method, a picture can be placed anywhere in the body of a message and can be seen by all viewers, whether logged on or not. Here's an example:


The code for this method is Code: [Select][IMG]http://i7.photobucket.com/albums/y256/farmpond/forums/oldmill.jpg[/IMG]I used photobucket.com for this; they provided the code; I simply COPIED it to the forum.

[Saving space - attachment deleted by admin]Thanks...,

1749.

Solve : automated response and saving form data to database - asp.net?

Answer»

hi i posted this before askin for help with frontpage. but now IM USING .net could you please help me thanks!

when someone enters any information on my site, i want the following:

1. instant automated response which sends an EMAIL to THEIR address confirming receipt of information.
2. automated email to MY address SHOWING me the information they entered.
3. entering the data into a database (e.g. MS Access or anything else - please advice).

what is the BEST way to do this? if you can guide me that would be great! any help would be appreciated!

thanks in advance! Unfortunately, I don't know the slightest thing about ASP.NET, but...

Quote from: goldni on December 15, 2008, 08:21:00 PM

instant automated response which sends an email to THEIR address confirming receipt of information.

This can be done with cPanel if your host provides it.

Have a look at http://www.w3schools.com/aspnet/default.asp for more info.
1750.

Solve : BIG BUGGZZZZZZ: Textarea?

Answer»

greeting....

As of now i'm in the middle of developing our website which is my thesis.,., about the blogs of the said study.,., I have a problem with this *censored* textarea for my blog.,.,

the database:

CREATE TABLE ‘blogs’ (
`blogs_id` int(10) unsigned NOT NULL auto_increment,
`blogger` varchar(15) NOT NULL,
`blog_topic` varchar(75) NOT NULL,
`blog_content` text NOT NULL,
`date_created` varchar(20) NOT NULL,
PRIMARY KEY (`blogs_id`),
) ;



the code:

$host = "localhost";
$user = "root";
$passwd = "*******";
$database = "cssonlinedb";


$connect_db = mysql_connect("$host","$user","$passwd");

if (!$connect_db) {

die ('Could not Connect: ' . mysql_error() );
}

mysql_select_db("$database", $connect_db) or die ('Cant connect the database: ' . mysql_error() );


$id = $_GET['IDuser'];
$topic = $_POST['blog_title'];/textarea for subject
$content = $_POST['blog_content'];//textarea for content
$date_time = date("m/d/y h:i:s");

// Get first the name of the blogger

$blogger = "SELECT username FROM css_registration WHERE memID = '$id';";
$blogger_test = mysql_query($blogger);

if ( !$blogger_test ) {

die ("ERROR: " . mysql_error() );

}

else {

$blogger_field = mysql_fetch_array($blogger_test);

$blogger = $blogger_field['username'];

// add the information in the database

$sql = "INSERT INTO blogs ( blogger, blog_topic, blog_content, date_created )
VALUES ( '$blogger', '$topic', '$content', '$date_time');";

$test = mysql_query($sql);

if ( !$test ) {

die ('ERROR: ' . mysql_error() );
}
else {

ECHO cool;
}
}



mysql_close();
?>




the input

What's a blog?
A blog is a personal diary. A daily pulpit. A collaborative space. A political soapbox. A breaking-news outlet. A collection of links. Your own private thoughts. Memos to the world.
Your blog is whatever you want it to be. There are millions of them, in all shapes and sizes, and there are no real rules.
In simple terms, a blog is a web site, where you WRITE stuff on an ongoing basis. New stuff shows up at the top, so your visitors can read what's new. Then they comment on it or link to it or email you. Or not.
Since Blogger was launched in 1999, blogs have reshaped the web, impacted politics, shaken up journalism, and enabled millions of people to have a voice and connect with others.
And we're pretty sure the whole deal is just getting started.
:




the error:

ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's new. Then they comment on it or link to it or email you. Or not. Since Blogge' at line 2


// this code really freaks me out.,.,. and i know that the datatype text has a maximum length of 65535 characters. is it in the textarea?

thanks.....
reynz



but if i submit a small amount of information on my blogs or SMALLER number of characters.,. my code is really okey.,., it only differ when i post bigger number of characters........(informaion[blog-content])
thanks in ADVANCE.,., and merry christmas to allWhat line does it say the error is on?
Is that the full code above there?

I can spot a few errors but I want to be sure it is the right one.... even me cant figure out what line that causes error.,.

all i know is that., if i post few character blog that code is good.,.

does textarea and post have limitation??Where does it say the error? In you browser?

Quote from: r3ynz_t4nz on December 04, 2008, 10:54:55 PM

does textarea and post have limitation??

If the form method is set to POST, then there is no limit on what can be sent.yes.,. the error is in the browser.,., and i use post for this blog.,.,. it only differ on the input.,.,.Copy and paste the exact error message, as well as the whole PHP FILE. If you think it's too long, attach it with a .txt extension.i cant still figure this errors,.Quote from: kpac on December 08, 2008, 10:25:32 AM
Copy and paste the exact error message, as well as the whole PHP file. If you think it's too long, attach it with a .txt extension.