Member Avatar

i didn't see any html forums so I'm posting this here... what should we use in place of the align tag since it has been deprecated? i know it has been replaced with css, so how would i convert the following two tags? <p align="center"> </p> <td align="center"> </td>

Member Avatar
+0 forum 4
Member Avatar

This is a simple thing but I havn't found it by searching so I will just ask. I am not sure if this is a php code but since my CMS (e107) is written in it I felt I should ask here. So the little icon you get in the Firefox tab or when bookmark a page in IE, how do you do that? I know how to make a little icon but what is the code? I see Daniweb has one. :?:

Member Avatar
+0 forum 6
Member Avatar

Does anyone know how one would go about precaching some images for a page I'm creating? The trick is, I only know which pictures to precache at the very top of the script, so the list can't be stored in a .js file like normal. Since there are different pictures for different users, the script needs to precache the pictures dynamically. Anyone know how to?

Member Avatar
+0 forum 1
Member Avatar

I have recently installed php nuke into my web host by extracting all contents of "html" folder into my main directory. I went to "http://www.myhost.com/admin.php" to find this error message: [code] Warning: main(language/lang-.php): failed to open stream: No such file or directory in /home/killtpfn/public_html/mainfile.php on line 183 Warning: main(): Failed opening 'language/lang-.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/killtpfn/public_html/mainfile.php on line 183 Warning: get_lang(admin/language/lang-.php): failed to open stream: No such file or directory in /home/killtpfn/public_html/mainfile.php on line 198 Warning: get_lang(): Failed opening 'admin/language/lang-.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/killtpfn/public_html/mainfile.php on line 198 Warning: head(themes//theme.php): failed to open stream: No such file or directory …

Member Avatar
+0 forum 1
Member Avatar

Hi, i was wondering if anyone can help me. i have an a form that has two options A and B in it. when the user choses an option and clicks submit a php script is executed. what i want to do is if the user selects option A then it executes a query and if they click option b then they execute a different query. Here is some sample code: [B]Form[/B] <td> <tr> <td> <input type="radio" name=TimeDataFrm value="Buy Data" checked>Buy Data </td> </tr> <tr> <td> <select name=DataOptionFrm> <?php $qry = "SELECT TimeData FROM Chrgtbl WHERE TimeData Like '%m%'"; $result …

Member Avatar
+0 forum 1
Member Avatar

hi, i was wondering if anyone could help me. i'm new to php and i'm having problems setting up a session. i have a login page (page1) where the user inputs their username and password and when they click the submit button they are brought to another page (page2) where they have two options. if they choose option to purchase a ticket they are brought to page3 where they choose the type of ticket. when they click submit on page3 it executes a php script that generates a ticket number and inserts it into the ticket table. what i want …

Member Avatar
+0 forum 2
Member Avatar

Morning all, I don't know how to solve this problem Here it is: $price_unit = "20.45" $qty = 'qty'; $net = 'net'; $net = $qty * $price_unit ; as: 0<$qty<10 to parse in a textbox. I do that : if ($qty =0) { $net =0; } elseif ($qty =1) { $net = $price_unit * 1; } elseif ($qty = 2) { $net = $price_unit * 2; } .... else{echo "Message...."} In form html ..... <input type = "text" name = "qty" value = "<?php echo $qty ?>" size = "6"> <input type = "text" name = "gross" value = "$qty …

Member Avatar
+0 forum 1
Member Avatar

Somehow my code keeps getting extra spaces at the end after the last ?> No matter what I use, or what I do, I keep getting it and it is causing function errors. Any suggestions?? Thanks!

Member Avatar
+0 forum 5
Member Avatar

Hello peeps i need some help for a template system. i want to make a script so when a user submits a article/tut it automaically sends me a email with a link in it + plus the submited article/tutorial when i click the link it automatically puts the tutorial into my template someting simular to good-tutorials.com :p

Member Avatar
+0 forum 3
Member Avatar

Ive created this awesome CMS, you see, but one problem... It reades every thing from the catch! NOT GOOD! Like that I have to refresh the page every time I wan't to see changes in it! Is there a way to make is so that the website doesn't read from the catch?

Member Avatar
+0 forum 3
Member Avatar

I have a website that requires users to register. When they register their details (name, dob etc) go into an sql database. The form it goes into is called User_dtls. I want the users to be able to edit their own details through the website but im not sure how to do it. any ideas?

Member Avatar
+0 forum 1
Member Avatar

Help ! Can someone help me quickly LOL I'm trying to switch over to a new server & all of the PHP & Javascript stuff is missing :( See, current server... [url]http://www.exoticpublishing.com[/url] New server... [url]http://216.82.123.216/[/url] The left nav is missing, the right newscroller is missing & the last date & time updated at the bottom is missing. Can someone PM me to help me pleeasseee I need this all moved over in the next week as I'm switching over. All of the files are uploaded onto the current server & I don't understand why it's not showing up. Thanks so …

Member Avatar
+0 forum 5
Member Avatar

i'm making a website for a friend with his movies in, he wants users to login before being able to view these movies, i don't know how to stop them viewing it by typing in the address. Thanks, expect many more help requests as i am a noob ;) - Alee

