Everything posted by ChrisH
-
Client is declared bankrupt. Can I sell their domain?
A client of mine went into administration and has closed down. The companies assets have or are in the process of being sold. They currently owe me several hundreds of pounds. Their domain name is quite valuable, and is due to be renewed tomorrow. If I renew the domain name myself, in my name, am I then able to sell the domain? There is no-one for me to contact to ask about the renewal. Has anyone been in a similar situation? (I feel no loyalty to the company, they went bust as the director has over £30,000 in his bank account, yet the company owed it's staff £28,000 in unpaid wages. )
-
switch or if statements in html tags?
Be careful, short tags (<?) are not enable be default in > PHP 5. Ta, Chris.
-
PHP - Processing an unlimited number of form elements
Hello, If you put [] after the input elements name, then PHP will create an array of each of these. Then you can have code such as this: <tr> <td> Event </td> <td> Date </td> <td> Adult (£) </td> <td> Child (£) </td> <td> Conc (£) </td> </tr> <tr class="row_dark"> <td>Event Name</td> <td>October, Saturday 18th, 07:00PM</td> <td> <select name = "selNumAdultTicketsEventID[59]"> <option value="0">0 x £39.00</option> <option value="1">1 x £39.00</option> <option value="2">2 x £39.00</option> <option value="3">3 x £39.00</option> </select> </td> <td> <select name = "selNumChildTicketsEventID[59]"> <option value="0">0 x £39.00</option> <option value="1">1 x £39.00</option> <option value="2">2 x £39.00</option> <option value="3">3 x £39.00</option> </select> </td> <td> <select name = "selNumConcTicketsEventID[59]"> <option value="0">0 x £39.00</option> <option value="1">1 x £39.00</option> <option value="2">2 x £39.00</option> <option value="3">3 x £39.00</option> </select> </td> </tr> If you don't put the value 59 in, it will automagically number the array. Cheers, Chris.
-
Handling Money Transactions In Php?
Thanks for the info My ponderings about IPN were how it would work with regards to the OPs question as you would have to instruct each user to log into their PayPal account and set up the IPN (not an elegant solution, by any means). I'm well versed with how PayPal's IPN works with regards to conventional e-commerce applications. Although I'm sure somebody here will find your info useful. You can specify the IPN URL in a PayPal post form, I'm not 100% if this works, as I always set it in my clients account. That was my question. Ta, Chris.
-
Hiding file name extensions
I think using mod_rewrite in this instance would over complicate things, especially with regard to loading a different page based on a session. You would be much better off using PHP's session handler and simply including the page based on what is written in the session.
-
Hiding file name extensions
The rival website (I hate the term rival - see below). Uses a frame to mask the true URL. <html> <head> <LINK REL="SHORTCUT ICON" HREF="http://www.ukdirt.co.uk/ukdirt/graphics/favicon.ico"> <title>UK-Dirt Online Racing League - Official Website</title> <META name="description" content="The UK's #1 Oval Racing League. Regular racing for BriSCA F1 & F2 Stock Cars, Bangers, Saloon Stocks, National Hot Rods and Legends."> <META name="keywords" content="ukdirt, uk-dirt, online, racing, stock car, banger, oval, servers, cybernetic"> <META http-equiv="Content-type" content="text/html; charset=iso-8859-1"> <FRAMESET rows=100%> <!-- MAIN --> <!-- <FRAME NAME="MAIN" SRC="http://www.ukdirt3.co.uk/cgi-bin/router.pl?link=/ukdirt/home.ukd"> --> <!-- BACKUP --> <FRAME NAME="MAIN" SRC="http://www.ukdirt.co.uk/cgi-bin/router.pl?link=/ukdirt/home.ukd"> <!-- MAINTENANCE --> <!-- <FRAME NAME="MAIN" SRC="http://www.ukdirt.co.uk/maintenance.html"> --> </frameset> </html> You could simply replace the URLs with your own. This will only MASK the URLs not hide them, it is very trivial to find out what they are. -- Note about the term rival: I believe in abundance theory, there is more that enough for everyone. I also believe most people on this forum do too. Otherwise why would they be helping their rivals?
-
paypal IPN - need help
<input type="hidden" name="custom" value="<?php echo $userID; ?>" /> PayPal will return this value when it sends the data to your IPN handler. (You would probably want a paymentID rather than a userID as users may attempt more than one payment). Create a table for payments and write the details including userID in that table, send the ID of the payment in the custom field to PayPal, when the IPN is received and validated read the record from the payment table (which includes userID) and then update the payment table with the status. This way you can store any data your want in the payment table before the payment is made, and then read it back on successful IPN.
-
Can I trust mysql_real_escape_string() ?
I've been reading up on PHP-IDS and found it very interesting and it seems it is somewhat relevant to this. I've not implemented it yet, as I don't fully understand it, and the last thing you want to do is rely on something you don't understand for security (including mysql_real_escape_string()).
-
PHP form problem continues
Thats OK, everyone has to start somewhere (also, I use MAMP Pro, so we have similar platforms). Firstly we need to make sure PHP is working ok, and know what version you have. Create a file in your web root called info.php and put in the file: <?php phpinfo(); ?> Then navigate to the file (the URL will be something like http://localhost/info.php ), this will then tell you what version of PHP you are running, it is probably PHP 5.
-
Handling Money Transactions In Php?
Using PayPal as an example... Registered users on your website would have to enter their PayPal address, when you use the PayPal API to generate a payment to set the to address of the payment to the registered users PayPal address. I'm not sure how this would work with regards to IPN, as this is a setting in the sellers PayPal account, hopefully someone could shed some more light on it for me.
-
Still learning.
Glad you got it fixed. I think your next stage should be to secure the form, clean the variables in $_POST to ensure they don't contain anything nasty. Shout if you need help doing so.
-
PHP form problem continues
Any reason the attached page has a .html extension instead of .php? Normally for the PHP interpreter to parse a PHP file the file must be named with a .php extension. What server are you using to run the file on? Is it a local web server, hosted web server or are you just double clicking the file and letting it open in whatever browser you use? (There are ways to parse .html files with the PHP interpreter, but by looking at the questions, I'm assuming this isn't the case.)
-
How can I match a 2-3 columns of same height using CSS only.
Create <div /> around the the columns with the overflow set to hidden (overflow: hidden;). Add padding to the bottom of each column 2000px should do it (padding-bottom: 2000px;). Remove what you have padded with the margin (margin-bottom: -2000px;), Using inline styles, it would look like this: <div style="overflow: hidden;"> <div style="padding-bottom: 2000px; margin-bottom: -2000px;"> This is some content. </div> <div style="padding-bottom: 2000px; margin-bottom: -2000px;"> This is some content. This is some content. This is some content. This is some content. This is some content. This is some content. </div> <div style="padding-bottom: 2000px; margin-bottom: -2000px;"> Hello. </div> </div> That should do it, let me know how you get on. Chris.
-
Web design text editor for Ubuntu
I moved from a Mac to Ubuntu and while on a Mac I used Textmate. While I do miss Textmate I am quite comfortable in Gedit. I found this page useful for helping me with my transition: http://grigio.org/pimp_my_gedit_was_textmate_linux This is probably more useful to developers than designers. Ta, Chris.