stonybony 0 Newbie Poster

First off, why do you want to host email with go-daddy if you do already have a hosting account with hostgator? As far as I know, hostgator can also have linux hosting, actually, linux hosting is their biggest platform.

You will have to change your mx records on the email server

Thanks for your reply. Actually, the whole account will be moved to the new hosting company. I am just waiting to finish rewriting their website from ASP to PHP so that it can be hosted at hostgator. Actually, they are all on godaddy right now, but I want it to be moved to some linux hosting provider. Godaddy's email is really slow and shows up after 2 hours sometimes. First I move the email hosting to hostgator and when the site is done being rewritten, I move the site as well. You say MX records at the email server should be changed. Their domain is registered at "enom.com". Should I changed that their end to point the email to the new account at hostgator?

Thanks

stony

stonybony 0 Newbie Poster

I want Company A to host my website and Company B to handle my email. How do I sign up with Company B to provide my email services with the same domain name? Lets say my domain name is xyz.com, is this scenario possible?


hostgator - I sign up for website hosting using xyz.com - does only site hosting

godaddy - I sign up for only email services using xyz.com - does only email

Can I use the same domain name, xyz.com, to sign up with both companies for the above services?

If that is possible, what would I change at "enom.com" who handles the site registration? Meaning, what would I point where?

Thanks for your help.

stony

Do you mean you want to host a website with two different hosting domains. Let's said Company A host your website, Company B also host your website. Is that what you want?

stonybony 0 Newbie Poster

Hi,

I am in a situation that needs some explanation so that I can understand. I have a domain name, say "xyz.com". The website is being hosted at some host that provides web hosting services. I want to sign up for email services at another linux host with the same domain name "xyz.com". How do I go about doing that and what I should enter in the domain registration record at "enom.com" where xyz.com is registered. The website cannot be transferred to the new host due to it being written using ASP. Until it can be completely rewritten in php so that it can be hosted on linux, I cannot transfer the website. So, I would sign up with the linux hosting service with the same domain name "xyz.com". How do I do it and what elements should be changed at "enom.com" who is the registrar? Thanks for the help.

stony

stonybony 0 Newbie Poster

@blocblue,

Thank you for clarifying that. Appreciate your help.

I changed the whole thing to a form and now I have to code back some more stuff to make sure that it works well. Thanks again.

sb

stonybony 0 Newbie Poster

Hi,

First up, I am a little lost with events.

I am trying to do this and I can almost say that its not doable:

"one.php"

<?php
echo '<input type="text" maxlength="5" name="bill" value="" /><br />';

$get_pass = 5;
$get_pass1 = 10;
?>

<a href="two.php?getpass=<? echo $get_pass ?>&getpass1=<? echo $get_pass1 ?>">test me</a>
"two.php"

<?php

$one=$_GET['getpass'];
$two=$_GET['getpass1'];

echo $one;
echo $two;

?>

The above works. I want to get at the data inside the text element. Is there anyway to do this or do I have to use forms to fire an event?

Thank you for answering.

sb

stonybony 0 Newbie Poster

file index.php:

$output[] = '<td>'."<input type='text' size='5' maxlength='5' name='Value[{$row['id']}]' value='{$row['value']}'>". '</td>';

$output[] = '<td>'."<input type='checkbox' name='Update[{$row['id']}]' value='Box #{$row['id']}'>".'</td>';

item#1 enter quantity, check checkbox
item#2 enter qty, check checkbox 
...
..
...

"Add to list" link at the bottom of the page send this form for processing to "cart.php"
with the link:

http://cart.php?action=add&chk=chkbox_array&qty=qty_array

"cart.php"

get qty array in a local variable
get chkbox array in a local variable
start adding

I have NULL values being filled in for both arrays. Please help. Thanks

sb

stonybony 0 Newbie Poster

Hi,

I have a situation that is producing NULL values:

The situation is best explained with this code at this link:

http://www.daniweb.com/web-development/php/threads/227698

Initially, I had a link called "add to list" for each record the display page displayed. I used to hide the row-id in there and pass it onto the next page for processing. Now, with multiple items displayed as rows, one after the other, I am supposed to put the quantity that the user wants to order and check the checkbox next to it. After doing this with several other items, the user click on a link that generates the add action with the arrays for the checkboxes and textboxes being passed through for processing to another page. The thread that I mentioned above explained and put some sample code that I have tried to analyze it and incorporate that code for my situation. Except that, its producing NULL values. I am var_dumping out the values and they all have NULL. The "$row produces the right id value and the records themselves are being displayed, except for the values that I need to get back from the "checkboxes" array and the "textboxes" array.

I might not have understood the code correctly and have attached here. If you could explain the situation and advise me on what I am missing, I would appreciate it. Thanks

$output[] = '<td>'."<input type='text' size='5' maxlength='5' name='Value[{$row['id']}]' value='{$row['value']}'>". '</td>';

In the above code, I am assuming that the name …

stonybony 0 Newbie Poster

@zero13,

thanks for the response. I am a little confused about using the '[]' syntax. I thought that it created space only when required at the end of the array for more elements. Am I wrong in understanding that? thanks

sb

stonybony 0 Newbie Poster

done. thanks

stonybony 0 Newbie Poster

@gerbiler,

>> Anyway, is this thread solved?

absolutely, the checkboxes and the textbox started showing up. I am putting code in to see whether they are getting the right values.

The whole thing below is supposed to be one line, like you pointed out. I don't know why it wrapped into two lines :-(

$output[] = '<td>' echo "<input type='text' name='Value[{$row['id']}]'value='{$row['value']}'>" '</td>';

The "echo" was the problem

Thanks

sb

stonybony 0 Newbie Poster

@gerbiler,

the red line was supposed to be one line. it just wrapped over.

sb

stonybony 0 Newbie Poster

@Gerbiler,

You are the captain of the ship. I kept using the echo to print the row id attached to the checkbox but as you pointed out, that was the syntax error. I am a beginner-to-inter PHP programmer. Thanks for pointing the error out. You are right, I am still working on seeing whether that code would work. I surmised that it would after reading about it here on another thread.

http://www.daniweb.com/web-development/php/threads/227698

Again, thanks

sb

stonybony 0 Newbie Poster

Hi,

DW complains of a syntax error that I cannot understand. I use the code as a standalone and it is not a problem, but when used as a table element as written below, it complains of a syntax error. The red highlight is where it complains, the green seems to work just fine. Any help is appreciated. Thanks

stony

------------------------------ code follows

while ($row = $result->fetch()) {
	$output[] = '<tr>';
	$output[] = '<td>'.$row['manufacturer'].'</td>';
	$output[] = '<td>'.$row['model'].'</td>';
	$output[] = '<td>'.$row['description'].'</td>';
	$output[] = '<td>'.'&#x24;.'.$row['price'].'</td>';

	$output[] = '<td>' echo "<input type='text' name='Value[{$row['id']}]' value='{$row['value']}'>" '</td>';
    $output[] = '<td>' echo "<input type='checkbox' name='Update[{$row['id']}]' value='Box #{$row['id']}'>" '</td>';

// echo "<input type='text' name='Value[{$row['id']}]' value='{$row['value']}'>"
	


	$output[] = '<td>'.'<a href="cart.php?action=add&id='.$row['id'].'&product='.$product.'">Add to list</a>'.'<td>';
	$output[] = '</tr>';
}
$output[] = '</table>';
echo join('',$output);