User Profile
Collapse
-
Thanks alot fellas. The foreach loop worked. I just got into xml and The simpleXML guide just made my life a million times easier. Appreciate it. -
Need help parsing xml with php
Hey
I am trying to parse an xml document with a lot of nodes containing numereous attributes. Basically the node repeats numerous times and each time some of the attributes are different. Basically Im trying to output each node with the attribute to the screen and I am confused on how I can loop thru and do this. Can somebody point me in the right direction. Thanks. Here is wut I have:
[PHP]
$Position = $doc->getElementsByT agName('Positio n')->item(0);... -
Need help with browsing for files
Hey
I have a php script which has a browse button that lets the user pick the file. Once the file is picked it redirects to the same page outputting the name of the file picked as a string. The problem I am having is that the name of the file is not being printed to the screen. Can someone take a look to see wuts wrong with it?
Thanks
[PHP]<html>
<body>
<form enctype="multip art/form-data"... -
thats crack. it worked. Thanks drhoward...smh at not coming up with that myself.
heres the code incase sumone is googling for this problem
[PHP]
echo("<table STYLE='position :absolute; TOP:95px; LEFT:100px; WIDTH:40px; HEIGHT:50px' >");
echo("<tr><td>t est table</td></td>");
echo("</table>");
[/PHP]Leave a comment:
-
how do you place a table at a specific plot point?
Yea Im working with a badly written php script that doesnt utilize a css. Its over 2000 lines so rewriting it would be a pain in the ass. Theres all sorts of <table> and <tr> and <td> tags all over the place. Im looking to place a table at a specific part of the page similar to this code that I found for placing an image on a specific part of the page. I have included the similar code. Is this possible?
[HTML]<IMG... -
Well I got it to work. Define the value of the session variable like this and add it to the rest of the code from the previous post
[PHP]$_SESSION['outer2_value'] = ($_REQUEST['outer2'])?$_REQUEST['outer2']:$_SESSION['outer2_value']; [/PHP]...Leave a comment:
-
nah that didnt work. Any other suggestions? Cuz I really got no other ideas on wut to do at this point....Leave a comment:
-
Its pretty much right at the top of the page. Im putting in the first few lines. Because the previous author of this script is using session variables for various db related processes. Should I destroy his old session before I start my own?
Theres the first few lines of my script
[PHP]
<?php
require("/scenarios/callable.php");
$db_conn = connect_db();
session_start() ;
........Leave a comment:
-
-
okay I got the code to work. I still have the same problem that the value in the variable is being erased once I click a different link. Wut else can I do? Is there sumthing Im missing?
[PHP]
/* ############### ############ UNEXPAND ############### ############### ### */
$unexpand = "<a href=\"?Expand= Unexpand\" >Unexpand</a>";
echo("$unexpand ");...Leave a comment:
-
^^^^^^^^^^^^^^^ ^
Yea that code piece dont work. The only thing I cant figure out is how to retrieve the user input in the text field and then store it in a session variable.Leave a comment:
-
okay how do I use a session to retrieve the contents of a text field?
Would this work?
[PHP]
$TextField1 = "<input type=text name=outer1 onChange='submi t();' >";
echo("$TextFiel d1");
$_SESSION['outer1'] = $_REQUEST['outer1'];
echo("$_SESSION['outer1'] ");
[/PHP]Leave a comment:
-
-
^^^^^^^^^^^^^^^ ^^^^^^^
Unfortunatly Im limited in how I can work on this. I dont have direct access to the database. And Im not allowed to create my own tables. So thats out.
As for AJAX...I had this working in javascript. The problem I had with that tho was that php wasnt able to access wutever I put in the javascript textfield. So thats also out.
Is there any other way to do this or am I trying the impossible...Leave a comment:
-
Having a problem bringing contents of a variable from one page to another.
Hi
I am writing a php script that contains a bunch of links. Each link when clicked redirects to the same page however where the clicked link once was is now a textfield. The user then types into the text field once the user has entered input the page redirects to itself again this time where the text field was is a link again. The link is wutever the user typed into the previous text field. I am doing this by using $_REQUEST[....]... -
yea I guess thats gonna be a problem. Wutever I ll just seperate the huge script and see if that works. If not I ll just rewrite the javascript into php....Leave a comment:
-
Im trying to do it this way because Ive got a huge php script to modify in the same way and I dont know if I ll be able to seperate the it into 2 php blocks. and the <head> tag didnt do anything when I added it in.
I guess I ll try it on the huge one and see wut happens cant hurt now that I think of it.
Worst case scenario I ll have to convert these javascript functions to php functions (hopefully it ll be po...Leave a comment:
-
Actually I tried just echoing out the javascript. I have a bunch of javascript functions and html lines that call these functions. When I try just echoing it out I get a blank page.
I shouldve just posted the code Im working with right off the bat here it is its pretty short. Can you take a look maybe theres an error I dont see ?
Thanks
...Code:<?php echo("<html><body>");Leave a comment:
-
Confused on how to merge javascript with php
Wutup
Im trying to write a php script that has a link. When the user clicks the link the link turns into a text field which the user can modify. When the user clicks elsewhere the text that the user typed is turned back into a link. Ive got the php script which Im supposed to change and I got a piece of javascript code that does the whole link changing of link to textfield and back again thing.
Problem Im having... -
Need help with forms and php
Wuts hood
Im supposed to make a php script that parses a file and uploads useful data to a database. Im supposed to use a browse button to naviagate to the directory to find which file I want to select. I just started this so far I have an html page with the browsing menu using a form which then redirects to a php page that will do all the actual stuff.
First I select the file then I click submit and I get redirected...
No activity results to display
Show More
Leave a comment: