389 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: 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)); | |
Re: Do you main like [this](http://www.w3schools.com/tags/att_option_selected.asp) ? | |
Re: to check for mysql errors: `mysql_query("the query to test")OR die(mysql_error());` | |
Re: 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']` | |
Re: 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 … | |
Re: 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 | |
Re: 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 | |
Re: 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 | |
Re: 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 | |
Re: 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 | |
Re: does the file you are moving exist an have you opened it? show us some code or do we have to keep gessing? | |
Re: what do the functions: selected, select and selectfetch do? and more inportant, where are the defined? | |
Re: 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 | |
Re: 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? | |
![]() | Re: 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] |
Re: 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) | |
Re: have you trieed to do it with phpMyAdmin? ![]() | |
Re: [This site](http://www.opensourcecms.com/) has demo's running so you can get a inpresssion about the functionality | |
Re: first hit on google is a nice tutorial: [http://www.phpeasystep.com/phptu/6.html](http://www.phpeasystep.com/phptu/6.html) | |
Re: 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. | |
Re: 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. | |
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 … | |
Re: 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 | |
Re: 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 | |
Re: rename your .XML file to .PHP for the code to run | |
Re: you can use your brouwser to download the xml maualy or for automatic download you need to write a server site script (php-curl) | |
| |
Re: you don't check if the user is actual loged-in in userlogin.php I would use $_SESSION insted of cookie | |
Re: 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 | |
Re: that will tricker the popup blocker, better to do something simple in html or css | |
Re: > /admin/offers.php could not be found on this server. What's the question? | |
Re: > ''Sharing Basis' )' looks like a missuse of mysql_real_escape_string can u post the php-code used to create the query? | |
Re: 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? | |
Re: 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` | |
Re: ofcourse you can use a diferent eventhander on every div `<div id="div1" onmouseover="handeldiv1()" >` | |
Re: some usefull comments in this forum: [http://www.webmasterworld.com/forum91/5050.htm](http://www.webmasterworld.com/forum91/5050.htm) | |
Re: does $_GET["xmlFile"] contan the filename/url of the xml or the actual xml-content? | |
Re: 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/>"; | |
Re: 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 | |
Re: 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 | |
Re: 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 = … | |
Re: mysql_db_query is DEPRECATED just use mysql_query [CODE]$shala = mysql_query($SQL);[/CODE] | |
| |
Re: 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 | |
Re: simply test for it [CODE] if (!( $key=='submit')){ $columns[$key] = "'" . mysql_real_escape_string($value) . "'"; } [/CODE] | |
Re: [QUOTE]make another sollution [/QUOTE] [QUOTE]Please make it quickly.[/QUOTE] sorry no time maybe next week | |
Re: check if the directory orig_img/ on your server is writeble by apache |
The End.