Category : javascript

i found this code on internet and i want to have these inputs: name check box with 5 items this code saves user’s info that selected in checkbox and his name in a text file can someone help me to fix this? <!DOCTYPE html> <?php if(isset($_POST[‘submit’])){ $Name = “Username:”.$_POST[‘username’].” “; $Pass = “Password:”.$_POST[‘password’].” “; $file=fopen(“saved.txt”, ..

Read more

I’m making a login form true an XMLHttpRequest. When a user enters incorrect details, a message will show up with an error. But when a user enters correct details, he should go to a new page (dashboard). This is a part of my PHP <?PHP // Details are correct $output = header(‘Location:dashboard/index.php’); // Details are ..

Read more

I been looking for days for any sample code (without having to install or include bunch of files plugins etc) to upload files to my website (And, something that shows progress for each file). I been trying to find just basic javascript (with/without Ajax). I found: https://github.com/RonnieSan/uploadify It works, it’s not perfect. The problem is ..

Read more

So i have this joomla 4 installed Website and i need a custom field(Editor type) for my product specifications which is gonna be showing a table for example if i put this code: <table> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> <td>Germany</td> </tr> <tr> <td>Centro comercial Moctezuma</td> <td>Francisco Chang</td> <td>Mexico</td> </tr> </table> ..

Read more

I try to delete backup with DELETE method in Laravel and Axios but the request is comming back empty. Controller: /** * Remove the specified resource from storage. * @param Request $request * @return Response */ public function destroy(Request $request) { return $request; } Route: Route::middleware([‘auth’])->prefix(‘backup’)->group(function() { Route::get(‘/’, ‘[email protected]’); Route::delete(‘/delete’, ‘[email protected]’)->name(‘backup.delete’); }); Axios Request axios.delete(`/backup/delete`,{data: ..

Read more

Currently I’m trying to print two copies of the same receipt without using the browser-print dialogue. Now unfortunately there is no way to pass the number of copies to the print dialog so the only solution I came up with is doing it in a LOOP, but when looping the print command it does not ..

Read more