Member Avatar
+0 forum 3
Member Avatar

Hello, ( Sorry I originally posted this on the wrong forum) I am trying to do a simple form (text fields only). The users enter, submit, then there is a confirmation page and information is sent to an email. When 'submit' is clicked there is no information returned from the $_POST variable. Here is the code: [PHP] $to="MyEmail@MyAddress.com"; $subject=$_POST['course']; echo "<p>Thank you" $_POST['name'] "!<br>"; echo "Your assignment for" $_POST['course'] "has been submitted."; //mail string to send to email $msg = "NAME: " $_POST['name']; $msg .= "LICENSE NO: " $_POST['license']; $msg .= "EMAIL: " $_POST['email']; $msg .= "DATE: " $_POST['mydate']; $msg …

Member Avatar
+0 forum 1
Member Avatar

What program would I use to compile php codes? How would I then use them on my webserver? I have installed php (not sure which version) but how do I use the scripts after I compile them. I am using windows XP Pro and Apache 1.3. Also How do I configure apache to run with php? When I installed php it gave me the option to automaticly configure apache, but declined to do so saying it didn't support it yet. thanks

Member Avatar
+0 forum 2
Member Avatar

Hello. Can somebody help me with creating a .php template that querys a MySql DB for a simple report. I need 3 input fields: 1.Name: 2.Date From: 3.Date To: And a button "Submit" that presents the above data in some kind of easy understanding layout. database name is order table is order_mod_test I donĀ“t know if this is enough info for you guys. Thanks a lot. :)

Member Avatar
+0 forum 1
Member Avatar

Which of the following is the proper syntax for the latest version of PHP? [code]echo "My name is $name. How are you?";[/code] [code]echo "My name is " . $name . ". How are you?";[/code]

Member Avatar
+1 forum 6
Member Avatar

