Create A Page That Will Eliminate Everything Between The < Script > Tags On A Page
I have been trying to create a page that will eliminate everything between the < script > tags on a page and then render all the HTML that is leftover. For some reason, the page won't load for me, but when I copy the source, paste it in a text editor, manually delete all the JavaScript, and then just render what is left over, it works fine.
I have an error and I don't know why I'm getting this error. I don't know what is incorrect about the code.
QuoteParse error: parse error, unexpected ':', expecting ']' in /fantasypoints.php on line 25 Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Form Script - Create The Landing Page In Html With Tags
A form that people will enter their info, and when the submit it, they will land on a page that shows the info they submitted for them to double check that it is the correct info before they confirm the submission. I have an idea that I could create the landing page in html with tags like [firstname] and [address], and have the script replace those tags with the matching field data from the form. I just can't figure out HOW to do it. Sorry if I'm rather incoherent. just spent a long night attempting to figure this out. I'm feeling very, VERY Dense, even with my very limited PHP knowledge.
View Replies !
Eliminate The Carriage Returns Between The P Tags
Have some text like so: <P> adsfasdfasdfasdfasdffsd asdfasdf dsafsdfasdfasdfasdfasdf asdfasdfasdf </P> asdfasdf fasfdasd aasdfasdf I am trying to eliminate the carriage returns between the P tags (only). I have tried just about everything I can think of and am at a loss.
View Replies !
I Want To Create Something Like AMAZON: Those Who Liked Page A Also Liked Page B
I want to create something like AMAZON: those who liked page A also liked page B (I am going to apply the concept to a few different selections, but to keep it simple I will talk about page popularity here - like AMAZON talks about purchase patterns: those who bought A also bought B, C and D). In my mysql table, I record everytime a visitor looks at a particular page (I keep track of people with sessions and they can only look at a page once). Next, what I want to do is to show a small list of similar likes. That is, people who had an interest in page A also had an interest in page B. The structure of my table is: id timestamp session_id page_name There is a unique index on the combination of session_id and page_name. To work out similar likes for page X, my idea was to make an array of all the session ids that looked at page X and then select the top 10 of pages that these folk looked at. My question is, should I do this in PHP with a bunch of arrays, adding total counts while looping through an array or shall I use SQL statements. I could even make a really long string of WHERE session_id = A or session_id = B, etc..... Although this seems really inefficient. Another question I have is whether you think this will be a self-fulfilling prophecy (e.g. if you say that page Y is also popular then people will check it out and therefore make it more popular).
View Replies !
Includes The HTML In Between The <BODY> Tags Onto The Page?
how can I get a php page to have 2 includes? One works fine, but then I copy and paste the script (<?php include("page.htm");?>) and the second page doesn't appear. How can I get the page to display? Is there a php function to have an include page that just includes the HTML in between the <BODY> tags onto the page?
View Replies !
Dynamic Meta Tags - On Page Load
Dynamic Meta Tags and page Title i'm designing a new site and i don't want to edit Meta Tags and page Title on each page, I'm thinking of using php and sql to do that. This is how i'm thinking of doing it makeing a table in mysql fields pagename,metakeywords,description,title, etc then just put some code on top of each page to get this info depending on the page the browser is loading. Is that a good way of doing it? I got a question regarding this way, How do i get the page name that is being loaded?
View Replies !
Create A New Page
i am currently planning a new content management system, a very simple one for a uni project. I plan to have the page content and links called from a database using mysql and php. The problem is how to create a new page?? This will have to automatically update the links on all pages. Which wont be hard as to get the links i can set up each page to automaically select * from the links table.
View Replies !
Create A Frameset PHP Page.
I've tried many different ways. Nothing works properly. Well, one way that it works, but the other site cant seem to find the frame name, because it is in PHP. It works so well in HTML. Now, I am trying to create one in PHP, so I do not have to create hundreds of HTML pages for each links. There is only one PHP page and it contains the framesets. What is the proper way to code framesets in PHP?
View Replies !
Dynamically Create New Web Page
i'm making a cms, and I have a good portion done, I have it set up where the admin can log in and create a new post which goes to the database. I am just wondering how I can make this post a new web page? I have been trying to study how they do it in wordpress but with no avail. Anyone have any suggestions?
View Replies !
How To Create A Non Existant Page...
Here is what I am trying to do.... I am trying to create an RSS Feed from my MySQL Database Category Structure... The ONLY part I need help with... I need to be able to CREATE a page with PHP. I know about the mkdir() and how to use that... But these RSS pages do not exist yet.. and I need to create them with PHP. So how would I go about creating a PAGE... The fputs() command requires that the page I am trying to update already exist... I need something similar that will CREATE it and then I can fputs() the data into the page..
View Replies !
Create HTML Page
I would like to make a form that once you insert data into the form,it ll automatically create a html format of the data you entered in a html and save it in a folder! How do i go by doing this?
View Replies !
Create An Administration Page
I'm trying to create an administration page. The application is to give doctors, medical assistants, front office support and transcriptionists the ability to upload and download files. Each of these groups of people will require different levels of access. Some are allowed to view and edit. Some are only allowed to view. The users are all going to be assigned a level of access. I need to write a script, based on the access level of the user, that will direct the user to the area of the website where he/she is allowed. Each access level will have their own main menu which will show the functions that are available for that level.
View Replies !
Create A Page Dynamically
Is it possible to create a php page dynaimically? For example, when a user is added I'd like to create a page in a directory in their name so users could go to www.mysite.com/jack or www.mysite.com/jill and index.php will have been created there. I know there are many ways around this but I'd like to know if a php page can be created on the server.
View Replies !
Create A Pinged Page
What I'd like to do is as follows. Everytime a new entry is entered into a database (whether entered automatically with URL variables or through a webform) a url is "pinged" with the new information. For example, say I enter the following items into a database Entry1 Entry2 Entry3 A url is generated similar to the link below www.test.com/ping.php?id=Entry1&name=Entry2&town=Entry3 and executes it self by visiting another predefined url with the newly enter information. Where do I begin and what's the best method of accomplishing this?
View Replies !
What's The Best Way To Create A Page System?
what's the best way to create a page system? My problem is I have a lot of images (around 30) on 1 page that just goes straight down, what's the best way to make some sort of page system that puts like 5 images per page with 6 pages or something like that? Code:
View Replies !
Dynamically Create And Save Php Page
Here is my code: $filepointer=fopen("http://www.mysite.org/usersetup/newusers/" . $SESSION_UID . "/configsite.php", "w+"); $data = "<? $name = ' . $datatosave. ' ?>"; fputs($filepointer, $data); fclose($filepointer); My goal is to dynamically create a .php file with the contents of <? $name = "variable data"; ?> My code doesn't work. Something with the php page, I think. I and using similar code to populate .txt files with dynamic data, without variables, and it works file. Apparently, a quick change to .php is harder than I thought. I"ve even tried sending a simple line of data to the php page with no luck. Heck, I even tried doing it as a text file and rename to .php but it didn't like my rename.
View Replies !
Create Web Page In Multiple Language
i want to craete site which shows the contents as per the langauge i choose. so can anyone give me idea that how this is possible. i know tha problem but i don't have any idea about soultion. so pls reply me if u know
View Replies !
Create A System Where On Every Page There Is A Box With A Space
I'd like to create a system where on every page there is a box with a space: username / password. Also there is one page with similar boxes, as well as one for email address and first/last name. When you sign up originally it takes the entered password and stores in mysql as md5() then when you login it will also md5() password. I want it to mp5() it from the browser once (javascript) and then again on the server for added security. Anyone can give me the code to this so I can learn the rest.
View Replies !
Create A Pop-up (on Page Load) On Certain Dates
I'm new to PHP, and i want to create a pop-up (on page load) on certain dates.. What i have is the script for the pop-up: <body scroll="auto" <?php $today =date("d-F"); if ($today==$datum) {echo "onLoad=".$g_birthday_pop;}?>> The pop-script = $g_birthday_pop = <<<EOT "MM_openBrWindow('http://www.nu.nl','popup','width=300,height=300')" EOT; $datum is in another file (include/datum.php): <?php $datum= "30-December"; ?> And this works if the date is 30th of December, but i want it too on other dates that you put in $datum Something like: <?php $datum= "30-December";"10-March"; ?> So i want to control the pop-up just by editing the "datum.php"-file
View Replies !
Create PDF File :: Page Not Found
I have some problems with using php to create PDF file. I have tested my php and making PDF already enabled. But when testing the code below, it always takes me to Page not found. <?php try { $p = new PDFlib(); $p->begin_document(NULL,NULL); $p->set_info("Creator", "hello.php"); $p->set_info("Author", "Rainer Schaaf"); $p->set_info("Title", "Hello world (PHP)!"); $p->begin_page_ext(595, 842, ""); $font = $p->load_font("Helvetica-Bold", "winansi", ""); $p->setfont($font, 24.0); $p->set_text_pos(50, 700); $p->show("Hello world!"); $p->continue_text("(says PHP)"); $p->end_page_ext(""); $p->end_document(""); $buf = $p->get_buffer(); $len = strlen($buf); header("Content-type: application/pdf"); header("Content-Length: $len"); header("Content-Disposition: attachment; filename=hello.pdf"); print $buf; } catch (PDFlibException $e) { die("PDFlib exception occurred in hello sample: " . "[" . $e->get_errnum() . "] " . $e->get_apiname() . ": " . $e->get_errmsg() . " "); } catch (Exception $e) { die($e); } $p = 0; ?> I wonder what the reason is? Thanks in advance for your help.
View Replies !
Create Images From Within Current Page
I did a few searches but came up empty on this subject, although I may be blind. I know how to create an image and all that jazz ... but am having trouble figuring out how to generate the image on the fly (from inside a curent page) without it spitting out crap characters at me. I know you need to use the header content type of image/png - but that makes my whole page just an output of the image, as expected. Code:
View Replies !
Create A Shoutcast Kick Page
I would like to create a kick page for my shoutcast server. The page would contain a link which users can press and it will trigger an event and then show a new page. The event is to trigger a private passworded link in the background.
View Replies !
I Want To Create Web Page Acting As Text Editor?
What I am trying to do is to create a tutorial for my beginning students for JavaScript and PHP, using a very simple online editor like the one @ w3schools, So the left window will be the text file code, such as: <html> <body> <script>document.write("This is a test.");</script> </body> </html>...
View Replies !
Create A No-scroll List With Page Numbers ?
I have a site that lets users select a list of music based on genre etc. so each list could be made up of different tracks every time (www.makin-trax.co.uk), especially as I'm adding new tracks each month. I'd really like a way to stop all lists from scrolling, if they are longer than the visible page. I know everyone has a different amount of viewable space on their monitors, so I need a way of restricting the list to a max of about 15 tracks per page, and a way for the user to select which page from that list they'd like to view (eg prev next first last particular page number etc.) This is a fairly new music site, so at the moment the only list that goes past the bottom of the page is the dance genre but, as I mentioned earlier, I'm adding new tracks so all genres will become too long for a single page at some point.
View Replies !
Trying To Create A Login Page Username Password...
i would like to control acces using username password login page, on my host they are using myphpadmin and i was able to create the DB but using dreamweaver i cant see the tables. Where to start, is there any tools that will facilitate this request, or am i doing something wrong with dreamweaver.
View Replies !
Create An Encryped User Authentication Page
I just finished my first shopping cart complete with it's own basic CMS so my client can add, edit & remove products. Only problem is, that page isn't protected, so I need to do two things as far as I can see Create an encryped user authentication page that requires a simple username and password. And a snippet that denies access to the page unless you're logged in. From my experience, I don't think this should be much more than a page or two of code at worst, I'm intent upon writing it myself too, so I guess I'm looking for someone who can reference me to a solid PHP & MySQL tutorial for this?
View Replies !
Create A Logon Page That Will Check A Database?
I am a network administrator “attempting�to edit my web site with a new PHP feature, but I don’t know the first thing about PHP. What I am trying to do is create a logon page that will check a database (preferably access)or a file for password authentication then display a page will a few links based on the user name the person login as. I don’t need people to stay logged in, I don’t need a log out button. Can someone please direct me to where I can find relevant information on how to start with this, or some place that I can get code and edit it.
View Replies !
How Can I Create A Page With A Search Box Or Dropdown Menus
I have a database that contains houses, price, discription and photo etc. How can I create a page with a search box or dropdown menus that will look at the database and return what I have asked for in the search box or dropdown menus? I know this is a big ask, so a special thanks to anyone who can lead me in the right direction. The table consist of columns which are: house_id, address, ref, high_lights, more_info, pics_thumbURL, and pics_mainURL.
View Replies !
Create A Simple Login Page Using Php And A Post Form.
trying to create a simple login page using php and a post form. The following requirement holds, 1. there should NOT be any DB. 2. One user and one password is enough (yeah, said it was a simple one...) Tried with a function check_user() in a lib php-file, and a post form in the login page. Code as follow: <?php function check_user(){ global $userfield, $pwdfield; if( strcmp($_POST[$userfield],"user") == 0 ) { if( strcmp($_POST[$pwdfield],"pwd") == 0 ) { // Correct user echo("correctdir/album.htm"); } else { // Wrong pwd echo("../somdir/default.htm"); } else { // wrong user echo("../otherdir/default.htm"); } } } ?> and the login page for is: <?PHP require('../somelib/login_lib.php'); ?> .... <form name="form1" method="post" action="<?php check_user();?>"> <input type="text" name="userfield" > <input type="password" name="pwdfield" > <input type="submit" name="Log in" value="Log in"> </form>
View Replies !
Create A Page With A Form To Search Entries Into This Table
I have a table called "lista" into my mysql database.This table has 5 text columns : "TRANSLATEDTITLE" "ORIGINALTITLE" "ACTORS" "DIRECTOR" "YEAR" , and 1 image column called "COVER". I want to create a page with a form to search entries into this table, and anotger php page with the search results shown inside, everyone with a link that opens a pop window (ex. 400X320).
View Replies !
How To Create A Package Level Documentation Page With PHPDocumentor
I am trying to generate my API-documentation with PHPDocumentor (http://phpdocu.sourceforge.net/). It works nicely, only I don't understand the package-level documentation functionality. What I would like to do is replace the "Welcome to ... package" text with something more meaningful. I thought it would be as easy as the package.html in JavaDoc, but doesn't seem to be so.
View Replies !
Phpbb Create A Single Login/logout Page
We run a medium sized website that hosts a phpbb forum. We want to create a custom login/logout script, and I have tried really hard to decrypt the phpbb code but find it really difficult. Does anyone have a basic login/logout script that works with the phpbb database? So writing the sessions/cookies etc. I want to be able to create a single login/logout page where i process everything - ie: set sessions/cookies for login (but finding it hard to work out what values/names to set).
View Replies !
Form Processing - Create The Page And Have The Records Inserting
I can create the page and have the records inserting, without any issue, but the problem I'm having is trying to understand the process involved. I can find lots of tutorials on how to insert records but none on the logic behind it. Can anyone point me in the direction of a tutorial. What I'm trying to understand is the how the form submits the page (to where I'm not sure) and then executes the form handling. I'm using Dreamweaver to create the insert form, if that is of any consequence.
View Replies !
Create A Login Page That Sets A Session Variable
i am trying to create a login page that sets a session variable to be used at the beginning of each subsequent page to check if the login was valid. This is what I've got: Code: $process = $_POST['process']; $validated = 0; if ($process == 1) { $username = $_POST['username']; $password = $_POST['password']; $sql = "select * from user where username='$username' and password='$password'"; $result = mysql_query($sql) or die(mysql_error()); $num = mysql_num_rows($result); /*echo $num;*/ if($num <= 0 ) { $validated = 0; ...................
View Replies !
Create An Inventory Page To Keep Track Of Printer Consumbles.
I am trying to create an inventory page to keep track of printer consumbles. The page uses html, Php and a MySQL database. I am able to query the database for the current inventory and display it in a table. The user then enters an inventory id (which is just an auto-incrementing if field in the database) and that variable is passed to a php script that brings up that record for updating. That part works fine, which tells me that it is passing the 'uid' variable without any problems, using $_GET. Code:
View Replies !
Create A Page Which Will Automaticlly Change The Size Of Tables/graphics Etc
I am trying to create a page which will automaticlly change the size of tables/graphics etc based on the screen resolution. Eg, if someone is using a 800x600 the page layout will utilise this. If the same webpage is diaplayed on a 1024x768 or 1280X1024 the cells are adjusted according. By doing something like this could you make the logo change size by using a percent size in a table cell or is there a better method than tables? If anyone is able to help with tips or any examples (code or url reference) it would be appreciated. Also, what page layout is better to use.. eg.. html, php,asp, etc. The site will be hosted on apache on a Linux Server.
View Replies !
Create A Script On Top Each Page That Requires Admin Access To Check If They Are Authorized.
I want to create a script on top each page that requires admin access to check if they are authorized. If they aren't the php does a header ('...'), that redirects them to a log in page. Once they get there I somehow want to pull out the address of the page they came from. Something like sessions but I don't know how. Finally, when they submit the log in form and successful login I want the page to redirect them back. Is this possible?
View Replies !
Refresh Problem - Warning: Page Has Expired The Page You Requested Was Created Using Information
i got two php page at the movement, which they called edit2.php and edit3.php. when i submit a form from edit2.php to edit3.php, then i could not come back from edit3.php to edit2.php. Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. Code:
View Replies !
Page Expired After Going Back From Del. Pageto Form Page Where Comment Is Submitted..
i've made a submit comment form with php and mysql, the form has an action to itself with a hidden var like this: input type=hidden action=add When i delete a comment on the page i go to a page called delete.php3 and there is a link with a javaline which goes -1 back in my history.. When ive added a comment, the comments page contains action=add and when i delete a comment, i want to click on the link to go back to the comment page, but then, it doesnt work and it says: Page has expired. I wondered how to deal with this kind of problems........
View Replies !
|