14 Topics

Member Avatar for
Member Avatar for markii.borabon

Im developing e-commerce website wherein the costumer can leave comment in a specific product.. and im getting crazy how could i set the product id and user who leave comment on that specific product. the comment must be read by the other user. please help!

Member Avatar for Alberto Bucur
0
89
Member Avatar for genwes

Hi, i've been asked to create a visit counter using checkboxes and a submit button. When a form (available form - code below) is submitted (pressed visit button) a script should work out which properties have been selected (using checkboxes) by the user and then add one to the Visits …

Member Avatar for genwes
0
349
Member Avatar for milkman93

Hey fellas, My prof gave us a php example in class and I'm having some trouble understanding a peice of code: isset($_POST["item"])? $item = $_POST["item"]:$item = "Not Set"; isset($_POST["quantity"])? $quantity = $_POST["quantity"]:$quantity = "0"; The problems: Does isset just check if "item" is equal to something? The format of the …

Member Avatar for jkon
0
191
Member Avatar for scholarwithfire

Hello guys, I'm writing a code that will display another form when the submit button on the first form is clicked (isset). However on the second form, there is nothing happen after i clicked the second submit button **line 62**. The javascript alert seems to be not executed. Any idea …

Member Avatar for mmcdonald
0
277
Member Avatar for holosoft

Hi, This is a part of my code..I'm making a Post form if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ print "<tr><th>Email1: </th> <td><input name=\"email\" type=\"text\" class=\"textfield\" id=\"email\" /></td> </tr>"; print "SESS not set"; //////////////////for test } if(isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ $memberEmail = $_SESSION['SESS_MEMBER_ID']; print $memberEmail;/////////////////for test print "<input name=\"email\" type=\"hidden\" value=\"{$memberEmail}\"class=\"textfield\" …

Member Avatar for LastMitch
0
125
Member Avatar for drjay1627

Hello, I have a simple form. <form action="" method="post"> <label for="user">Name</label> <input type="text" name="user" id="user" /> </br> <label for="title">Title</label> <input type="text" name="title" id="title" /> <textarea name="body" rows="20" cols="60"></textarea> <input type="submit" value="Add Post" /> </form> I am trying to insert this to a table, which I am able to do. But …

Member Avatar for ko ko
0
149
Member Avatar for Mko_

So, I have this following snippet of code: if (isset($_POST['type1'])) { mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error()); } if (isset($_POST['type2'])) { mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error()); } if (isset($_POST['type3'])) { mysql_query("UPDATE table SET …

Member Avatar for fobos
0
123
Member Avatar for heshanm

I have a login form and i want to enter username & password to log into the system. When loading the page (index.php) there was an error displayed like this. >Notice: Undefined index: msg in C:\wamp\www\Home page\new student registration\index.php on line 13 index.php <form id="form1" name="form1" method="post" action="adminloginvalidate.php"> <?php $message=$_POST["msg"]; …

Member Avatar for heshanm
0
232
Member Avatar for megachip04

I have an approve.php inside an /include directory. I have another file inside the /pop_up directory. Approve.php [CODE] if (!isset($_SESSION['username'])) { header("location:log_in.php"); die(); } [/CODE] When i run the include('include/approve.php') code in files in the main directory, it works. When I run the include('../include/approve.php') in files in the pop_up/ directory …

Member Avatar for shah01
0
564
Member Avatar for dinhunzvi

how do i rewrite the following code using the ternary operator [CODE] if ( isset( $page_title ) ) { echo $page_title; } else { echo 'Welcome to Auto-Zim'; } [/CODE] thanks in advance

Member Avatar for pritaeas
0
129
Member Avatar for Ingska

Hi! I have a form made in php4 that worked great until I updated to php5. When I did this I got a lot of undefined indexes. I have been placing isset() around in the form, and now the undefined indexes does no longer show. But something is still not …

Member Avatar for Ingska
0
194
Member Avatar for Farhad.idrees

kindly tell me is this statement is right? i want to use isset statemnt with or condition... if( isset($_GET['P_Price']) || isset($_GET['P_Category'])) ........... Regards.. Farhad

Member Avatar for ddymacek
0
108
Member Avatar for jrotunda85

I've been messing arround with this for the past little while and I can't seem to figure out the best way to to about doing this. Essentially, I'm trying to create a three part statement. The first will check is a session variable isset & the user has a rolecd …

Member Avatar for jrotunda85
0
334
Member Avatar for devinodaniel

Hey friends, I have a page that I've been working on for HOURS and finally almost have it perfect except for TWO things: 1. Every time I load the page it automatically inserts a blank row of data into my MySQL database. (Submitting it after filling out the for works …

Member Avatar for diafol
0
6K

The End.