895 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Divyansh_5

`Here is my HTML Code : <html> <head> <title>Welcome</title> </head> <body> <form enctype="multipart/form-data" action="upload.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile_1" type="file" /><br /> Choose a file to upload: <input name="uploadedfile_2" type="file" /><br /> <input type="submit" value="Upload Files" /> </form> </body> </html> And Below …

Web Development login php upload
Member Avatar for Jawass
1
185
Member Avatar for Mr.M

Hi DW. I have code: <div class="lv-item media"> <div class="lv-avatar bgm-purple pull-left">u</div> <div class="media-body"> <div class="lv-title">dynamically_generated_value</div><!-- I want to get this value --> <div class="lv-small">Sample text</div> </div> </div> I use the following code to activate the selected list. NB the above is also dynamically generated for simplicity let say we …

Web Development javascript jquery
Member Avatar for Mr.M
0
52
Member Avatar for Christopher_41

hi All i am trying to make a set of pages that are adaptable to different websites, the text is generally the same for each site, but i need to insert names and other text to the site on different pages, i would like to do that by having a …

Web Development php
Member Avatar for Christopher_41
0
135
Member Avatar for larry29936

I don't understand why this update script isn't working. It is supposed to get the names of files in the download folder and update the files table in the database. It is running through the code without exiting when it fails to update but still displays "Update Successful". The downloads …

Web Development mysql php
Member Avatar for Dani
0
64
Member Avatar for emsanator

$html = 'Hello there this is image 1 <img src="http://www.example.com/XXX1.jpg" width="653" height="340" alt="xxx" title="xxx"> !! And Now you can see image number 2 <img src="http://www.example.com/XXX2.jpg" width="653" height="340" alt="xxx" title="xxx"> yep.'; $dom = new DOMDocument; $dom->loadHTML($html); $imgs = $dom->getElementsByTagName('img'); $imgURLs = []; foreach ($imgs as $img) { if (!$img->hasAttribute('src')) { continue; …

Web Development php
0
53
Member Avatar for larry29936

I'm using the following code for users to download files from my website. It works fine for files under 50MB, but fails immediately for larger files. Can someone explain why this is happening and how to fix it? Some of the downloadable files are over 800MB, so I need this …

Web Development download php
Member Avatar for Dani
0
47
Member Avatar for Dani

Suppose you have a php script where a user is prompted to enter a number. You then do something with that number ... you increment it, perform some other math calculation on it, search the database for records with the ID # the user passed in as a query string, …

Web Development php sanitize
4
755
Member Avatar for Joe_940

So i have multiple web pages containing multiple episodes, what I'm trying to implement is a search box in the nav bar which will bring up the episode/category your looking for, nothing too over complicated. If anyone would be willing to point me in the right direction that would be …

Web Development php sql
Member Avatar for Jawass
1
151
Member Avatar for emsanator

Hi, I'm trying to create a theme-compatible category system, but I missed some points. For example; `category_name_women_clothing` and `category_name_women_bag`, etc.. are supposed to be collapsible, but I was not successful in this. How can I make a model that opens and closes sub-categories, where am I missing? [This is what …

Web Development mysql php
Member Avatar for Dani
0
167
Member Avatar for larry29936

I'd like to improve security of my website. Currently, the download filename is passed to the download script. The filenames are stored in a database table with an index number (primary key). I'd like to pass that index number to the download script instead of the filename and do a …

Web Development php
Member Avatar for Dani
0
116
Member Avatar for pok4

Hello guys, I'm using mustache php template engine with classes. My system is extendable via extensions which is injected in basecontroller construct method... The extensions is working correctly, but in them i have html and js... I want to move html/js in external files but i need to works with …

Web Development ajax database javascript
0
73
Member Avatar for Divyansh_5

Hi,i tried my level best but couldn't create a PHP Script to Upload Files to FTP (To Uploadify) from my local computer. Any Help..! If anyone can share the Code/ Script?

Web Development php upload
Member Avatar for Dani
0
69
Member Avatar for nextsmm

I'm currently building a SaaS product, it's just me working on it, and its been a long process. I need to generate revenue and created an Instagram account to find clients that need web & graphic services, I'm thinking of making it a recurring monthly package that costs about 100$ …

Web Development database
Member Avatar for Dani
0
46
Member Avatar for larry29936

When user tries to download .iso, tar.gz, or .deb from my website php is opening the file instead of downloading it. I'm having a problem with a download script. It runs fine on my local apache server, but when I put it on the my webhost's apache server, it goes …

Web Development php
Member Avatar for Dani
2
77
Member Avatar for danny4444

Hi there, I am having trouble with a php mail attachment. I have never done this before. I have got to the point where the script sends a blank message with a title... but no attachment and no body of the email is seen. I have opened up the email …

Web Development php
Member Avatar for Rick_15
0
3K
Member Avatar for larry29936

I have a php function which allows users to download files from our archive site in England. The main site is in the U.S. and that function is working correctly. The UK function results in the files having incorrect md5sums. I've gone through it multiple times and can't find any …

Web Development download php
Member Avatar for larry29936
0
94
Member Avatar for hfortenberry

Hello, I have a Read More type of link at the bottom of a short list of test News items and am trying to center it horizontally under the list. I think I have the CSS correct but it appears something is inhibiting it. I know I've got the correct …

Web Development
0
46
Member Avatar for KirovEli
Member Avatar for Arun_47
2
232
Member Avatar for rickarro

I have the below file that opens a pdf and puts some text at the top. This is working fine. But what i want to do now is replace mypdf.pdf with the results of a mysql query. Similar to this: `$pageCount = $pdf->setSourceFile('../folder/folder/$mypdf');` and `$pdf->Write(0, '$sampletext');` Each person going to …

Web Development mysql php
Member Avatar for AndreRet
0
116
Member Avatar for emsanator

I create the product's information and variations with Ajax, but it is not possible to click on the variations, what could be the reason? <form> <div class="form-group"> <p class="mb-5"> Size: <strong><span id="sizeCaption">--</span> US</strong> </p> <div id="item_variation_size" class="mb-2"></div> <div class="form-row mb-7"> <div class="col-12 col-lg"> <button type="button" class="btn btn-block btn-dark mb-2 addToCart">Add …

Web Development ajax javascript jquery
Member Avatar for Biiim
0
108
Member Avatar for timlab55

Anyone can find a piece of code, cut and paste it. That's fine, as I do it. But I need to know the flow of how things work. Is there a short para that can explain it? Thanks

Web Development css php
Member Avatar for Biiim
0
95
Member Avatar for Valeriia

Hey, I'm searching for a simple 2-level popup menu that could change color and size with the help of CSS. I want the menu to appear on the left of the page, be opened by clicking on the burger icon, and be closed by clicking the cross or someplace outside …

Web Development css
Member Avatar for AndreRet
0
82
Member Avatar for kevindougans

![Screen_Shot_2022-02-18_at_19_31_27.jpg](https://static.daniweb.com/attachments/0/9d7516d5e671e13eb3a629920d7e4e35.jpg) I'm trying to make a form all in one line instead of over multiple lines/height. It can be seen on https://grapefruit-crocodile-hdl3.squarespace.com/ (pwd: contagency) It's supposed to look the attached image, any pointers appreciated. I've got this far, so far: form { display: flex; } .form-item.field.email, .form-item.field.select, .form-button-wrapper.field.submit { display: …

Web Development css html
Member Avatar for Dani
1
166
Member Avatar for Valeriia

Hey, I own a site that has two versions - mobile and desktop. I’ve implemented Schema.org to the desktop version of the site. Should I add it on the mobile site as well? What do you think?

Web Development wordpress
Member Avatar for Dani
1
37
Member Avatar for Mr.M

Hi DW. I want to get a message only on that specific targeted tab id. If the messege is sent to tab id 2, it should run a script under tab id 2 to update that page displayed or for simplicity log on tab id 2 console the message. The …

Web Development chrome javascript
Member Avatar for Mr.M
0
173
Member Avatar for 09jesses

Trying to show divs and elements when a session doesn't exist. But when I save an item to a cart/wish-list a session starts and goes back to a page that is now supposed to show the item info and hide <td id="cartHideBtn">...</td>. //shows when no session exists, but also needs …

Web Development javascript php
Member Avatar for Mr.M
0
561
Member Avatar for dado.d

Hi I'm using European payment provider which is providing me API to communicate with them. There is a step where I need to ask from a buyer credit card info (number, expiration and CVV) so I can pass that info to that payment gateway via API. Is that even allowed? …

Web Development credit-card payment php
Member Avatar for KirovEli
0
121
Member Avatar for joshl_1995

Hello Daniweb, I was wondering how come a cURL API I made to call a function from my other website (but on the same hosting plan) no longer works. I even tried making a test API to call in the same directory, eg... :api.php <?php die(json_encode("something")); ?> :testing.php <?php $url …

Web Development curl php
Member Avatar for Dani
0
3K
Member Avatar for Bidesh
Member Avatar for Arsslan

Hi, Please can some one tell me is Cloud ERP Safe to use for your business ? THanks

Web Development ajax jquery php
Member Avatar for TyaSuite
0
117

The End.