389 Posted Topics

Member Avatar for ferdinandmucos

The way you have it now: `$answers = $_POST['selected_answers0']` answer to question 0 `$answers = $_POST['selected_answers1']` answer to question 1 `$answers = $_POST['selected_answers2']` answer to question 2 if you change line 65 to echo "<input type=\"radio\" name=\"selected_answers[{$questionNr}]\" value='\"' />"; the result will be in `$answers = $_POST['selected_answers']` this is an …

Member Avatar for ferdinandmucos
0
303
Member Avatar for phfilly

1. You do notting with the return value function bookmark() { var pageNum = 2; var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); }else{ alert("Not assigned!"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML="we got back: "+xmlhttp.responseText; } }; var url="Bookmark.php?pageNum="+pageNum; xmlhttp.open("GET",url , true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send(); alert("Bookmark …

Member Avatar for phfilly
0
295
Member Avatar for dbalas

i think there is an error in the mysql query: there is no WHERE part. what is te respone if change line 17 to: $result = mysqli_query($con,"SELECT add_delete_record.content, handover.shipment_type FROM add_delete_record, handover ") or die(mysqli_error($con));

Member Avatar for dbalas
0
198
Member Avatar for ferdinandmucos

Do you main like [this](http://www.w3schools.com/tags/att_option_selected.asp) ?

Member Avatar for ferdinandmucos
0
245
Member Avatar for GlenRogers

to check for mysql errors: `mysql_query("the query to test")OR die(mysql_error());`

Member Avatar for GlenRogers
0
328
Member Avatar for joshl_1995

If I'm understand you correctly , you want to do this: `<input type="hidden" name="formnr" value="<?php echo $f; ?>">` This will not be visible on the form but after you submit, the value of $f will be availeble as `$_POST['formnr']`

Member Avatar for Webville312
0
211
Member Avatar for davy_yg

If you submit your form it will display it again. The select-stament will preselect the top option by default, that's 'home'. to chanch this you can do this: `<option value="Product5" selected="selected">Product5</option>` This way the select statmant will always preselect product5 to select the the value the user submited compare it …

Member Avatar for pzuurveen
0
153
Member Avatar for erictdavid

Is this what you want? -save the user-form in a database creating an id-nr -send boss a email with a link with that id-nr -create 2e form displaying info from database using the id-nr (need boss login) -save 2e form coments to db

Member Avatar for annaharris
0
211
Member Avatar for harbi.dayah

there can be no output to the browser be for the header(). So remove echo statments at line 24 and 38 also move the comment at line 1 inside the <?php tag

Member Avatar for harbi.dayah
0
1K
Member Avatar for wolfgangcs

Every form has the same id change to `<form action='admin.php' method='post' accept-charset='UTF-8' id='editemployee{$row['id']}' >` do something simular for the id of the input fields

Member Avatar for masterjiraya
0
598
Member Avatar for theguitarist

This sound more like a brower plugin than a website using javascript Butt: I is posible to directly read the historydatabase for firefox using php. but only for localhost and loged in as a specific user (this one is for a window7 machine) `$HistoryFile="C:\\Users\\username\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\somethingrandom.default\\places.sqlite";` open it using PDO

Member Avatar for theguitarist
0
440
Member Avatar for nsam

unless you are writing a plugin you dont have to. go to go to the adminpanel, http://yoursite.com/wp-admin click: post -> new post type away when done click: publish

Member Avatar for pzuurveen
0
162
Member Avatar for Naga14

does the file you are moving exist an have you opened it? show us some code or do we have to keep gessing?

Member Avatar for pzuurveen
0
278
Member Avatar for mrexp21
Member Avatar for pzuurveen
0
413
Member Avatar for sky27

Images are usealy stored in a special directory and only the filename stored in the database if you do want to store the image itself you can use [base64-encode](http://www.php.net/manual/en/function.base64-encode.php) on the image and store it as a blob

Member Avatar for pzuurveen
0
30
Member Avatar for aryan200x

a subdomain usealy has the same ip as the main domain, which you know, it your server ip: `$_SERVER['SERVER_ADDR']` or don't i understand what you want?

Member Avatar for aryan200x
0
2K
Member Avatar for OldDeveloper01

You get that error because you call [CODE]$_POST['savebtn'][/CODE] without having $_POST['savebtn'] it doesn't exist until after the form is submited you have to check first. chanche your if statement to [CODE]if( isset($_POST['savebtn']) && $_POST['savebtn']){[/CODE]

Member Avatar for pzuurveen
0
1K
Member Avatar for JokerTime

your checkbox doen't do anything because it has no name and no value. after that you just display the rest of the information - no <input> Take a look at this [http://www.w3schools.com/html/html_forms.asp](http://www.w3schools.com/html/html_forms.asp)

Member Avatar for broj1
0
204
Member Avatar for dinhunzvi
Member Avatar for anandschiru

[This site](http://www.opensourcecms.com/) has demo's running so you can get a inpresssion about the functionality

Member Avatar for pzuurveen
0
141
Member Avatar for reemasmartin

first hit on google is a nice tutorial: [http://www.phpeasystep.com/phptu/6.html](http://www.phpeasystep.com/phptu/6.html)

Member Avatar for Bachu
0
194
Member Avatar for rotten69

yes. There are smartphone that don't run IOS. A website will also work for android and window mobile. Less usful for desktop computers, but I don't bring my pc to starbucks that often. so a website targeted at mobile devices will do fine.

Member Avatar for chrislim2888
0
284
Member Avatar for GlenRogers

checkout [imagecopyresampled](http://php.net/manual/en/function.imagecopyresampled.php) , look at example 1. Do you want to add the images to to the database? It's often better (faster) to save the image to a special dir and just store the filname in the database.

Member Avatar for DarkMonarch
0
203
Member Avatar for pzuurveen

i got a testing blog that got spammed. So I removed the entire blog. Now weeks later, my errorlog still get thousends of 404's a day. I still want to see 'normal' 404 from other sites on that server. There are no files in that dir but .htaccess: RewiteEngine on …

0
165
Member Avatar for collinskawere

I think the problem is here (line 28) foreach ($split as $array => $value) { if (strlen($value) > 3) { continue; } $new_string = ''.$value.' '; } $new_string will only exist if $array contains a value longer than 3 chars

Member Avatar for pzuurveen
0
354
Member Avatar for pete harby

do you notice the de color of the code chanched after [PHP] <?region-start id="lines" type="repeat" ?> [/PHP] the ?> tag closes the php sesion despate it being commened out by // use of /* */ comment will solve this

Member Avatar for hoffmen99
0
4K
Member Avatar for veledrom
Member Avatar for YodaMerlin

you can use your brouwser to download the xml maualy or for automatic download you need to write a server site script (php-curl)

Member Avatar for emclondon
0
198
Member Avatar for ask,dziner
Member Avatar for jemz

you don't check if the user is actual loged-in in userlogin.php I would use $_SESSION insted of cookie

Member Avatar for jemz
0
140
Member Avatar for gopi17

You can pass the [session id](http://php.net/manual/en/function.session-id.php) as a $_GET variable. That will work even if cookies are not suported

Member Avatar for gopi17
0
154
Member Avatar for gsique
Member Avatar for simplypixie
0
52
Member Avatar for tarunfuture

> /admin/offers.php could not be found on this server. What's the question?

Member Avatar for vibhaJ
0
79
Member Avatar for abhi10kumar

> ''Sharing Basis' )' looks like a missuse of mysql_real_escape_string can u post the php-code used to create the query?

Member Avatar for abhi10kumar
0
180
Member Avatar for arihantphp

yes it's posible do you want to refrech the page (press the submitbutton), or does the name div have to change while you type?

Member Avatar for broj1
0
220
Member Avatar for klemme

The $body must contain a "webpage" displaying the image, complete with ` <html>` and `<body>` tags. for the image use a remote link: `www.yourserver.com/css/mail-top-img.gif`

Member Avatar for klemme
0
196
Member Avatar for sanket044

ofcourse you can use a diferent eventhander on every div `<div id="div1" onmouseover="handeldiv1()" >`

Member Avatar for pzuurveen
0
177
Member Avatar for arunsolo1984

some usefull comments in this forum: [http://www.webmasterworld.com/forum91/5050.htm](http://www.webmasterworld.com/forum91/5050.htm)

Member Avatar for pzuurveen
0
84
Member Avatar for Ana D.

does $_GET["xmlFile"] contan the filename/url of the xml or the actual xml-content?

Member Avatar for veedeoo
0
283
Member Avatar for lastgame2007

for($i=0;$i<$num_entry;$i++) { if($i!=$num_entry) { $insert.="$d,"; } else { // will never run because for-loop exits at same value $result=mysql_query($insert)or die(mysql_error()); } } // $insert still not finist here see: echo "<br/>$insert<br/>";

Member Avatar for pzuurveen
0
152
Member Avatar for Casperjames

to check if it wordrap or a css problem [CODE]echo"<XMP>"; var_dump($wrapedTxt); echo"</XMP>"; [/CODE] this will display the <br /> in the $wrapedTxt

Member Avatar for pzuurveen
0
181
Member Avatar for akasekaihime

all your <input > have the name "searche" you have to gave them all a diffent name [CODE]Name: <input type="text" class="field small-field" name='fullname' />[/CODE] the input from that field will be avaleble in reservation_insert.php as [CODE]$_POST['fullname'];[/CODE] also to prevend mysql-injections use [CODE]$name=mysql_real_escape_string($_POST['fullname']);[/CODE] then use $name in your query

Member Avatar for pzuurveen
0
200
Member Avatar for mlhazan

define() is used to declare a constant since you are in a class, use [CODE]$this->server="localhost";[/CODE] you also want your $connection variable like that: [CODE]class mysql { var $server; var $conn_username; var $conn_password; var $database_name; var $connection; var $select; var $query; function connect() { require "database.inc.php"; $this->connection = mysql_connect($this->server,$this->conn_username,$this->conn_password); $this->select = …

Member Avatar for emclondon
0
173
Member Avatar for grayson773

mysql_db_query is DEPRECATED just use mysql_query [CODE]$shala = mysql_query($SQL);[/CODE]

Member Avatar for Biiim
0
266
Member Avatar for veledrom
Member Avatar for Buppy
Member Avatar for tubesnube

looks like you want to send an html-email take a look at this example: [URL="http://www.webhostingtalk.com/showthread.php?t=416467"]http://www.webhostingtalk.com/showthread.php?t=416467[/URL] for the message just built a table with variables as you would do for displaying it in a brouwser

Member Avatar for Biiim
0
303
Member Avatar for asprin

simply test for it [CODE] if (!( $key=='submit')){ $columns[$key] = "'" . mysql_real_escape_string($value) . "'"; } [/CODE]

Member Avatar for FreeGeezer
0
275
Member Avatar for foysal2012

[QUOTE]make another sollution [/QUOTE] [QUOTE]Please make it quickly.[/QUOTE] sorry no time maybe next week

Member Avatar for foysal2012
0
148
Member Avatar for javedsai

The End.