39,320 Topics

Member Avatar for
Member Avatar for ddellostritto

Hi all - I'm looking for a flexible way, via ajax to verify if a *field* is available. I found a script that works: [url]http://web.enavu.com/tutorials/checking-username-availability-with-ajax-using-jquery/[/url] The problem is that this is a little unwieldy: for every field (input) that you want to verify w/ajax you have to have a different …

Member Avatar for ddellostritto
0
84
Member Avatar for hanif_thaheem

<?php session_start(); require_once("include/connect.php"); if(isset($_GET["page"]));{ $pages = array ("products","cart"); if(in_array($_GET["page"],$pages));{ $page = $_GET["page"]; }else { $page = "products"; } } else { $page = "products"; } ?>

Member Avatar for anilashanbhag
0
29
Member Avatar for epicrevolt

Well, I am getting moving on my site, finally got about all the main pages dynamically loading, and I have rand into a problem with my registration problem. I don't know what happened but I seem to be getting this strange error: [B]Fatal error:[/B] Cannot redeclare generatehash() (previously declared in …

Member Avatar for epicrevolt
0
880
Member Avatar for RobotFX

Hi! I'd like to make this mysql command into a script and run it as a cron: [CODE]DELETE FROM xx_posts WHERE post_content=''[/CODE] However, I don't know how. So the question is what should the php file look like to access and delete the empty wordpress posts from the database? Thank …

Member Avatar for RobotFX
0
93
Member Avatar for Joe34

Alright here is my code... [CODE]<?php $Connect = mysql_connect("","",""); $DB = mysql_select_db(""); if(!$Connect || !$DB) { die("MySQL Error #1! Try Again Later!"); } if($_POST['car'] == "Alltel") { $To = $_POST['num']."@message.alltel.com"; } if($_POST['car'] == "AT&T") { $To = $_POST['num']."@txt.att.net"; } if($_POST['car'] == "BoostMobile") { $To = $_POST['num']."@myboostmobile.com"; } if($_POST['car'] == "CentennialWireless") …

0
78
Member Avatar for lttleastig

Hello there i am having trouble on how to compare the password of the input and the one in the DB since the one in the DB is encrypted with the code below for registration i just used a stored procedure in the db and called it in the php …

Member Avatar for lttleastig
0
115
Member Avatar for dyla123

Hi i am not sure if this is PHP but what i am looking for is an API that can track a players info in a game. All of his levels gained, all of his experience gained and so on. I have been talking to players from another game i …

Member Avatar for dyla123
0
145
Member Avatar for localp

I am writing a code to do a google search. i am actually appending the string to the end of the google search string [CODE] <body> <form name="f" action="http://www.google.lk/search?" target="name3"> <input name="name1" type="hidden" value=""> </form> <center> <iframe name="name2" width="100" height="300" src="somePage.html" target="name3"></iframe> <iframe name="name3" width="100" height="300"></iframe> </center> </body> [/CODE] This …

Member Avatar for diafol
0
118
Member Avatar for epicrevolt

Basically, I am working on a joke site that allows users to submit jokes. When displaying the jokes, I want to use a function called joke_author, which will automatically find the authors username based on the authorid of the joke. in both my users table and jokes table, the user …

Member Avatar for epicrevolt
0
121
Member Avatar for ptara1

I have a php script that echoes results from a search. Generally I have no problem getting the results in a table but for some reason I can't get these scripts to do that. I figure its a small error. I'm going to put in the code but if you …

Member Avatar for ptara1
0
265
Member Avatar for rkayd

I have an sql database and an html form. I want to be able to automatically change the value in a checkbox when a radio button value changes. Here is some partial code with details in red as to what I want to do: (the red text is not actually …

Member Avatar for diafol
0
100
Member Avatar for wingmark

Hi All; How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after …

Member Avatar for diafol
-1
212
Member Avatar for Tehim

Basically I'm making a script that sends the user an email on register and they have to click a link in the email to activate their account. But in my activate page their seems to be an error in my coding and I've checked it over but I can't find …

Member Avatar for Tehim
0
368
Member Avatar for shacur

can i get some help sending the attachment pls cause i think something from my code is missind and that's why can't send attachment. [CODE] <?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $message = $_POST['message']; $attn = $_POST['attn']; $subject = $_POST['subject']; …

Member Avatar for diafol
0
151
Member Avatar for MDanz

i've been doing while loops for this problem .. i dont think its the right way though. i have a set of boxes each with a boxid(apart from the first), which is the id(mysql) of the previous box. [quote]e.g. box 1 has id 1 box 2 has id 2 and …

Member Avatar for diafol
0
107
Member Avatar for katsloko

Hey guys, Do you guys have any idea on this error? This errr showing up on my Contact Form before you input the data field like name, address etc.. Is there a way to fix it? [CODE]Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started …

Member Avatar for diafol
0
107
Member Avatar for tcollins412

i am trying to submit a form in javascript, and then process it in php. and it will not work. can you please help? this is the code: [CODE] <?php if ($_POST['markcomplete']=='yes'){ $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } } …

