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
Member Avatar
+0 forum 2

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 5

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
Member Avatar
+0 forum 3

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
Member Avatar
+0 forum 3

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 5

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
Member Avatar
+0 forum 3

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 2

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
Member Avatar
+0 forum 1

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
Member Avatar
+1 forum 6

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
Member Avatar
+0 forum 4

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
Member Avatar
+0 forum 6

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 5

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 2

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
Member Avatar
+0 forum 5

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
Member Avatar
+0 forum 4

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
Member Avatar
+0 forum 2

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 1

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
Member Avatar
+0 forum 1

is there a way to auto increment a value in a MySQL with PHP without having to lookup the value for instance: UPDATE SomeTable SET cell=cell++ WHERE row='some_row'

Member Avatar
Member Avatar
+0 forum 1

i have created this web page with html and php where i need to set cookies to block users voting more then once i have used something like this code: if (isset($_COOKIE["x"])) { echo "You've already voted once!<br><br>"; } but it doesnt work can any one help plz :) :) :)

Member Avatar
Member Avatar
+0 forum 1

I'm looking for a small script that I can use to limit the number of downloads per day for a specified file, or limit the bandwidth for said file per day. Any Ideas? :D

Member Avatar
Member Avatar
+0 forum 3

Hi all, The problem: index.php downloads instead of actually executing the script. I used to have my machine setup with php/apache/mysql/WinXP and it worked. I downloaded the newest release of php 4 and now it won't work. What happened? Setup: ------ Windows XP SP 1 PHP 4.3.10 Apache 1.3.33 mySQL 4.1.8 Any and all help is appreciated. -Derek Parnell

Member Avatar
Member Avatar
+0 forum 3

hello I have created a website where voters vote for their favourite website. I have used radiobox. does anyone know how to count the votes in terms of percentage after the user has voted. The result should come up in a new webpage. Also the website should not allow a voter to vote more than once. thank you all :cry: :cry: :cry: :cry:

Member Avatar
Member Avatar
+0 forum 5

The End.