38,019 Topics

Member Avatar for
Member Avatar for Pro2000

[COLOR="Green"]Hello everybody.. I've read about the "heredoc" way of outputting strings.. Where can we consider this use handy?? Is it used only to avoid escaping the single and double quotation mark?? Also, why is there an identifier to be put at the first and end of the function?? Thanks beforehand.[/COLOR]

Member Avatar for Pro2000
0
136
Member Avatar for subhra44

I am trying to create feedback form and want to send the content to an email id using the mail(). What should I suppose to do for that? I tried with some code but it's not working.. Here is the code [CODE] <html> <body> <?php if (isset($_REQUEST['email'])) //if "email" is …

Member Avatar for Pro2000
0
170
Member Avatar for altarek

Hi i have sub-directories like this (files/dir/dir2/) and have input text I want to get all the doc files in the sub-directories when insert name of top directory (files)in the text field

Member Avatar for vibhaJ
0
172
Member Avatar for lloydsbackyard

i throw a string value from the database in an input box...when i click update button, i need to clear the textbox after clicking update button..how?thanks a lot...

Member Avatar for lloydsbackyard
0
7K
Member Avatar for ivan3510

Hi! How to create a website with cookies, but cookies will not be deleted (they will be on computer forever, except somebody delete it; I deleted the cookies one time, and then they have been automatically created (I didn't go to these sites)) So, how to create these two things? …

Member Avatar for MagicMedia
0
75
Member Avatar for pickett65

I have a script that reads all rows from a database, and prints it out to an html table. The html table has an extra column for "status".In this column there is a form that is supposed to submit the dropdown field to the mysql database. I've got the set …

Member Avatar for pickett65
0
139
Member Avatar for yokorobi12

im using uploadify that can upload multi photos.. now i need to select a client to upload photos.. after choosing a client > next is client profile.. including the "add photo" button which is jquery... my problem is after choosing a client i need to get the clientid then pass …

Member Avatar for yokorobi12
0
104
Member Avatar for jorjah

.gud pm!!i know people out there are so intelligent,,so please help me regarding my project about software engineering, "system/software development project proposal document. " any software will be accepted,,please have mercy!

Member Avatar for jorjah
0
87
Member Avatar for itisnot_me

ok so i know how to write a reg expression for something more specific but i dont know how to make it more dynamic. right now i am matching {tour:right} with this {tour:([A-Za-z0-9_]+)} But the question is how do i write it so that i can use {tour} and {tour:right} …

Member Avatar for hielo
0
191
Member Avatar for observ

Hi, I am trying to update data from a column in a database using a php script. But for some reason it doesn't update the database, but i get no error feedback. So first i select a random entry from the database and i add it as a parameter to …

Member Avatar for Stefano Mtangoo
0
883
Member Avatar for Zagga

Hi folks, I am trying to create a function that adds comments to a text file. If the file exists, the comments are added to it. If the file doesn't exist, it is created then the comments are added to it. If there are any problems, an error message is …

Member Avatar for Zagga
0
177
Member Avatar for xapher19

For the project I'm working on, it has to have a changeable template system, so the users can make their own HTML templates to work with the system. However, I have no clue how to even go about doing this. Any help would be appreciated, thanks.

Member Avatar for xapher19
0
356
Member Avatar for geekme
Member Avatar for ulyssey
0
163
Member Avatar for aharkus

I have a page set up that with tabs that show different content. This works fine and I can also dynamically create the number of tabs and the name of them dynamically. However, I'd like the CONTENT of each of the tabs to also be tabs contain tabs depending on …

0
59
Member Avatar for extemer

hi guys i am trying to upload an image but my code is not upload image size higher than 400bytes please help me i tried but many thing but figure it out. [CODE] <html> <head> </head> <body> <form action="test.php" method="post" enctype="multipart/form-data" > File: <input type="file" name="image" /> <input type="submit" value="Upload" …

Member Avatar for IIM
0
174
Member Avatar for mvsjs

I am using jpgrpah in php to show a bar diagram by using an array as an input. The array is created by a function. I am getting the following error. Error 25044 - Cannot use auto scaling since it is impossible to determine a valid min/max value for y-axis …

0
137
Member Avatar for aharkus

I'm creating dynamic buttons and forms for a website and would like the form hidden when it's corresponding button is clicked. However, when I pass button and form name variables to my JavaScript that hides the form, the variables are not being recognised unless I explicitly set them. (e.g 1 …

Member Avatar for Airshow
0
1K
Member Avatar for phaedrusGhost

Hi all. So I have a site where I need to display uploaded images for properties. There could be anywhere from none to several images of one property. I have each image going to it's own folder based on address. Should I call on those images directly from the folders …

0
82
Member Avatar for DILO3D

i have a following text in a file: host1 menu=gateway title=gateway host=192.168.0.1 host2 menu=xgateway title=xgateway host=192.168.0.2 host3 menu=ygateway title=ygateway host=192.168.0.3 I have to match the 3 lines folowing by "host2" . these lines need to be matched. host2 menu=xgateway title=xgateway host=192.168.0.2 I used this codes.But its not complete. Can anyone …

Member Avatar for ko ko
0
88
Member Avatar for abhi10kumar

My session variable is not preserving same value through out pages, It is working fine in local but not in server.

Member Avatar for ko ko
0
32
Member Avatar for Viruthagiri

Hey guys i'm creating a site network using WordPress. Lets say my site name is blahblah.com and lets say i have 10 subdomains like site1.blahblah.com,site2.blahblah.com Now i want something like this. There will be no articles in my main domain. But i want list all subdomain's articles in my main …

Member Avatar for Viruthagiri
0
365
Member Avatar for Pro2000

How can I know whether the user surfing my website is surfing via a mobile device or a PC?? I thought about: [CODE]$_SERVER['HTTP_USER_AGENT'];[/CODE] However, I think that there is a variety of names of mobile browsers.. How could I solve it?? Thanks beforehand.

Member Avatar for Pro2000
0
96
Member Avatar for Blitz-labs.com

I want to report deadlinks on my site, my current script does work but it allows search engine bots to click the dead link report which makes it hard for me to determine which reports are form visitors and which are from bots. What am I doing wrong here? As …

Member Avatar for Blitz-labs.com
0
198
Member Avatar for garyjuano

sorry i'm newbie in date/time in php, i would like to ask if this is correct script or not,if not can u help me improving this script. <?php $date1 = date('m-d-Y H:i:s a'); $date2 = "09-17-2011 11:51:21 am"; if($date1>=$date2){ echo "bad"; }else{ echo "good"; } but when i change the …

Member Avatar for twiss
0
73
Member Avatar for 54uydf

my program allows users to leave reminders to themselves. tblReminder looks like this- [B]title content date[/B] now the idea behind it is that once the date that the user chose comes, the user will recieve an email to his email account with the content of the reminder. I can write …

Member Avatar for Stefano Mtangoo
0
102
Member Avatar for 54uydf

the bottom line of what I want to do is- I have a file with a form (form.php) that has 2 drop lists, on sumbit I want to be redirected to another page (1.php) if dropbox 1 was set, to page 2.php if droplist 2 was set and to page …

Member Avatar for 54uydf
0
175
Member Avatar for tstory28

Is there a way to have a session use two variables instead of just one? For instance: [CODE]$_SESSION['$email.$level'][/CODE]

Member Avatar for hielo
0
97
Member Avatar for klemme

[B]I need to update one select box, depending on what has been chosen in an other select box. [/B] I know I need to use AJAX, but I havent used AJAX ever before, so I am a little lost on how to implement it. [B]This is the first select box:[/B] …

Member Avatar for klemme
0
1K
Member Avatar for 05026652

Hi guys, I have recently tried to integrate the following script into my website to use with contact form (found here - [url]http://www.codewalkers.com/c/a/Email-Code/Smtp-Auth-Email-Script/[/url]) My Script looks like this: [CODE] <?php //new function $to = "hicky2k@hotmail.com"; $nameto = "rhys"; $from = $_REQUEST['client_email']; $namefrom = $_REQUEST['client_name']; $subject = "Hello World Again!"; $message …

Member Avatar for letoii
0
387
Member Avatar for cchap

I am using flat file db, not mysql so I can't use $limit I need to limit the number of records to 1, if more than 1 then echos something else: [CODE] $result = $db->getall(month); foreach($result as $item) show_record($item); } [/CODE] I tried to use 'break' but it comes back …

Member Avatar for cchap
0
132

The End.