Member Avatar for varun931
0
250
Member Avatar for liamfriel

Hello, I am using a script to process subscriptions on our sites - I can sucessfully get the subscription payment to process, I am having issues processing a cancel IPN request. [CODE] // assign posted variables to local variables $item_name = make_safe($_POST['item_name']); $item_number = make_safe($_POST['item_number']); $payment_status = make_safe($_POST['payment_status']); $payment_amount = …

Member Avatar for liamfriel
0
241
Member Avatar for lkrvk

hi, guys i have a problem here. i have a form which creates a new table for each new user and that user will have a monthly update of his salary now im confused how to go about this. do i need to create a new table or how to …

Member Avatar for smantscheff
0
186
Member Avatar for umandajayo

hi I downloaded a php script but it is encoded this is the encoded file <?php $OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14}.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=372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SLqb1VudKzOmSL2ytsnwUL2GtjSwJzybKseQSsOFAsrbAzDGKgNbKseQSsOFAcGc1VKfKseISlKd0qhfKgOYtoybJCGYKLWBKCOGKHfheskwaC2GJlf7ldXyJ3XDJseQAwu9tjZ5K3kmCzkgSgOFAjOfC3eQA3rhvEmveseQAwu9tjZ5K3kmCzSGAj2hCz9dUgOFAlbfKgOYvEmvSL2hJwufKg93xE5qKgGFSEmvBRh= what is this encoded system and How I decode it... Please help me...this is very urgent...

Member Avatar for peter_budo
-3
211
Member Avatar for Imratzio

Hi guys, I have a shopping cart finished for my site but I do not know how to make checkout function that will link to my cart.php I will show u my codes [B]index2.php[/B] [CODE]<?php session_start(); include_once'../config.php'; include_once'../_header.php'; if(isset($_GET['page']))//get info from a get variable inside url { $pages = array("products", …

Member Avatar for Imratzio
0
171
Member Avatar for ganeshrnet

Below is a piece of code i,ve configured with, It's giving me an Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/****/public_html/****/g.php on line 265. The information stored in the database can accessed be accessed by other pages, using the same code. but its not possible …

Member Avatar for pritaeas
0
248
Member Avatar for SalientAnimal

Hi Everyone, I am trying to create a login page for my "intranet" site that is authenicated via a MySQL database and Apache. I am having difficulty on where to start and how to carry the session information from the login to the other pages, i.e. for submitions etc. Can …

Member Avatar for nonshatter
0
388
Member Avatar for ptara1

I currently have a linked table from two tables in one database. I would like to add information from a third table contained in another database. The code for the current table is: [CODE] <?php $con = mysql_connect("","",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("", $con); …

Member Avatar for pritaeas
0
116
Member Avatar for feoperro

Hi, Anyone know where I can get PHP source for a basic free contact form? I've googled and found quite a bit but I have no idea how to configure it to actually send emails, so I'm hoping there is one that I can download that I can test and …

Member Avatar for feoperro
0
496
Member Avatar for andrewliu

I have this link, and when you click on it, theres a GET variable lets say domain.php?page= [CODE]$_GET['page'];[/CODE] and if page equals a variable, I can echo out a form. So what if that form has a link to edit, but its under domain.php?page=[B]form[/B] oh and I have set this …

Member Avatar for Shanti C
0
102
Member Avatar for njagi

Hi Is there anyone who know How to capute a whole HTML file and convert itto Excel for example <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="description" content=""> <title>Fourth Year Computer Technology Time Table</title> </head> <body> <p>&nbsp;</p> <p>&nbsp;</p> <table cellspacing='4' cellpadding='4' border="1" align="center"> <tr> <td>Day</td> <td>Time</td> …

Member Avatar for ddellostritto
0
862
Member Avatar for a_salted_peanut

Hi all, Please bear with me on this as i have not long been learning how PHP works and am still learning VB.NET slowly. I have been testing the code for PHP using the Apache webserver. The problem i am having is, this is the function i am using with …

Member Avatar for DotNetNewbie5
0
2K
Member Avatar for Roybut

Hi All, (EDIT: Amazingly, I clicked on another thread to give myself a break from coding and i found half the answer immediately. Thanks Pritaeaus [url]http://www.daniweb.com/forums/post1478160.html#post1478160[/url]. However, when validation is not passed I still get the messed up page so if anyone can help, I'd be most grateful.) (EDIT 2: …

Member Avatar for Roybut
0
215
Member Avatar for Jhon E

Hello everyone, I have a text file which has some values structured as below -------------------------------------- 1 2 3 4 -------------------------------------- Then i made a PHP file which can receive checkbox values (always receive 2,3 & 4) from another HTML file as below [CODE]if($_POST['Button']){ $check = $_POST['$boxname']; foreach($check as $chk ){ …

Member Avatar for Jhon E
0
179

The End.