[Solved] How to use POST method in perl? [closed]

Using LWP: use warnings; use strict; use LWP::UserAgent; my $linkid = “link identifier”; my $browser = LWP::UserAgent->new; my $response = $browser->post( ‘http://sitewithlinks/linkget.php’, [ ‘linkid’ => $linkid, ‘hidden’ => ‘somethinghidden’ ], ); die “Error: “, $response->status_line unless $response->is_success; print “GOT THIS: $response->content”; solved How to use POST method in perl? [closed]

[Solved] I want make a list and and show in double list [closed]

You need to count the records, and then calculate how many rows are required per column: $result = mysql_query(“SELECT * FROM `my_table` WHERE `foo` = ‘bar'”); $num_records = mysql_num_rows($result); $num_columns = 2; $rows_per_col = ceil($num_records / $num_columns); $records = array(); while($row = mysql_fetch_array($result)) { $records[] = $row; } // Now get the columns in two … Read more

[Solved] Redirect & Headers already sent [duplicate]

You can only use header(‘…’); before any other output. In your case it should be: <?php //beginning of the file if (isset($_POST[‘Submit’])) { $message = $_POST[‘message’]; $subject = $_POST[‘subject’]; $country_id = $_POST[‘country_id’]; createrow($message, $subject, $country_id); header(‘Location: memberprofile.php’); } ….. ?><!DOCTYPE …. <HTML>…. ….. solved Redirect & Headers already sent [duplicate]

[Solved] c# windows form in form as part of the ihm

Im’ really sorry guys, yeah i just had to make my borderstyle none. Really sorry to made you loose your time, and thanks for the answer Reports rep = new Reports(); rep.FormBorderStyle = FormBorderStyle.None; rep.MdiParent = this; rep.Show(); solved c# windows form in form as part of the ihm

[Solved] Merge multiple txt files in Excel power query [closed]

Final try on this one Use Home…advanced editor… and paste this function into PowerQuery. Name it: fnReadFile (zFile)=> let Source = Csv.Document(File.Contents(zFile),[Delimiter=”#(tab)”, Columns=1, Encoding=1252, QuoteStyle=QuoteStyle.None]), #”Added Index” = Table.AddIndexColumn(Source, “Index”, 0, 1), // Date row includes text “Date: ” DateFind = Text.Replace(Table.FindText(#”Added Index” , “Date”){0}[Column1],”Date: “,””), // Row preceeding data includes text “>>>” CaratFind = … Read more

[Solved] How to write a query, to produce the desired result?

You can use DENSE_RANK(). For example: select id, name, quantity from ( select id, name, quantity, dense_rank() over(order by quantity desc) as rk from t ) x where rk <= 2 DENSE_RANK() computes a number for each row according to an ordering of your choosing. Identical values get the same number, and no numbers are … Read more

[Solved] Passing variables from HTML to JS back to HTML

Your code has lots of syntax errors. Try this: <html> <body> <table style=”width:100%”> <tr> <td class=”bosytext” width=”15%”>Membership Period</td> <td class=”bosytext” width=”75%”> <input type=”number” name=”membershipterm” id=”term” required=”required”> <button onclick=”calc()”>calc</button> $22 for single year membership/ $20 per multi-year membership </td> </tr> <tr> <td width=”15%”>Fee</td> <td width=”75%” id=”totalFee”></td> </tr> </table> <script> function calc(){ var term = document.getElementById(‘term’).value; var … Read more

[Solved] I have a table with a status however I want it to change status every 10 minutes. I’m using Postgresql

I can see what you’re after although there is a big omission: What happens when the status has reached ‘Z’ and it is time to update? More on that later. Your request has 2 components, actually getting a process to run and a rolling update procedure (script) for the status. Well, Postgres has no native … Read more