dcro2 Posted April 9, 2011 Share Posted April 9, 2011 with Internet Exploder's limit being 2083 chars. That was soo subtle On topic: well, I think you guys found the problem haha. Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199435 Share on other sites More sharing options...
powW Posted April 9, 2011 Author Share Posted April 9, 2011 Stop right there. You have to load the file into the web browser by calling it from the webserver. http://localhost/, not file:///C:/. And you'll want to remane any directories in there so they have no spaces in the names. Umm how do I do that? Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199439 Share on other sites More sharing options...
dcro2 Posted April 9, 2011 Share Posted April 9, 2011 Do you even have a web server set up? Apache ring a bell? Xampp and wamp are two options for an easy apache/php/mysql installation for example. Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199441 Share on other sites More sharing options...
powW Posted April 9, 2011 Author Share Posted April 9, 2011 Do you even have a web server set up? Apache ring a bell? Xampp and wamp are two options for an easy apache/php/mysql installation for example. Using xampp Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199443 Share on other sites More sharing options...
powW Posted April 9, 2011 Author Share Posted April 9, 2011 This is what I did Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199445 Share on other sites More sharing options...
dcro2 Posted April 9, 2011 Share Posted April 9, 2011 Err.. you have in your site root Dulton_Webpage, but you're using 'Dulton Webpage'. I'm guessing you renamed the folder after the suggestion to not have spaces, so if apache is running, just click on this link http://localhost/Dulton_Webpage/ and add the rest of the path to where your php file is located. Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199451 Share on other sites More sharing options...
powW Posted April 9, 2011 Author Share Posted April 9, 2011 Err.. you have in your site root Dulton_Webpage, but you're using 'Dulton Webpage'. I'm guessing you renamed the folder after the suggestion to not have spaces, so if apache is running, just click on this link http://localhost/Dulton_Webpage/ and add the rest of the path to where your php file is located. The Date you require is : Notice: Undefined index: Date_Required in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 12 Your Title is : Notice: Undefined index: Title in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 16 Your forename is : Notice: Undefined index: Forename in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 20 Your surname is : Notice: Undefined index: Surname in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 24 Your Email address is : Notice: Undefined index: Email_address_of_person_applying_for_tickets in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 28 Details of Student Your Childs forename is: Notice: Undefined index: Forename_Of_Student_attending_Dulton_School in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 34 Your Childs Surname is : Notice: Undefined index: Surname_Of_Student_attending_Dulton_School in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 38 Your child attends class : Notice: Undefined index: Class in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 42 The number of Adult tickets you require are: Notice: Undefined index: Number_Of_Adult_Tickets in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 46 The number of Student tickets you require are : Notice: Undefined index: Number_Of_Student_Tickets in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 50 The number of OAP tickets you require are : Notice: Undefined index: Number_Of_OAP_Tickets in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 56 Your method of payment is : Notice: Undefined index: Method of Payment (Cash or Cheque) in C:\xampp\htdocs\Dulton_Webpage\Ticket_request\Confirmation_Page.php on line 62 That's what came up :s Edit: Oh do you mean on dreamweaver? Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199452 Share on other sites More sharing options...
dcro2 Posted April 9, 2011 Share Posted April 9, 2011 No, you did fine. Did you submit the form to this page or just access it directly? Sorry, I think I confused you. You need to access the form first then submit it. Just remember to use the same prefix (http://localhost/Dulton_Webpage/) as you just did. Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199455 Share on other sites More sharing options...
powW Posted April 9, 2011 Author Share Posted April 9, 2011 No, you did fine. Did you submit the form to this page or just access it directly? Sorry, I think I confused you. You need to access the form first then submit it. Just remember to use the same prefix (http://localhost/Dulton_Webpage/) as you just did. OMFG!"£"$£"!% It works!!!! Thank you soo Much!!! Thank you to everyone who tried to help me as well (Pikachu2000) But w8 will I have to go through this directory everytime? Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199456 Share on other sites More sharing options...
Pikachu2000 Posted April 9, 2011 Share Posted April 9, 2011 PHP must be parsed by the php interpreter, and for that to happen the file has to be served by the webserver. If the URL doesn't start with http://, the webserver isn't serving the file. So, yes, anytime you test a file, you need to access it that way, not using File ---> Open, or typing file:/// in the browser. Quote Link to comment https://forums.phpfreaks.com/topic/233196-php-script-soz-im-a-beginner/page/2/#findComment-1199477 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.