262 Posted Topics

Member Avatar for mevoohafez

where is your SQL statement? What uis the content of `test.php`? Your form is incomplete, plus you have a FORM within a FORM. I do not beleive this is viable

Member Avatar for Squidge
0
324
Member Avatar for er.Mohit
Member Avatar for Squidge
0
39
Member Avatar for Veronika9

Also i am sure if this would have the affect but your `DOCTYPE` is mis spelt > <DCOTYPE html> > <html>

Member Avatar for addme
0
220
Member Avatar for shhh

you could use either CSS tag: margin [Click Here](http://www.w3schools.com/css/css_margin.asp), or use a line break (<BR/>)

Member Avatar for Squidge
0
70
Member Avatar for DaveyMoyes
Member Avatar for Squidge
0
77
Member Avatar for Squidge

Hi all, I am working on a generic form validation class. However I have hit a stubling block. Form fields will never be the same from user to user. Is there a work around for this? Would it be easier to use numerical values for field names and use multiple …

Member Avatar for Squidge
0
205
Member Avatar for <M/>

> I can't figure out why the contact form doesn't send me a notification email telling me someone submitted a form. You need to call in (include/require_once) when the form is submitted, which triggers an email > I don't know how to send a user a message through their email …

Member Avatar for broj1
0
229
Member Avatar for dgerbergss

dgerbergss, Have a look [here](http://dev.mysql.com/doc/refman/5.0/en/subqueries.html), it is from MySQl website and shows how to nest queries

Member Avatar for debasisdas
0
84
Member Avatar for HometownHero

you havent closed the IF statement, you are missing "}" Is the image stored in the DB? Is the image displayed if you put the name in directly?

Member Avatar for HometownHero
0
210
Member Avatar for adishardis

<?php if ($second == "") { if($first - $third <= 5) { echo "<img src='images/img1.png' />"; } else { echo "<img src='images/img3.png' />"; } } else { if($first - $second <= 5) { echo "<img src='images/img1.png' />"; } else { echo "<img src='images/img2.png' />"; } } ?> Img 3 will …

Member Avatar for adishardis
0
117
Member Avatar for laura301019
Member Avatar for blocblue
0
195
Member Avatar for MrXortex

> <form method="post" action="signup-p.php" id="signupform"> > <div class="form"> > <div class="fieldset"> > <input name="signup_form" type="hidden" /> > <div class="input"> > <label for="username">Username</label> > <input type="text" name="user" id="username" value="" /> > </div> > <div class="input"> > <label for="email">E-mail</label> I would suggest changing all the " used in this to ' <?php …

Member Avatar for Squidge
0
280
Member Avatar for PHPuss

<table broder="1"> <tr> <td>Result 1</td> <td>Result 2</td> <td>Result 3</td> <td>Result 4</td> </tr> Then step through your while loop. For changing colour: if $result4 =='fail'{ do this }

Member Avatar for Squidge
0
1K
Member Avatar for laura301019

This tutorial may help you [Click Here](http://www.tizag.com/phpT/forloop.php)

Member Avatar for laura301019
0
108
Member Avatar for akuvidz

what is the URL before you start this script? where are you requesting the `$email` from? if you `var_dump($email);` is there a valid output?

Member Avatar for jayan.bee
0
149
Member Avatar for <M/>
Member Avatar for Squidge

WTF, i got a PM today. Please block how ever this bell end is: > Hello my name is queen how are you doing ,i hope fine i saw your profile today and became interested in you, it will be my humble pleasure to know you the more, and i …

Member Avatar for happygeek
0
135
Member Avatar for rjony321

Where is your Login/Logout button? Assign your button a name (ie/ button_1), then use your existing IF statement. if(isset($_SESSION[user_active_statue] == 1)) { $button_1 = "Logout"; } else { $button_1 = "Login In"; }

Member Avatar for Squidge
0
100
Member Avatar for tutusaint

You could select all User email address and create an array. Then use the array in the BCC field (that way no one gets other peoples email address')

Member Avatar for Javvy
0
110
Member Avatar for shehnaz1991
Member Avatar for Squidge
0
113
Member Avatar for CarterLangley

@CarterLangley You would need Java/JQuery to auto refresh the form on the change of the drop down. Give your form an ID and call submit on it using something like: `$('#myform').submit();` where 'myform' is the id of your form Or something like [this](http://stackoverflow.com/questions/329805/submit-form-when-elements-change)

Member Avatar for phorce
0
111
Member Avatar for mariaceline_21

You have missed the ";" <label class="grey" for="firstname">Firstname:</label> <input class="field" type="text" name="firstname" id="firstname" size="23" value="<?php echo $firstname; ?>"/>

Member Avatar for diafol
0
137
Member Avatar for mits28

> <form action="home.php" method="get"> Email:<input type="text" name="email"/> </form> also try adding `id="email"` `<form action="home.php" method="get"> Email:<input type="text" name="email" id="email"/> </form>`

Member Avatar for tyson567
0
195
Member Avatar for mathewmoozh

errr, 42?! (meaning to life :) ) errors? code you are using? help us to help you

Member Avatar for rileyganimator
0
140
Member Avatar for totti2007

@totti2007, I came across this some time back [Click Here](http://webcheatsheet.com/php/reading_clean_text_from_pdf.php)

Member Avatar for totti2007
0
210
Member Avatar for angelclawdust

the error you are seeing is relating to the login details/access rights. Is the DB user you are using got access rights to the database it self?

Member Avatar for pritaeas
0
140
Member Avatar for karolismf

karolismf, you are wanting to URL rewrite (aka MOD_REWRITE), this is done via .htaccess file. So for example you could turn this url: `www.somewebsite.com/index.php?s1=43&s4=44` Into something like: `www.somewebsite.com/43/44`

Member Avatar for minitauros
0
124
Member Avatar for Jdsiteworks

Are you getting an error message at all? Are you amending > require_once ('includes/config.inc.php'); > require('../connections/dbconnect.php'); to ensure the correct login details

Member Avatar for Jdsiteworks
0
321
Member Avatar for mogaka
Member Avatar for hwoarang69

> mysqlquery("SELECT image_id FROM image WHERE ???"); Why not : `mysqlquery("SELECT image_id FROM image WHERE user_id = $_SESSION['user_id']");`

Member Avatar for hwoarang69
0
134
Member Avatar for Squidge

I have been looking over current frameworks available and I am looking to settle on CodeIgnitor. What framework and IDE do you use? What are the plus sides, limitations of your choice?

Member Avatar for Squidge
2
142
Member Avatar for Octet

not sure if this is correct but remove the die statment from your redirect: <?php if ($Count == 0) { mysql_close(); header("Location: Errors/Login/Existance.php"); exit(); } ?> Also check the relativness of the path to your current script

Member Avatar for Octet
0
282
Member Avatar for BadManSam

@BadManSam, for user login form as veedeoo syas if this is not done correctly you can leave your complete system open for some very powerful attacks. I would suggest a frame work that has been tried and tested and maintained. 2 that come to mind would be Zend_Framework found [Here](http://framework.zend.com/), …

Member Avatar for diafol
0
128
Member Avatar for meriyas

what work have you already done in your student project? All of these can be done, have you look over PHP.net?

Member Avatar for heavyman
0
317
Member Avatar for azgold
Member Avatar for pritaeas
0
208
Member Avatar for showman13

You could always change the string to lower case if you do not want to take case in to it: $username='TestName'; $user='testname'; $username = strtolower($username); $user = strtolower($user); if ($username==$user){ print "This is the result I want." ; }else{ print "This isn't the result I want." ; }

Member Avatar for showman13
0
116
Member Avatar for wju2004

To do a redirect after the SQL query you would use: `header("location:[page to redirect to]");` To edit existing data in the DB you would want to obtain the data from the DB and display in the text fields: eg `<input type="text" name="Medic24" value="<?php $variable_of_the_data; ?>size="60" />` You would change the …

Member Avatar for wju2004
0
228
Member Avatar for missumissu

> "UPDATE web_members SET name='$name', lastname='$lastname', email='$email' WHERE id='$id'"; $PDO_con = new PDO; // Create DB connection $sql = "UPDATE web_members SET name='$name', lastname='$lastname', email='$email' WHERE id='$id'"; $q = $PDO_con->prepare($sql); $q->execute; // Execute cmd

Member Avatar for Squidge
0
148
Member Avatar for pgmarco

i maybe wrong but i think you need to have your session before any output, also i notice you are changing between MySQL and MySQLi. Is there a reason for that?

Member Avatar for pgmarco
0
325
Member Avatar for newbie1234

>in php i insert some data into database. In database s_no automatic increase when any data instered. I want to get that s_no. how do i get it. Newbie1234, can you show some code you are using? What is the naming in you db table? YOu would get the s_no …

Member Avatar for newbie1234
0
107
Member Avatar for Sanchixx
Member Avatar for shanboy

Try this site: [Click Here](http://www.datadirect.com/resources/odbc/using-php-odbc/windows.html) Found this

Member Avatar for Squidge
0
256
Member Avatar for trektrak

Simplest way use a form with 3 fields. current password new password Confirm Compare the current to that already in the DB table, use if stmt so if it is ok, then compare the new and confirm. If these match, update. If not throw exception

Member Avatar for vibhaJ
0
183
Member Avatar for lewashby

DHCp server can be used for many things. If you have no need fo rit, i wouldnt worry to much. They assign IP address to units in a network, for example if you have a PXE server, any unit that connects to this would require an IP, so DHCp assigns …

Member Avatar for lewashby
0
191
Member Avatar for PF2G

i am not great with javascript, but i dont think it passes variables via $_GET as you are not sending this information to the URL

Member Avatar for jmichae3
0
178
Member Avatar for afrogfx
Member Avatar for technoknol

no is the short answer to that, PHP is a server side logic language. You would be looking at C, or C++ something like that

Member Avatar for technoknol
0
2K
Member Avatar for opticblaze
Member Avatar for GlenRogers

yes. I would suggest driving the AVAILABLE page by PHP and database

Member Avatar for Squidge
0
152
Member Avatar for dwlamb
Member Avatar for Squidge
0
236

The End.