Help coderanch get a
new server
by contributing to the fundraiser

Heather Rose

Ranch Hand
+ Follow
since Aug 25, 2008
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Heather Rose

I tried this, and it worked, thanks! Had a brain fart, I guess...

Thanks for your help!

I have an original date field, a 2nd payment, and 3rd payment options. I also have a followup field. (all text fields).
The 2nd payment adds a month. The 3rd payment adds 2 months to the original date field. The followup field add 3 days from the original date field.
Original Date: 02/03/2010
1st payment: 03/03/2010
2nd payment: 04/03/2010
Followup field: 02/05/2010.

So far, all this code is working. The part that gets tricky is if the original date is a date at the end of the month like: 02/28/2010. The followup field is saying 02/31/2010.
Here is the code I have currently:

Alright, so I was playing with it a little more, and I got the numbers to work, but now it's a style sheet issue. Should be pretty simple, but I'm having a hard time figuring it out.

Now, I'm trying to make the numbers go ACROSS, not down. Now on the edges, I'm trying to make rounded, so I'm using an image background (basically just corners) for that. BUT, I want the background of that div to be the same color as the image. Is there a way to stretch the image so that I can do that?

Here's what I did for making the numbers work correctly:

I see what you are saying David, I am trying to have an array without defining a size (hence 'x').

Eric, can you give me an example of how I should go about displaying the numbers when I am through with my logic? Thanks.
Alright, here's my problem:

I have a div tag, and 2 buttons: Add and Remove.

The add button is supposed to add a number starting at one. The Remove button is supposed to remove a number from the array and output the updated array.

I have 2 buttons, and my onClick event is targeted to the add and remove methods, but for some reason, nothing happens either way. I'm only trying to output them right now, without even bothering with a div tag yet.

Here's what I have:

And my buttons call those methods.

Any ideas?
Where the $hostname is coming from is a .xml file. I have loaded that at the top, and renamed the variable to hostname. From what I understand, you can do this using PHP (read in an xml file and then be able to parse it and display the values I want.

The config file is on top of this post if you want to have a look.
Thanks for all your help.
15 years ago
I have replicating just the form and the PHP I need for ONE text box, and I can't seem to find what the problem is. Instead of printing the action, it's still printing the PHP. Please help me figure out what I'm missing.

Here's the PHP I'm using:

And here's the part of the form:

It's just printing out the <?php echo $hostname; ?>.

I'm at a loss. Please if you have ideas, let me know!

15 years ago
I am still confused and I have focused on ONLY making it print out the variables into the form in the text boxes.
I have researched a little bit, but I'm still confused. I haven't changed much, and I would still appreciate help.

15 years ago
Another thing:

There must be something missing at the top, a broken tag or something, and I can't seem to find it. On my actual web browser when I run, this code shows up:

I tried to find where I messed up, but I couldn't seem to find it. This is the very beginning of my php code, and I didn't know if I missed just one thing, didn't close a tag, or didn't open one correctly. If you look at this code, and then look at the php code I provided above, it starts when it is loading the config file, so I'm pretty confused there too.
15 years ago
Alright, I have changed the />s and I fixed the html ""s, and nothing changed function wise.

I was a little confused on what you meant by:

At first glance, the foreach seems a little fishy because you're shadowing $config. Even if that happens to be legal php, I'd recommend using a different "as" variable in the loop.

Did you mean making the $config as $configVar or something and setting the $configVar to $config anyways, just to make things a little neater?
15 years ago
Alright, this is a simple process, but I am quite new to PHP, so I'm having a bit of trouble.
This is what I need to do:

I have an index.php and a config.xml (DD).

On my index page, I have a form that (should) gather all the information FROM the config file and display those values in the text boxes. There are a few drop down menus as well.

Then, there is a save button. I need to be able to save the NEW values the user puts in and overwrite the old config file.

On a scale of 1-10, I'm basically a 1 on the PHP scale, so this is a little odd for me.

The problem I am running into is:
1) Fields not filling in correctly in the text boxes
2) There is an open tag somewhere on the top that I can't find (maybe because I'm unfamiliar with PHP) and is displaying all PHP code.
3) Breaks when trying to save.

Here is what I have in my XML:

And here is my PHP at the top of the page:

This what my form looks like:

I have attached an image of what the page is doing. For some reason, it wouldn't let me add 2 images, so I only added the one with the form. Any help would be appreciated.

Thank you.
15 years ago
Job Seeking: Entry to Junior Level BA or Product Manager
Where: Orem/Provo, UT or in the Draper/Sandy area as well.

Start: Immediately

Available for interviews now.

Thank you for your time. Please respond to this post for updated resume or send me an email at

Thank you.
Heather Rose
15 years ago
Alright, try posting in the correct forums. you get better responses. As Bauke Scholtz mentioned, it can't be done with JSF, you will need to use CSS, so you should look in the style sheet forums. Hope you find your answer! Welcome to Java Ranch by the way.
15 years ago
Look at My other post, if you are still intersted in connecting to active directory.
[ September 26, 2008: Message edited by: Heather Rose ]
15 years ago
Does this have to do with JSF, or CSS?
15 years ago