Pass Info From To HTML
I'm wanting to pass a value from PHP into a hidden input in HTML. I don't want it to travel in the URL if possible.
for example to help paint the picture.
From PHP
I want to pass this: value="true"
To HTML
<input type="hidden" value="false">
View Complete Forum Thread with Replies
Related Forum Messages:
Pass Info Forward From A Redirect Page
I have a main page with 75% constant contents. I want to change the other 25% depending on what page calls the main page. Example: www.mysie.com/a.html www.mysite.com/b.html www.mysite.com/c.html www.mysite/x/y/z/mainpage.php Pages a, b, and c are redirect pages to mainpage.php How can I how can I open storya.txt in the mainpage.php when someone clicks on ~.com/a or storyb.txt if they click on ~ .com/b ?
View Replies !
Extracting Info From HTML
Im needing some help with writing a PHP script. Basically all i want to do is write script that can extract data from a table in html format into a MySQL database on my server.
View Replies !
Passing Info From Html To Php
I'm trying to pass info from a "Drop list" in an .html form into a .php which will then query a database. It doesn't work and I wondered if I'm missing something easy? If I junk the dropdown list and just put a "textfield" there is no problem but I want to have the fixed choices list. Here is the code:
View Replies !
Extracting Img Tag Info From HTML Source
I'm having a bit of a brain meltdown trying to figure this out. If anyone has a suggestion I could try, that would be excellent. I'm trying to extract specific pieces of data from an html source file. In particular image tag information. If my file contains lines similar to: <a href="images/picture.jpg" target="_blank"><img src="thumbnails/picture.jpg"></a> I'd like to be able to extract the a href URL and the img src as two seperate variables and ignore any other HTML source and tags inside of the file. For all intents and purposes ending up with an array of the following: $link[0]="images/picture.jpg"; $thumbnail[0]="thumbnails/picture.jpg";
View Replies !
Retrieveing Info Passed From Html
i have a flash banner on a page that when clicked sends the browser to another page. This banner is linked to a php file that counts the amount of clicks on the banner. In the html page for the flash banner I have: Code: <embed src="swfs/banner1.swf?clicktag=forms/tracking/bannertrace.php&clickheader=http://www.somewebsite.com" width="570" height="80" align="middle"> in my php file I have: PHP Code: <?php $traceFile = "banner/clicktrace.txt"; $clickURL = $_GET(clickheader); $fh = fopen($traceFile, 'r'); $theData = fread($fh, filesize($traceFile)); fclose($fh);$fw = fopen($traceFile, 'w'); $theData = $theData+1; fwrite($fw, $theData); However the clickheader variable that contains the URL does not get passed to the php file.
View Replies !
Pass Data From One Html Form To Another
I've created a 2 page application form in html. Once the person has completed the first page and submits, I send an email with the form data using a php which then redirects to a second .html page. Once the second page has been filled out, and the person click submit, a second php is run and I receive a second email with the data from the second page. I need to be able to pass the person's last name from the first page to the second in order to know who has filled out the second page. Is there a way to send data from one form to another through a php script?
View Replies !
HTML Presentation Page For Uploaded Info?
I've seen a lot of posts about uploading files, but not much about what happens afterwards. Can someone point me to a tutorial, post or book which will help me solve this problem: I'd like to have a form where users can upload a photo, add a short bio, put in some contact info, and have all of this information stored in a database (natch). Then I'd like for this form to take this user's data and put it into an html presentation template. Ideally, members would sign in and be able to modify their own profiles as well as view other profiles.
View Replies !
Filling My SQL Database With Info From HTML Source Code?
I am desperatly browsing around trying to find some way to add data to mySQL from raw HTML sourcecode. I basicly have HTML pages showing lots of info on work, and I want to take that info - add it to mySQL so I can sort, select and browse the information in a better way. Hope someone knows what I mean.. (many online textbased games have this on various fan pages for calculating purposes, ie. Earth2025 and Utopia)
View Replies !
Sending "header" Info After HTML?
I am looking to use "header("Location:index.php");" in my code. Basically this will be called when the user logs in to redirect them to the home page but as you expect I get the usual "headers already sent message" Just wondering how to get around this? Do I use the ob_start() method or something?
View Replies !
Putting Info Into A DB / Passing Info Between Pages
I have run into an issue...I have posted previously, but my scenario has changed. Here is the situation... If a user clicks on a link ('abc123' for example) I want to insert into my database some predefined information about 'abc123' - I have assigned a value that is echoed in future pages for 'abc123'. So, what I need is some mechanism to, when a user clicks 'abc123', have a pre-defined username and password be entered into the database. I need this so future pages can utilize the session values.
View Replies !
How To Pass This Accross.. (just That $author Variable Only) Can't Seem To Be Able To Pass That Across..
i have a html form that passes a variable to first.php ($author = $HTTP_POST_VARS ['Author'] i have another php file (second.php) that needs that $author variable to be passed to.. the problem is that i don't really know how to pass this accross.. (just that $author variable only) can't seem to be able to pass that across.. i would use the include("file.php) syntax in the second.php file although the first file creates a directory at the beginning of the file every time so that makes it difficult.. ive tryed using a function with no success, but i put that not working down to incorrect syntax...
View Replies !
Using MD5($pass) With PHP And MD5 Tables Or Password('$pass') In SQL
My intranet log in page (which starts the session) has a password field, and later once the form is submitted (after all the checking) the $pass var goes through this: $pass = MD5($pass); And my password column has MD5 encrypted passwords. I could just use password('$pass') in my SQL query and remove the MD5() from my PHP if I convert my column to "Password" instead of "MD5". So which one is safer? I think MD5 is safer and is sort of a standard so my database has a little more portability if ever needed. I have another question. My Form once submitted obviously has the non encrypted password until the variable is processed. The only way to protect this is to put the intranet on a SSL connection right?
View Replies !
No Mysql Info Through Info();
I am trying to install mantis, and I get errors when I try to run the install script saying that mysql is not configured to run on php. I call the phpinfo() function and I see nothing relating to mysql. I open the php.ini file, and, to be honest, it looks alright. the extension_dir points to /usr/lib/php4 which includes the mysql.so extension. Furthermore, I located the mysql.sock file and pointed the default socket to it, but nothing. what exactly am I missing? Code:
View Replies !
Which Is Better, Pass, Or Not Pass By Reference?
I've asked this before but never got any response but its important and I thought I'd pitch it again (hopefully a bit clearer)... One can pass data from one function to another either by passing a copy, or passing by reference. My understanding of passing by reference (putting the & before a variable during the function declaration) means that the original data is used. My understanding of *not* passing by reference, (thus passing a copy) literally means creating a copy of the data contained in my variables - thus doubling the memory usage for this data... even if its just a temporary while the function is being executed. I *believed* (past tense) that one should only pass by reference if they wanted the child function to change the data and pass the newer values back to the parent function. I'm now thinking that this is just a feature and not the only usage. I am begining to think I should use "pass by reference" nearly all the time in order to conserve memory (since I won't be creating copies of my variable data in memory). Would this be good practice? Am I right that passing by reference means that my variable data is not duplicated thus using less memory than if I had passed my variable data as a copy?
View Replies !
Pass By Reference Vs Pass By Value
How big does an array have to be before passing to functions by reference is faster? So far in my tests I've found pass by value faster, although my array is quite small... and I'm on a windows machine for testing if that makes any difference.
View Replies !
HTML Email Using PHP Problem (Receive Html Tags)
When I send the html email, the only thing I receive is the tags (the html codes basically). I want to be able to see the email like a html page, what is wrong with my code? Here is a copy paste of it. $HTML = "</html><body><img src='http://www.somewebsite.com/ someimage.jpg'></body></html>"; $headers = "From: $from "; $headers .= "MIME-Version: 1.0 "; $boundary = uniqid("HTMLDEMO"); // Now we attach the HTML version $headers .= "--$boundary ". "Content-Type: text/html; charset=ISO-8859-1 ". "Content-Transfer-Encoding: base64 "; $headers .= chunk_split(base64_encode($HTML)); mail($to,$subject,"",$headers); print "mail Sent<br>"; The email I receive has this as text: </html><body><img src='http://www.somewebsite.com/someimage.jpg'></ body></html>
View Replies !
I Need Info...
I want to write a very simple PHP script that just picks random images from a directory, you know what i mean. So I'd like to know where I could find information about this in the PHP manual maybe?
View Replies !
Looking In $var For Certain Info
I pulled certain collums from my database. The value of the collums is either Y or N. I want to figure out on each $var how many Y's there are. I don't care how many N's. At the end I'm going to add up all the Y's of all the VARs for stats. Whats the best way of counting Y's in a $var?
View Replies !
Getting Info From Db
i need to get my user's info from my db, but i don't no how to do it. i need to get username location (set by game) money bank loan's and gun + bullets please tell me how to put the session in or the cookies where to put them and how to edit them to work.
View Replies !
Getting Info Out Of Db
i have a tabel videos with the fields: ID, name, style, place, size, image, download I know how to do sql queries, but this is what i want to manage: I take ID and name from the database. Then i want to create a page where all the names are sorted from A-Z and after everyname there is a link 'Click here',but it needs to contain the id, for example, showvideo.php?id=1 So the page should be like this: Video-section Name Click Here(showvideo.php?id?=12) Name Click here(showvideo.php?id=2)
View Replies !
Cannot See Dbg In Info
I installed Apache 2.2.3 + PHP 5.2.0 binaries on my Windows box successfully. Then I downloaded dbg-2.13.1 and unzip the package. I created a folder called "ext" in C:Program FilesPHP folder. I put the php_dbg.dll in the ext folder. Code:
View Replies !
COM Info
I have a dll which as a specific function and i want to use it to transfer info from a program that also uses the same dll. How would i referrance the dll using the COM function. $dll = new COM('referrance to the dll'); //then i can use its functions within my code :thumbsup: :thumbsup: :thumbsup:
View Replies !
Info
So I was perusing my phpinfo() output and I noticed under supported databases it said: Oracle 8 (not really) anyone know what that means?
View Replies !
Why Pass The SID?
Although I understand that you can only pass your session ID from page to page using (1) cookies, or (2) sessions - im at a loss why you'd need to do this. Why isn't it enough to just use 'session_start()' at the top of all your pages? On all the tests I've done, I can register variables and recall them on different pages by only calling session_start - but I saw in a recent post which said you should always pass the session ID too. I realise there is a tutorial on this, and several (hundred) posts - most of which I've read, but can someone please explain this as basic as possible!
View Replies !
Pass The SID In The Url Or Something?
To check if it exists, I do: $id = session_id(); if ($id == '') {... no session ...} If the $id is empty, then there is no session. But the problem is when I use the "session_id()" function from a different page than the page that contains the "session_start()" function, the returned $id is always empty. Do have I to pass the SID in the url or something? Is there a setup file that I should update?
View Replies !
Pass A Value Or Something Like It
I want to know how to pass a certain value or anything like it when you try to click a "picture of a book" or its "name" to be pass on another web page that will show the "book picture", the "price of the book" and the "description" of it?
View Replies !
How To Pass And Use The & In A URL?
I want to pass a phrase in the URL that uses an ampersand: "Black & White" And I want to be able to 1) print it as is, and 2) insert it into a link. I think the problem lies in the spaces around the ampersand. I've tried various methods of replacing it with & and &038; and replacing the spaces with %20 or + but it still causes trouble. Code:
View Replies !
Pass Value From .php To .php
can php create a link. i need to pass a value from a .php to another .php. if using html is like that. <p><a href="main.php">Main</a> </p> how to use php to do so ?? or html can do it ?? i need to pass a value from a form to the other form.
View Replies !
Pass Value To A Web
I have a web form that i will use it when there is a problem with mysql. i want to create a script where i will poll the port of multiple mysql servers. If anyone is down, the script will pass value to the web form and submit the issue to my host. all the work are done in backend. so the script is basically doing some monitoring work before it execute the task.
View Replies !
RemoveHandler .html .htm (parse Php In .html Files)
I want to parse php in .html files. I put this in .htacces file: RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Its work, but some of my php aplications have urls: www.mysite.com/this-is-page without .html in the end how to parse that? Which code I must use.
View Replies !
Embed Php Generated Html In Another Html Page
I am trying to include some php generated html in a page that is just a standard html file, NOT a php file. I have seen other html pages do this by including an src to the cgi script in script tags, like this: <script src="http://someurl.com/somescript.cgi"></script> the html page loads and the script is executed and the returned html is displayed in the calling page. So, I tried this: <script src="http://someurl.com/somescript.php"></script> It doesnt work!!
View Replies !
.html' Page Be Replaced By '.html.php'
Can a '.html' page be replaced by '.html.php' page via RewriteRule? To clarify, I'm using a software that formats the look of the site using .html pages. I'd like to add PHP code to that page but of course, it is not of the right page type. What I was wondering is Could I create a duplicate of that '.html' page, rename it to .g. '.html.php' and make the revisions and then just create a RewriteRule that redirects the '.html' page to the '.html.php' without generating an error? The alternative and undesired way of doing it would be to rename the original page to '.html.php' and find and revise ALL of the routines that call that page. That would create a revision nightmare especially upon upgrading the software.
View Replies !
Getting Users Info
I need to get the following information, User's IP User's Browser User's Screensize What is the code for any of these as I can't find it in the PHP manual.
View Replies !
How To Get Header Info
I've been trying to extract the status codes from http header information to find whether a page is 200 ok or 404 not found by using an fsock() connection which works. To actually extract the data what do you use? i've seen fputs() and fgets() listed on the documentation page but how do these function actually work?
View Replies !
Info From MySql DB
Problem : I have a table in mysql with titles as such : ShipIDNameMcostCcostBuildETA(there are more) I run the query : for($i=1;$i<=9;$i++){ $query = "select Name, Mcost, Ccost, BuildETA from ships where ShipID=$i"; $result = mysql_query($query) or die("Query failed"); I want to refer to "Name", "Mcost", "Ccost" and "BuildETA" so i can use them to build a table. So i need to assign them to variables in an array so i can loop to make a table with as many rows as there are "ShipID"'s. The thing is that all the ways i have tried of refering to individual column names have failed.
View Replies !
PEAR/Info.php
I tried to use Example 49-1. Using PEAR_Info This is not showing PEAR installation information on local/remote server. What I see local, I've no file Info.php in package PEAR in PEAR directory. I've installed PEAR, why this file is missing? My Web host say, they've installed PEAR, and I can use PEAR.
View Replies !
Getting Info Into A Object..
I'm sitting and trying to understand this OOP - and need to create a class wich can do the following.. ShowBlocks() - Displays the data wich is inside it - If empty creates a form wich sends the info back to the Object, wich show the stuff.. AddBlock( $type ) - Creates an empty blok - wich is addet to a blocks area object...( Or somethin like it ) Store() - safes the info into a file, and updates mySQL... I have figured out most of the stuff but the way to get the empty block -> creating form with some different strings/textbloks and a file -> putting stuff into object -> now showing what its looks like and aking if i want to add a extra block....... now showing x blocks then asking if i want an extra block - i haven´t got a clue of how to do it ! Does anyone of you have an example with an object thats goes : See im a empty object -> here you can put an line into me -> see im not empty now ( showing the string) do you want to add an extra line ? - ect ect..
View Replies !
Getting Caller Id Info
I am developing an application where I need to read the caller id from an incoming call. The only info (for now) I need is the caller id info, so that I can display the propper caller info on screen if so desired. I was thinking on using asterisk (asterisk.org) for this with appropriate 2FXO/2FXS card but I do not know if this is just overkill (asterisk for this). Do you know of any other solution/way of getting the caller id and passing it to PHP?.
View Replies !
Getting Info From A Website.
I have been doing PHP for over a year now but when I came round to writing a script I discovered that there was a reasonably sizeable gap in my knowledge that I didn't even know where to start finding out about. Anyway this is a reasonably nooby question: If I have a script on http://url-a.com/script.php and I want to get some dynamic information of my friend's site at http://url-b.com/info.php , How can I get it? I need to use get variables in getting it and it must also be server side.
View Replies !
|