Hi guys....newbie on the forums here :) I have developed a php form processor for a project i am working on. I am trying to validate the email address, however i want to add 1 more check the the default script. At the moment i have the following: [CODE]function if_email($staff) { //Check the valididty of the email address entered if (ereg('^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $address)) return true; else return false; }[/CODE] Which I have taken from a PHP book i am working with. My question is as follows: The textbox that the $staff variable is linked to has the text "[USERNAME]@landau-forte.org.uk" pre-defined in …

Member Avatar
+0 forum 4
Member Avatar

The form (form.htm) posts a value from a text box (id='first_name') into a script (test.php) that checks the data entered. The script takes an array of required fields from a config file (config.php) and uses these to validate the data that comes from form.htm. If the required fields ($required) are not filled in then an error message is displayed. If they are then a 'Thank You' message is displayed. My problem is with the following script: [CODE]<?php require_once("config.php"); if ($required) { $require = explode(",",$required); for($n=0; $n<count($require); $n++); { $field = $require[$n]; if(!$_POST[$field]) { print $msg['required']; } else { print 'Thank …

Member Avatar
+0 forum 6
Member Avatar

I am so glad I found this forum because I dont have a clue about much .So I hope some one can help me out I have a directory on my website powered by Chipmunk Directory and I would like to add the following code so that the first three listing are listing from gofeed. Gofeed is who supplied me with the following code. "http://www.gofeed.com/cgi-bin/smartsearch/include.cgi?keywords=(KEYWORD)&username=(USERNAME)&suid=(YOUR_MEMBERS_USERNAME)&external=1&show=10&xml=1&IP=(IP_ADDRESS)" Thanks

Member Avatar
+0 forum 1
Member Avatar

I want to find out if php can allow me to create whatever.homepage.com using my web address. I want to point the whatever.homepage.com to the folder homepage.com/whatever. Will php allow me to do this? O is there another script that will allow me to do this?

Member Avatar
+0 forum 5
Member Avatar

Ive built a script which allows me to add domains which have a name, expiration date and the date it was registered. However everytime i log into the admin panel i would like it to show me all domains which are about to expire in a supplied time. However im unsure how i would go about doing it. Ive had an idea using the time() function but i would like it to be user friendly so they could just enter a date like 11/11/05. Thanks in advance, Simon

Member Avatar
+0 forum 1
Member Avatar

I use Turck mmCache to optimize PHP running on my webserver. Someone informed me tonight that the project has been suspended or stopped or something? I was just wondering if anyone knows anything about this? Thanks :)

Member Avatar
+0 forum 2
Member Avatar

Hey, Does anyone know how to pass a php variable into a form field? I want to reproduce what the user typed into a text box in another text box. Is this even possible? Thanks, JameZ ;)

Member Avatar
+0 forum 5
Member Avatar

Hi guys, I have been looking at various form processing scripts, bascially to gain some understanding of how they work. I have managed to work through one section apart from one bit. I keep seeing the following: [CODE]$_POST[/CODE] I was just wondering what this was. I am using Dreamweaver MX and it changes the colour of every $_POST. So it doesnt look like a variable. Can someone explain what it is and what it does - or is it just a variable for something? Thanks, JameZ ;)

Member Avatar
+0 forum 4
Member Avatar

Have a look at the following code. It is the only thing in the file...the following variables are defined outside the php file: [list] [*]$required [*]$first_name [/list] [CODE]require_once("config.php"); if ($required) { $require = explode(",",$required); for($n=0; $n<count($require); $n++); { $field = $require[$n]; print $first_name; print $_POST[$first_name]; } }[/CODE] When post data to this php file the value from the "first_name" field is printed - as shown above in the first print statement. However, the SAME data should be located in the $_POST array correct? So when I try to print the value (secont print statement) why does it show up blank? …

Member Avatar
+0 forum 2
Member Avatar

I am going to lease out some bandwidth to a friend of mine on one of my accounts and I want to know what are typical PHP extensions so that I can disable them with htaccess files (as I dont trust this friend of mine). So far I can only think of 3 extensions: php, phtml, php3 are there any other extensions? how about other extensions for asp? my web host supports asp access so I want to make sure to seal off all extensions that could comprimise the security of my website. And no I dont have access to …

Member Avatar
+0 forum 1
Member Avatar

OK im trying to make a script but I dont know how to do it exactally, what i want to make is a board for buttons where the visitor can come and put the url of their button and therir link and their button will be displayed. and once it has reached the limit you set it will push the last button off and add yours to the top. I know it will need to record the info into a data base and I would like it to also like it to record the users ip address. plus I would …

Member Avatar
+0 forum 1
Member Avatar

I'm trying to write a web application that will allow me to synchronize a folder in my PC with a folder in my website. Can I do this with PHP alone? Is there a script out there that can do this? Can you give me some pointers in how to do this? THanks.

Member Avatar
+0 forum 1
Member Avatar

Sorry very new to PHP I am currently working through a book and I am working on connect to a DB I use this command: $db = new mysqli('localhost', 'bookorama', 'bookorama123', 'books'); and I get this error Fatal error: Class 'mysqli' not found in c:\Inetpub\wwwroot\mystuff\chap11\results.php on line 26 from what i understand mysqli is a comman command so i would of though the clas would be standard. I presume my config is wrong. please can someone help me where have I gone wrong

Member Avatar
+0 forum 1

The End.