But the problem here is that I believe you can receive the Holy Ghost before or after you get baptized. But either way, you must still be baptized to complete the new birth that Jesus spoke of in John 3:3-5. But for those claiming that you don't have to be baptized, some are saying that you receive the Spirit as soon as you express your faith in Jesus. My point in using Acts chapter 8 is that this is a clear example of people who believed and had been baptized but still were not saved. So they obviously did not get baptized as a result of them having been saved.
The same scenario takes place in Acts 19:1-4:
1And it came to pass, that, while Apollos was at Corinth, Paul having passed through the upper coasts came to Ephesus: and finding certain disciples,
2He said unto them, Have ye received the Holy Ghost since ye believed? And they said unto him, We have not so much as heard whether there be any Holy Ghost.
3And he said unto them, Unto what then were ye baptized? And they said, Unto John's baptism.
4Then said Paul, John verily baptized with the baptism of repentance, saying unto the people, that they should believe on him which should come after him, that is, on Christ Jesus.
5When they heard this, they were baptized in the name of the Lord Jesus.
6And when Paul had laid his hands upon them, the Holy Ghost came on them; and they spake with tongues, and prophesied.
Paul came upon some people who were already believers but they did not have the Holy Ghost, nor had the been baptized properly. They had already been baptized unto John's baptism but obviously that was no longer valid because Paul re-baptized them in Jesus' name. It was only after their baptism in Jesus' name that they received the Holy Ghost.
My whole point is that you do not get baptized as a result of salvation, you get baptized as part of the process to obtain salvation (John 3:5, Mark 16:16).